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
149321
Files:
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
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