<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style>
<!--
@font-face
        {font-family:Calibri}
@font-face
        {font-family:Tahoma}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
span.EmailStyle17
        {font-family:"Calibri","sans-serif";
        color:windowtext}
span.EmailStyle18
        {font-family:"Calibri","sans-serif";
        color:#1F497D}
.MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:72.0pt 72.0pt 72.0pt 72.0pt}
div.WordSection1
        {}
-->
</style>
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Check out Bug 247</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D"><a href="http://tracker.nagios.org/view.php?id=247">http://tracker.nagios.org/view.php?id=247</a></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D">The attached patch should fix the issue.</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D">Cheers,</span></p>
<p class="MsoNormal"><span style="color:#1F497D"><br>
Phil</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:#1F497D">--</span><span style="color:#1F497D">
</span></p>
<p class="MsoNormal"><b><span style="font-family:"Arial","sans-serif"; color:black">Phil Randal</span></b></p>
<p class="MsoNormal"><b><span style="font-family:"Arial","sans-serif"; color:black">Infrastructure Engineer</span></b><span style="color:black"><br>
</span><b><span style="font-family:"Arial","sans-serif"; color:#00829B">Hoople Ltd | Thorn Office Centre | Hereford HR2 6JT</span></b><span style="font-size:12.0pt; color:#00829B"></span></p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"; color:#00829B">Tel: 01432 260415 | Email: phil.randal@hoopleltd.co.uk</span></p>
</div>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<div>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt; font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt; font-family:"Tahoma","sans-serif""> James Fillman [mailto:jfillman@central1.com]
<br>
<b>Sent:</b> 12 July 2012 18:57<br>
<b>To:</b> 'nagios-users@lists.sourceforge.net'<br>
<b>Subject:</b> [Nagios-users] Help with OCP_daemon and distributed monitoring</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span lang="EN-US">I’ve got a large distributed Nagios installation that uses the OCP_daemon to handle the forwarding of passive service checks to the master server. I’ve recently upgraded from version 3.0.3 to 3.4.1. After the upgrade,
 I’ve found a serious problem that I haven’t completely solved yet.</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">When using the OCP_daemon, you configure Nagios to forward passive check results by having it write performance data to a named pipe. While on version 3.0.3, all passive check results where being where being written to
 the perf data named pipe regardless of whether there was performance data or not. Since the upgrade to 3.4.1, check data only gets written to the pipe if the plugin generates perf data. I need all check results, regardless of state to be written to the pipe
 and forwarded on to the master. Has anyone else encountered this issue and what was the solution.</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">Here’s the relevant config:</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US"># Enable Performance data processing.</span></p>
<p class="MsoNormal"><span lang="EN-US">process_performance_data=1</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US"># Files to which Nagios will write data. In this setup</span></p>
<p class="MsoNormal"><span lang="EN-US"># they will be named pipes.</span></p>
<p class="MsoNormal"><span lang="EN-US">#host_perfdata_file=/path/to/host-perfdata.fifo</span></p>
<p class="MsoNormal"><span lang="EN-US">service_perfdata_file=/var/log/nagios/rw/service-perfdata.fifo</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US"># This is exactly what will be sent to send_NSCA. Do not change it.</span></p>
<p class="MsoNormal"><span lang="EN-US">host_perfdata_file_template=$HOSTNAME$\t$HOSTSTATEID$\t$HOSTOUTPUT$|$HOSTPERFDATA$</span></p>
<p class="MsoNormal"><span lang="EN-US">service_perfdata_file_template=$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATEID$\t$SERVICEOUTPUT$|Data: $SERVICEPERFDATA$</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US"># The write mode should be w, although append should have no effect on a named pipe.</span></p>
<p class="MsoNormal"><span lang="EN-US">host_perfdata_file_mode=p</span></p>
<p class="MsoNormal"><span lang="EN-US">service_perfdata_file_mode=p</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US"># We don't want to process any command, so set this to 0</span></p>
<p class="MsoNormal"><span lang="EN-US">host_perfdata_file_processing_interval=0</span></p>
<p class="MsoNormal"><span lang="EN-US">service_perfdata_file_processing_interval=0</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks,</span></p>
<p class="MsoNormal"><span lang="EN-US">--james</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
</div>
“Any opinion expressed in this e-mail or any attached files are those of the individual and not necessarily those of Hoople Ltd. You should be aware that Hoople Ltd. monitors its email service. This e-mail and any attached files are confidential and intended
 solely for the use of the addressee. This communication may contain material protected by law from being passed on. If you are not the intended recipient and have received this e-mail in error, you are advised that any use, dissemination, forwarding, printing
 or copying of this e-mail is strictly prohibited. If you have received this e-mail in error please contact the sender immediately and destroy all copies of it.
</body>
</html>