<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 10 (filtered)">
<title>RE: [Nagios-users] config issue</title>
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:blue;
text-decoration:underline;}
p
{margin-right:0in;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman";}
span.EmailStyle18
{font-family:Arial;
color:navy;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I found out what is causing the problem
but not sure how to fix it. If I go into a service or host config file
and disable the notifications command (</span></font><font size=2><span
style='font-size:10.0pt'>notifications_enabled 0) and then do a
restart on nagios, the state of notifications does not change. I have to
stop Nagios, delete the status.sav file, and then restart it.</span></font></p>
<p class=MsoNormal><font size=2 face="Times New Roman"><span style='font-size:
10.0pt'> </span></font></p>
<p class=MsoNormal><font size=2 face="Times New Roman"><span style='font-size:
10.0pt'>Anyone seen this?</span></font></p>
<p class=MsoNormal><font size=2 face="Times New Roman"><span style='font-size:
10.0pt'> </span></font></p>
<p class=MsoNormal><font size=2 face="Times New Roman"><span style='font-size:
10.0pt'>Thanks.</span></font></p>
<p class=MsoNormal><font size=2 face="Times New Roman"><span style='font-size:
10.0pt'> </span></font></p>
<p class=MsoNormal><font size=2 face="Times New Roman"><span style='font-size:
10.0pt'>Ric. </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b> nagios-users-admin@lists.sourceforge.net
[mailto:nagios-users-admin@lists.sourceforge.net] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Karl.Yost@mptotalcare.com<br>
<b><span style='font-weight:bold'>Sent:</span></b> Thursday, November 20, 2003
10:21 AM<br>
<b><span style='font-weight:bold'>To:</span></b> ric@nkn.net;
nagios-users@lists.sourceforge.net<br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: [Nagios-users] config
issue</span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>
<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>Create a time period, I believe there is a default one
created for you that looks something like:</span></font> <br>
<font size=2><span style='font-size:10.0pt'># 'none' timeperiod definition</span></font>
<br>
<font size=2><span style='font-size:10.0pt'>define timeperiod{</span></font> <br>
<font size=2><span style='font-size:
10.0pt'>timeperiod_name none</span></font> <br>
<font size=2><span style='font-size:
10.0pt'>alias No Time Is
A Good Time</span></font> <br>
<font size=2><span style='font-size:
10.0pt'>}</span></font> </p>
<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>Set your notification period to that time period. That
should stop the notifications.</span></font> </p>
<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>Regards,</span></font> <br>
<font size=2><span style='font-size:10.0pt'>Karl</span></font> <br>
<font size=2><span style='font-size:10.0pt'> </span></font> </p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'> </span></font></p>
<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>-----Original Message-----</span></font> <br>
<font size=2><span style='font-size:10.0pt'>From: Ric Moseley [<a
href="mailto:ric@nkn.net">mailto:ric@nkn.net</a>] </span></font><br>
<font size=2><span style='font-size:10.0pt'>Sent: Thursday, November 20, 2003
9:44 AM</span></font> <br>
<font size=2><span style='font-size:10.0pt'>To: 'nagios-users'</span></font> </p>
<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>I am trying to turn off notifications on individual
services and hosts using</span></font> <br>
<font size=2><span style='font-size:10.0pt'>'notifications_enabled
0' option and it does not seem to have any affect.</span></font> <br>
<font size=2><span style='font-size:10.0pt'>It still sends an email out b/c I
have the 'notifications' option turned on the the Nagios.cfg file. </span></font></p>
<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>Anyone have any ides.</span></font> </p>
<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>Thanks.</span></font> </p>
<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>Ric.</span></font> </p>
<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>Services.cfg</span></font> </p>
<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>define service{</span></font> <br>
<font size=2><span style='font-size:10.0pt'>
use
generic-service</span></font> <br>
<font size=2><span style='font-size:10.0pt'>
host_name
C0001-testserver01</span></font> <br>
<font size=2><span style='font-size:10.0pt'>
service_description PING</span></font> <br>
<font size=2><span style='font-size:10.0pt'>
check_command PING</span></font>
<br>
<font size=2><span style='font-size:10.0pt'>
max_check_attempts 3</span></font> <br>
<font size=2><span style='font-size:10.0pt'>
normal_check_interval 1</span></font> <br>
<font size=2><span style='font-size:10.0pt'>
retry_check_interval 1</span></font> <br>
<font size=2><span style='font-size:10.0pt'>
check_period
24x7</span></font> <br>
<font size=2><span style='font-size:10.0pt'>
notification_interval 60</span></font> <br>
<font size=2><span style='font-size:10.0pt'>
notification_period 24x7</span></font> <br>
<font size=2><span style='font-size:10.0pt'>
notification_options w,c,r</span></font> <br>
<font size=2><span style='font-size:10.0pt'>
notifications_enabled 0</span></font> <br>
<font size=2><span style='font-size:10.0pt'>
flap_detection_enabled 1</span></font> <br>
<font size=2><span style='font-size:10.0pt'>
contact_groups *support*</span></font>
<br>
<font size=2><span style='font-size:10.0pt'>
}</span></font> </p>
<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>Nagios.cfg:</span></font> </p>
<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>enable_notifications=1</span></font> </p>
<p class=MsoNormal style='margin-right:0in;margin-bottom:12.0pt;margin-left:
.5in'><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>
<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>-------------------------------------------------------</span></font>
<br>
<font size=2><span style='font-size:10.0pt'>This SF.net email is sponsored by:
SF.net Giveback Program.</span></font> <br>
<font size=2><span style='font-size:10.0pt'>Does SourceForge.net help you be
more productive? Does it help you create better code? SHARE THE
LOVE, and help us help YOU! Click Here: <a
href="http://sourceforge.net/donate/" target="_blank">http://sourceforge.net/donate/</a>
_______________________________________________</span></font></p>
<p style='margin-left:.5in'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>Nagios-users mailing list</span></font> <br>
<font size=2><span style='font-size:10.0pt'>Nagios-users@lists.sourceforge.net</span></font>
<br>
<font size=2><span style='font-size:10.0pt'><a
href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a></span></font>
<br>
<font size=2><span style='font-size:10.0pt'>::: Please include Nagios version,
plugin version (-v) and OS when reporting any issue. </span></font><br>
<font size=2><span style='font-size:10.0pt'>::: Messages without supporting
info will risk being sent to /dev/null</span></font> </p>
</div>
</body>
</html>