<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>Hi,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I have NSCA configured on my Nagios host, and enabled the necessary plugins on NSClient++ to support NSCA, configure XINETD appropriately inside my NSClient config I have:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>[NSCA Commands]<o:p></o:p></p><p class=MsoNormal>my_cpu_check=checkCPU warn=80 crit=90 time=20m time=10s time=4<o:p></o:p></p><p class=MsoNormal>my_mem_check=checkMem MaxWarn=80% MaxCrit=90% ShowAll type=page<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>This is just for testing, I also have in my nagios.cfg:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>accept_passive_service_checks=1<o:p></o:p></p><p class=MsoNormal>accept_passive_host_checks=1<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>In my NSClient Log I can see:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>2010-06-24 12:48:44: debug:modules\NSCAAgent\NSCAThread.cpp:205: Executing (from NSCA): my_cpu_check<o:p></o:p></p><p class=MsoNormal>2010-06-24 12:48:44: debug:NSClient++.cpp:1106: Injecting: checkCPU: warn=80, crit=90, time=20m, time=10s, time=4<o:p></o:p></p><p class=MsoNormal>2010-06-24 12:48:44: debug:NSClient++.cpp:1142: Injected Result: OK 'OK CPU Load ok.'<o:p></o:p></p><p class=MsoNormal>2010-06-24 12:48:44: debug:NSClient++.cpp:1143: Injected Performance Result: ''20m'=0%;80;90; '10s'=6%;80;90; '4'=0%;80;90; '<o:p></o:p></p><p class=MsoNormal>2010-06-24 12:48:44: debug:modules\NSCAAgent\NSCAThread.cpp:205: Executing (from NSCA): my_mem_check<o:p></o:p></p><p class=MsoNormal>2010-06-24 12:48:44: debug:NSClient++.cpp:1106: Injecting: checkMem: MaxWarn=80%, MaxCrit=90%, ShowAll, type=page<o:p></o:p></p><p class=MsoNormal>2010-06-24 12:48:44: debug:NSClient++.cpp:1142: Injected Result: OK 'OK: page file: 8.82G'<o:p></o:p></p><p class=MsoNormal>2010-06-24 12:48:44: debug:NSClient++.cpp:1143: Injected Performance Result: ''page file %'=45%;80;90; 'page file'=8.81G;15.6;17.59;0;19.5; '<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>What I want to know is, until now I have been using active checks, and for some servers I want to use passive_checks as well, so that the server updates Nagios.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>If I have active checks defined within my Nagios installation such as:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>define service{<o:p></o:p></p><p class=MsoNormal>        use                             generic-service<o:p></o:p></p><p class=MsoNormal>        host_name                       van-mail01<o:p></o:p></p><p class=MsoNormal>        service_description             D - Disk Space<o:p></o:p></p><p class=MsoNormal>        check_command                                     check_nt_disk!D!98!99<o:p></o:p></p><p class=MsoNormal>}<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Can I modify this to also read from the passive_check, and what would my [NSCA Commands] definition look like? Does the first part have to reflect the service description? <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>How does the information coming from the NSCA Client get mapped to my configured checks?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thank you.<o:p></o:p></p></div></body></html>
<pre>The Oppenheimer Group ---- CONFIDENTIAL

This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.