<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:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@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:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page Section1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
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=FR link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='color:#1F497D'>Hi,<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>I’m transferring this
to the dev list, as I suspect something more like a bug (and probably no standard
user will be able to answer)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>
<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><o:p> </o:p></span></p>
</div>
</div>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal>Hi,<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span lang=EN-US>I’m facing a strange problem.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>I have in my definitions services for which
notifications are disabled : I’m still running those services on all nodes
because it gives me indication something went wrong on all nodes.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>I recently had to suppress notifications
for all services of a hostgroups because of a general failure on those hosts,
and problem is that when I used the nagios CGIs to re-enable the service
notifications, notifications for those services I really don’t want any
notification got enabled too… and I had to disable all those notifications in
that hostgroup again using the CGIs (I hope you follow).<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>So now I’m wondering how could I fix the
situation, and restore things to normal (i.e : according to services config
file) without loosing all services current state.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>I just tried to use the following in my
nagios 3.1 config file.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>retained_service_attribute_mask=1<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>retained_process_service_attribute_mask=1<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Tried that, because it looks like the
correct value to use according to include/common.h is :<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>#define
MODATTR_NOTIFICATIONS_ENABLED
1<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>(by the way : what’s the real difference
between those 2 variables ? I can’t understand the real difference reading the
documentation)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Anyway : this didn’t work. Services are
still disabled on restart or reload.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>I then tried this :<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>retained_service_attribute_mask=MODATTR_NOTIFICATIONS_ENABLED<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>retained_process_service_attribute_mask=MODATTR_NOTIFICATIONS_ENABLED<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>I know values are wrong, but nothing
prevented nagios from restarting. And off course it still didn’t work, services
notifications are still disabled.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>So what ?<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Are these configuration option really
implemented ?<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>I’m trying to look into the code, and I
don’t see anywhere the values defined in the code being used :<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>nagios-3.1.0]$ grep -r
retained_service_attribute_mask *<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>base/nagios.c:unsigned long
retained_service_attribute_mask=0L;<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>base/utils.c:extern unsigned long
retained_service_attribute_mask;<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>base/utils.c:
retained_service_attribute_mask=0L;<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>base/config.c:extern unsigned long
retained_service_attribute_mask;<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>base/config.c:
else if(!strcmp(variable,"retained_service_attribute_mask"))<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>base/config.c:
retained_service_attribute_mask=strtoul(value,NULL,0);<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>(and then, only html files)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>…<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>So the C variable wouldn’t be used at all ?<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Am I missing something ?<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Thanks && regards<o:p></o:p></span></p>
</div>
</body>
</html>