Build precise queries to find exactly what you need
Press ESC to close
Thanks for the plugin, this is the best one!
Here are two remarks: 1. It doesn’t work for Windows and ESXi as they don’t provide zone information by SNMP. 2. Timeout should be changed from 60 seconds and 5 retries to 30 second and single retry in order not to get CRITICAL instead of WARNING:
— snmp_remote_time_utc.orig 2014-11-14 11:56:09.000000000 +0100 +++ snmp_remote_time_utc 2014-11-14 15:01:55.360771200 +0100 @@ -53,7 +53,7 @@
getandprintresults() { # Get local and remote time at the same time, so we can do a diff later. Local in utc. – rdatestring=$( snmpget -v $version -t 60 -c $community $host HOST-RESOURCES-MIB::hrSystemDate.0 2> /dev/null | gawk ‘{print $NF}’ ) + rdatestring=$( snmpget -v $version -t 30 -r 1 -c $community $host HOST-RESOURCES-MIB::hrSystemDate.0 2> /dev/null | gawk ‘{print $NF}’ ) ldate=$(date -u)
[ ! “$rdatestring” ] && exit_unknown
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!