Wednesday, June 4, 2008

Nagios service and network monitoring




Nagios home page


I installed Nagios on a VM (virtual machine) and started to add host's and routers/switches to monitor.

i am very surprised how easy to use and strong this software is.

here is an example how to monitor with SNMP a cisco 3750 uptime

i assume you have read the Nagios Doc's and know where to find the files i talk about...
if not i will update this post with more details @ a later time...


at the define service section:

define service{
use generic-service ; Inherit values from a template
host_name cisco_backbone
service_description UpTime is
check_command check_snmp!-C public -o sysUpTime.0 -P 2c
}


also you can test from the libexec directory this command to see if you get the output
you expected:

./check_snmp -H 192.168.10.253 -o sysUpTime.0


SNMP OK - Timeticks: (300635204) 34 days, 19:05:52.04 | DISMAN-EVENT-MIB::sysUpTimeInstance=Timeticks: (300635204) 34 days, 19:05:52.04


thats it for the moment :-)


No comments: