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_snmp_string

Rating
0 votes
Favoured:
0
Hits
148566
Files:
FileDescription
check_snmp_string.plcheck_snmp_string.pl
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 that SNMP-'sysName' matches DNS A record for this host, alternately that it matches a specified string. Very useful for making sure network device sysName values are kept proper when they're deployed/rearranged.
This script requires:

Getopt::Long
Pod::Usage
Time::HiRes
Net::SNMP




/ Nagios command definition examples:

define command {
command_name check_snmp_sysname
command_line $USER1$/check_snmp_string.pl -H $HOSTNAME$ -c $ARG1$ -o sysName
}


/ Nagios service definition examples:

define service{

service_description SNMP--sysname
use generic-service
hostgroup_name deathstar-opteron-2220-32G
servicegroups dns_alerts
check_command check_snmp_sysname!rocstring
max_check_attempts 5
normal_check_interval 60

}