SNMP Setup


#1

Noob Question here so please do no chastise me here.

I recently inherited a Nagios machine running v1.3 ( I know it needs to be upgraded). I am un aware of the plugin version and have no idea how to check.

I have managed to learn how to setup plugins through trial and error but for the most part they were already setup from the previous net admin. I just create host and copy existing service checks to satisfy my needs.

I have never setup a new plugin from scratch and seem to be having an issue setting up SNMP monitoring on several peripherals.

Here is a copy of some of the services I have setup:

Service definition

define service{ generic-service ; Name of service template to use

    host_name                       WHOU-PAN3510Central
    service_description             check_ping
    is_volatile                     0
    check_period                    workhours
    max_check_attempts              4
    normal_check_interval           5
    retry_check_interval            1
    contact_groups                  server-admins
    notification_interval           960
    notification_period             workhours
    notification_options            w
    check_command                   check_ping!100.0,20%!500.0,60%
    }

Service definition

define service{ generic-service ; Name of service template to use

    host_name                       WHOU-PAN3510Central
    service_description             check_snmp
    is_volatile                     0
    check_period                    workhours
    max_check_attempts              4
    normal_check_interval           5
    retry_check_interval            1
    contact_groups                  server-admins
    notification_interval           960
    notification_period             workhours
    notification_options            w
    check_command                   check_snmp!WHOU-PAN3510Central!n@g10s
    }

The check ping works fine but check snmp cannot retrieve information from host.

I cannot seem to find any documentation anymore for version 1.0 and up.

Can anyone help???

Thanks,
PatchDog


#2

Have you tried to run the snmp query manually from the Nagios server to desired host? What’s the output?
If you cannot do that from Nagios server, check if you have snmpaccess enabled for the Nagios server’s address on queried host.

Also try to run the plugin manually from terminal on Nagios server and see what it says on output. If you don’t know what it means post it here and we will help.