I am setting up a test nagios box to learn a bit more about it at the request of my boss.
I installed Nagios 3.3.1 on an Ubuntu server 11.10 running in a VirtualBox. I also have connected to this virtual network a VBox running Server 2K8 with NSClient++ running on it. This I have set up and querying fine.
Also on this network I have a VBox running pFsense acting as a router between the internal virtual network and my host machine.
The directions I followed from the Nagios wiki on how to monitor routers and switches says to setup SNMP uptime check like so:
define service{
use generic-service ; Inherit values from a template
host_name linksys-srw224p
service_description Uptime
check_command check_snmp!-C public -o sysUpTime.0
}
I did this and the check would keep timing out and giving a critical warning on nagios.
I then changed the command to:
define service{
use generic-service ; Inherit values from a template
host_name linksys-srw224p
service_description Uptime
check_command check_snmp!-C public -o .1.3.6.1.2.1.1.3.0
}
And this works great, gives me the correct uptime of the pFsense box.
I am trying to figure out why I can't get the first one to work and why the second one does.
Can someone explain to me what the .1.3.6.1.2.1.1.3.0 corresponds to and how I can get the first command to work?