<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:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 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:0in;
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-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
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-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I have a setup where the Master and Slave servers follow the
redundancy scenario 1 of this document:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><a
href="http://nagios.sourceforge.net/docs/3_0/redundancy.html">http://nagios.sourceforge.net/docs/3_0/redundancy.html</a><o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Both Servers are running Nagios 3.0.6<o:p></o:p></p>
<p class=MsoNormal>The one issue I am running into is that when the Nagios service
on the master host goes down, the slave host does not enable its notifications.<o:p></o:p></p>
<p class=MsoNormal>I looked at the paths in each script to ensure it was
pointing to the correct location. (commands.cfg, handle-master-proc-event,
enable_notifications, and disable_notifications) They all look ok. As a
test I stopped the Nagios service on the master host and looked at the logs on
the slave. I receive the following from the slave host log file<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>[1247675796] SERVICE ALERT: masterhost;check_nagios;CRITICAL;SOFT;1;NAGIOS
CRITICAL: Cannot open status log for reading!<o:p></o:p></p>
<p class=MsoNormal>[1247675796] SERVICE EVENT HANDLER: masterhost;check_nagios;(null);(null);(null);master-process-event<o:p></o:p></p>
<p class=MsoNormal>[1247675856] SERVICE ALERT: masterhost;check_nagios;CRITICAL;SOFT;2;NAGIOS
CRITICAL: Cannot open status log for reading!<o:p></o:p></p>
<p class=MsoNormal>[1247675856] SERVICE EVENT HANDLER: masterhost;check_nagios;(null);(null);(null);master-process-event<o:p></o:p></p>
<p class=MsoNormal>[1247675916] SERVICE ALERT: masterhost;check_nagios;CRITICAL;SOFT;3;NAGIOS
CRITICAL: Cannot open status log for reading!<o:p></o:p></p>
<p class=MsoNormal>[1247675916] SERVICE EVENT HANDLER: masterhost;check_nagios;(null);(null);(null);master-process-event<o:p></o:p></p>
<p class=MsoNormal>[1247675976] SERVICE ALERT: masterhost;check_nagios;CRITICAL;SOFT;4;NAGIOS
CRITICAL: Cannot open status log for reading!<o:p></o:p></p>
<p class=MsoNormal>[1247675976] SERVICE EVENT HANDLER: masterhost;check_nagios;(null);(null);(null);master-process-event<o:p></o:p></p>
<p class=MsoNormal>[1247676036] SERVICE ALERT: masterhost;check_nagios;CRITICAL;HARD;5;NAGIOS
CRITICAL: Cannot open status log for reading!<o:p></o:p></p>
<p class=MsoNormal>[1247676036] SERVICE EVENT HANDLER: masterhost;check_nagios;(null);(null);(null);master-process-event<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>But notifications aren’t enabled even after it hits
hard. If I run the enable_notification and disable_notifications scripts
manually they work. I’m trying to figure out where in the chain is wrong.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Anyone have any ideas as to what might be the problem? I’m
so very close to getting this setup.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>-Eduardo<o:p></o:p></p>
</div>
</body>
</html>