projects
/
gnt-info
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3271716
)
silent curl output
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Fri, 21 Sep 2018 08:57:07 +0000
(10:57 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Fri, 21 Sep 2018 08:57:07 +0000
(10:57 +0200)
gnt-monitor
patch
|
blob
|
history
diff --git
a/gnt-monitor
b/gnt-monitor
index
db88f06
..
3f1dacc
100755
(executable)
--- a/
gnt-monitor
+++ b/
gnt-monitor
@@
-184,7
+184,7
@@
foreach my $instance ( keys %$stat ) {
close($fh);
-if ( system( 'curl', '-XPOST', $INFLUX, '--data-binary', '@/dev/shm/gnt-monitor.influx' ) == 0 ) {
+if ( system( 'curl', '-
s', '-
XPOST', $INFLUX, '--data-binary', '@/dev/shm/gnt-monitor.influx' ) == 0 ) {
} else {
rename '/dev/shm/gnt-monitor.influx', '/dev/shm/gnt-monitor.influx.bug.' . scalar glob '/dev/shm/gnt-monitor.influx.bug.*';
warn "curl failed: $? $!";