[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nagios-users
Subject:    Re: [Nagios-users] Unable to get notifications running for SNMP
From:       "Giles Coochey" <gcoochey () sapphire ! gi>
Date:       2008-03-31 7:31:21
Message-ID: 9D30659ABCA7FB428CF91E386C3A5744CF9A71 () hermes ! sapphire-int ! gi
[Download RAW message or body]

--===============0998375818==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C89301.37F02F95"

This is a multi-part message in MIME format.


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@lists.sourceforge.net
[mailto:nagios-users-bounces@lists.sourceforge.net] On Behalf Of
Nicholas Magers
Sent: 31 March 2008 04:55
To: nagios-users@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@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@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.
***************************************************************


[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns="http://www.w3.org/TR/REC-html40" \
xmlns:ns1="http://schemas.microsoft.com/office/2004/12/omml">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--a:link
	{mso-style-priority:99;}
span.MSOHYPERLINK
	{mso-style-priority:99;}
a:visited
	{mso-style-priority:99;}
span.MSOHYPERLINKFOLLOWED
	{mso-style-priority:99;}

 /* Font Definitions */
 @font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:Calibri;}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
p
	{mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	font-size:12.0pt;
	font-family:"Times New Roman";}
span.EmailStyle17
	{mso-style-type:personal;
	font-family:Calibri;
	color:windowtext;}
span.EmailStyle19
	{mso-style-type:personal-reply;
	font-family:Arial;
	color:navy;}
@page Section1
	{size:612.0pt 792.0pt;
	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-GB link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>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&#8217;t know what happens when they&#8217;re run as the Nagios
user).<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Secondly, you should check what the
notification options are for your contacts and the \
service.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>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.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>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 &amp; host.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Further information can be found in the
documentation.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hope this helps,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Giles<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt;font-family:
"Times New Roman"'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span lang=EN-US
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
 size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>
nagios-users-bounces@lists.sourceforge.net
[mailto:nagios-users-bounces@lists.sourceforge.net] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Nicholas Magers<br>
<b><span style='font-weight:bold'>Sent:</span></b> 31 March 2008 04:55<br>
<b><span style='font-weight:bold'>To:</span></b> \
nagios-users@lists.sourceforge.net<br> <b><span \
style='font-weight:bold'>Subject:</span></b> [Nagios-users] Unable to get \
notifications running for SNMP check.</span></font><font size=3 face="Times New \
Roman"><span lang=EN-US style='font-size:12.0pt;font-family: "Times New \
Roman"'><o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=2 face=Calibri><span \
style='font-size:11.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-AU style='font-size:
11.0pt'>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&nbsp; 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.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-AU style='font-size:
11.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-AU style='font-size:
11.0pt'>[root@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<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-AU style='font-size:
11.0pt'>/usr/bin/snmpget -t 1 -r 5 -m '' -v 1 -c public env-qs-ups02:161&nbsp;
1.3.6.1.2.1.33.1.5.3.1.2.1<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-AU style='font-size:
11.0pt'>iso.3.6.1.2.1.33.1.5.3.1.2.1 = INTEGER: 243<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-AU style='font-size:
11.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-AU style='font-size:
11.0pt'>SNMP OK - 243 | iso.3.6.1.2.1.33.1.5.3.1.2.1=243&nbsp; \
<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-AU style='font-size:
11.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-AU style='font-size:
11.0pt'>[root@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<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-AU style='font-size:
11.0pt'>/usr/bin/snmpget -t 1 -r 5 -m '' -v 1 -c public env-qs-ups02:161&nbsp;
1.3.6.1.2.1.33.1.5.3.1.2.1<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-AU style='font-size:
11.0pt'>iso.3.6.1.2.1.33.1.5.3.1.2.1 = INTEGER: 243<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-AU style='font-size:
11.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-AU style='font-size:
11.0pt'>SNMP CRITICAL - *243* | iso.3.6.1.2.1.33.1.5.3.1.2.1=243&nbsp; \
<o:p></o:p></span></font></p>

<p><font size=2 face="Times New Roman"><span lang=EN-AU \
style='font-size:10.0pt'>***************************************************************<br>
 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. </span></font><font size=1><span lang=EN-AU \
style='font-size:7.5pt'><o:p></o:p></span></font></p>

<p><font size=2 face="Times New Roman"><span lang=EN-AU \
style='font-size:10.0pt'>Views expressed in this message are those of the individual \
sender, and are not necessarily the views of the Department of \
Lands.</span></font><font size=1><span lang=EN-AU \
style='font-size:7.5pt'><o:p></o:p></span></font></p>

<p><font size=2 face="Times New Roman"><span lang=EN-AU style='font-size:10.0pt'>This
email message has been swept by MIMEsweeper for the presence of computer
viruses.<br>
***************************************************************</span></font><font
size=1><span lang=EN-AU style='font-size:7.5pt'><o:p></o:p></span></font></p>

</div>

</div>

</body>

</html>


[Attachment #4 (--===============0998375818==)]
-------------------------------------------------------------------------
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

_______________________________________________
Nagios-users mailing list
Nagios-users@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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic