Build precise queries to find exactly what you need
Press ESC to close
@andyspiegl
Member Since: October 30, 2017
Favorites0
Views
Projects0
Thanks for the check script. The only thing I fell for was that the nagios user needs write permissions for the tmpfile. Initially I tried the check script manually which created the tmpfile with owner "root". All following calls of the script failed to write the interface state to the tmpfile (silently!) which led to strange speed values and a very flat PNP curve. :-) I suggest to add the following lines: if ( open( TMP, ">$tmpfile-$iface" ) ) { print( TMP "$data{time}:$data{rxbytes}:$data{txbytes} " ); close( TMP ); } + else + { + print "ERROR: Unable to write $tmpfile-$iface "; + exit $status{UNKNOWN}; + } Andy
Reviewed 8 years ago