Unable to get notifications running for SNMP check.

Giles Coochey gcoochey at sapphire.gi
Mon Mar 31 09:31:21 CEST 2008


Firstly, the tests you show as examples appear to be working just fine
(though note it appears you are running them as root, so you won't know
what happens when they're run as the Nagios user).

 

Secondly, you should check what the notification options are for your
contacts and the service.

 

Check the service_notification_commands, service_notification_options,
service_notitification_period for the contact, as well as the following
for your service: notifications_enabled, notification_options,
notification_period also check the contacts for the host that is
assigned to the service.

 

You may need to dig a little further if you are using templates, but you
can override these by supplying them with the appropriate contact,
service & host.

 

Further information can be found in the documentation.

 

Hope this helps,

 

Giles

 

________________________________

From: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of
Nicholas Magers
Sent: 31 March 2008 04:55
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Unable to get notifications running for SNMP
check.

 

I have pulled all my hair out in my quest to get notifications working
for an SNMP check I am running. All my other host and service checks
work fine and I can generate notifications but  with the SNMP check
nothing happens. In the web interface The values change as expected OK
to critical for example. The only thing I can think of is that the value
returned is not generating a notification. Any help would be
appreciated.

 

[root at srv-qs-nagiosp1 ~]# /usr/lib64/nagios/plugins/check_snmp -v -H
env-qs-ups02 -o 1.3.6.1.2.1.33.1.5.3.1.2.1 -c 230:260

/usr/bin/snmpget -t 1 -r 5 -m '' -v 1 -c public env-qs-ups02:161
1.3.6.1.2.1.33.1.5.3.1.2.1

iso.3.6.1.2.1.33.1.5.3.1.2.1 = INTEGER: 243

 

SNMP OK - 243 | iso.3.6.1.2.1.33.1.5.3.1.2.1=243  

 

[root at srv-qs-nagiosp1 ~]# /usr/lib64/nagios/plugins/check_snmp -v -H
env-qs-ups02 -o 1.3.6.1.2.1.33.1.5.3.1.2.1 -c 230:235

/usr/bin/snmpget -t 1 -r 5 -m '' -v 1 -c public env-qs-ups02:161
1.3.6.1.2.1.33.1.5.3.1.2.1

iso.3.6.1.2.1.33.1.5.3.1.2.1 = INTEGER: 243

 

SNMP CRITICAL - *243* | iso.3.6.1.2.1.33.1.5.3.1.2.1=243  

***************************************************************
This message is intended for the addressee named and may contain
confidential information. If you are not the intended recipient, please
delete it and notify the sender. 

Views expressed in this message are those of the individual sender, and
are not necessarily the views of the Department of Lands.

This email message has been swept by MIMEsweeper for the presence of
computer viruses.
***************************************************************

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080331/10124f2c/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list