Build precise queries to find exactly what you need
Press ESC to close
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
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!