I am new to nagios, I want to know how to start step by step with cisco switch monitoring.
What I have done so far is:
- create community in Switch = public2
- On switch.cfg (ping Work OK)
define host {
use generic-switch ; Inherit default values from a template
host_name switch01Prueba ; The name we're giving to this switch
alias pruebamonitoreo ; A longer name associated with the switch
address 192.168.1.XX ; IP address of the switch
hostgroups switches ; Host groups this switch is associated with
define service {
use generic-service ; Inherit values from a template
hostgroup_name switches ; The name of the host the service is associated with
service_description PING ; The service description
check_command check_ping!200.0,20%!600.0,60% ; The command used to monitor the service
check_interval 5 ; Check the service every 5 minutes under normal conditions
retry_interval 1 ; Re-check the service every minute until its final/hard state is determined
}
# Monitor uptime via SNMP
define service {
use generic-service ; Inherit values from a template
hostgroup_name switches
service_description Uptime
check_command check_snmp!-C public2 -o sysUpTime.0
- in usr/local/nagios/etc/objects/commands.cfg (
define command {
command_name check_snmp
command_line $USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$
- validating the configuration with snmpwalk I have the following error:
[root@localhost libexec]# snmpwalk -v2c -c public2 192.168.1.XX |more
SNMPv2-SMI::mib-2 = No Such Object available on this agent at this OID
I do not know how to continue I need to monitor something like memory cpu process.
I thank you very much for your help to move forward