Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
SNMP if MaxTNT
Will get you the status of an interface based on ifIndex, ifName, ifDescr, or wanLineName.gen_check_snmp_if_max_services
This script will walk a device and create a services file for you that can be included into the main nagios.cfg file. Its based off of the 'services-check_snmp_if.template'. Be sure to edit this file first. The nice thing about this is that it can be re-run any time you add/remove interfaces and regenerate the services. I would recommend naming the file something like: 'services-check_snmp_if-hostname.cfg' and including this in your main nagios.cfg file. Some important variables to note:
HOSTNAME - will be replaced by the hostname you specify by -H
SERVDESCR - the name of the interface
COMMAND - the command specified in your checkcommands.cfg file
OPT - will be the options that are passed to the COMMAND (determined automatiacally)
This script will walk a device and create a services file for you that can be included into the main nagios.cfg file. Its based off of the 'services-check_snmp_if.template'. Be sure to edit this file first. The nice thing about this is that it can be re-run any time you add/remove interfaces and regenerate the services. I would recommend naming the file something like: 'services-check_snmp_if-hostname.cfg' and including this in your main nagios.cfg file. Some important variables to note:
HOSTNAME - will be replaced by the hostname you specify by -H
SERVDESCR - the name of the interface
COMMAND - the command specified in your checkcommands.cfg file
OPT - will be the options that are passed to the COMMAND (determined automatiacally)
Reviews (0)
Be the first to review this listing!