Monitoring via SNMP
In addition to using NRPE to collect data, Nagios can also collect data via SNMP (Simple Network Management Protocol). This is especially useful for monitoring network equipment like routers and switches, which often have SNMP agents built into them.
How to do it...
- Install the Nagios SNMP plugins:
sudo apt-get install nagios-snmp-plugins
- Define some SNMP checks using SNMPv2:
define hostgroup { hostgroup_name snmp-hosts } define service { hostgroup_name snmp-hosts service_description Load Average check_command \ check_snmp_load_v2!netsc!30!40!!public use generic-service notification_interval 0 } define service { hostgroup_name snmp-hosts service_description Interface Status check_command \ check_snmp_int_v2!!!public use generic-service...