Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_systime

Rating
0 votes
Favoured:
0
Hits
148940
Files:
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Check the system time on a host against the localhost time using snmp.
A perl script to check the system time on a host against the localhost's time using snmp. You can optionally pass the number of drift seconds allowed (defaults to 120 seconds). This script is pretty basic, but it's quick and it does the job.

Please Note: The newest version of this script has snmpget hardcoded to '/usr/bin/snmpget.' you'll need to edit it for your environment.

Please Note: If you move from 1.0.4 to 1.0.5, I had to switch the option for passing the number of seconds from '-v' to '-n' (because of the conflict w/ all of the SNMP options when adding snmpv3).


1.0.4

- using utils.pm
- re-directing STDERR to STDOUT on syscall


1.0.5

- using getopt::long now
- added options for SNMPv3
- expanded debugging output a bit