<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 14 (filtered medium)"><style><!--
/* Font Definitions */
@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;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></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=WordSection1><p class=MsoNormal>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.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>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.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Here’s the relevant config:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal># Enable Performance data processing.<o:p></o:p></p><p class=MsoNormal>process_performance_data=1<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal># Files to which Nagios will write data. In this setup<o:p></o:p></p><p class=MsoNormal># they will be named pipes.<o:p></o:p></p><p class=MsoNormal>#host_perfdata_file=/path/to/host-perfdata.fifo<o:p></o:p></p><p class=MsoNormal>service_perfdata_file=/var/log/nagios/rw/service-perfdata.fifo<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal># This is exactly what will be sent to send_NSCA. Do not change it.<o:p></o:p></p><p class=MsoNormal>host_perfdata_file_template=$HOSTNAME$\t$HOSTSTATEID$\t$HOSTOUTPUT$|$HOSTPERFDATA$<o:p></o:p></p><p class=MsoNormal>service_perfdata_file_template=$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATEID$\t$SERVICEOUTPUT$|Data: $SERVICEPERFDATA$<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal># The write mode should be w, although append should have no effect on a named pipe.<o:p></o:p></p><p class=MsoNormal>host_perfdata_file_mode=p<o:p></o:p></p><p class=MsoNormal>service_perfdata_file_mode=p<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal># We don't want to process any command, so set this to 0<o:p></o:p></p><p class=MsoNormal>host_perfdata_file_processing_interval=0<o:p></o:p></p><p class=MsoNormal>service_perfdata_file_processing_interval=0<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks,<o:p></o:p></p><p class=MsoNormal>--james<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>