From 9db914930dd60a438fe7493c52689a99548e4776 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Fri, 21 Sep 2018 10:57:07 +0200 Subject: [PATCH 1/1] silent curl output --- gnt-monitor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnt-monitor b/gnt-monitor index db88f06..3f1dacc 100755 --- 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: $? $!"; -- 2.20.1