<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:"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;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Times New Roman \, serif";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
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:"Times New Roman","serif";
        color:windowtext;
        font-weight:normal;
        font-style:normal;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Times New Roman","serif";
        color:#4F81BD;
        font-weight:normal;
        font-style:normal;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
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 bgcolor=white lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Times New Roman","serif";color:#4F81BD'>I’m trying out check_wmi_plus at the moment. I’ve got some basic tests working from a command line (namely checkuptime, checkmem and checkdrivesize). All well and good. However my problems start when I try to run checkcpu within a Nagios environment – “</span><span style='font-size:8.0pt;font-family:"Times New Roman","serif";color:#4F81BD'>UNKNOWN - Permission denied when trying to store the state data. Sometimes this happens if you have been testing the plugin from the command line as a different user to the Nagio process user.” is being displayed. It works just fine from a command line.</span><span style='font-size:8.0pt;font-family:"Times New Roman","serif";color:#4F81BD'>  Also I can’t for the life of me get the checkts –s sessions(2003) working at all “WARNING: Could not correctly parse "customfield" definition in ini file:  (for checkts sessions2003)” is being displayed.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Times New Roman","serif";color:#4F81BD'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Times New Roman","serif";color:#4F81BD'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Times New Roman","serif";color:#4F81BD'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Times New Roman","serif";color:#4F81BD'>Regards,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Times New Roman","serif";color:#4F81BD'>Rab.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Times New Roman","serif";color:#4F81BD;mso-fareast-language:EN-GB'>=============================================================<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Times New Roman","serif";color:#4F81BD'>Robert Jackson                                  Phone: +44 (0) 141 332 7999<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Times New Roman","serif";color:#4F81BD'>IT Manager                                           Fax: +44 (0) 141 331 2820<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Times New Roman","serif";color:#4F81BD'>Walker Martyn Ltd<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Times New Roman","serif";color:#4F81BD'>1 Park Circus Place                            Email: <a href="mailto:rab@walkermartyn.co.uk"><span style='color:#4F81BD'>rab@walkermartyn.co.uk</span></a><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Times New Roman","serif";color:#4F81BD'>Glasgow G3 6AH, Scotland                   Web: <a href="http://www.walkermartyn.co.uk/"><span style='color:#4F81BD'>http://www.walkermartyn.co.uk</span></a><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Times New Roman","serif";color:#4F81BD;mso-fareast-language:EN-GB'>=============================================================<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Times New Roman","serif";color:#4F81BD'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Times New Roman","serif";color:#4F81BD'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Times New Roman","serif";color:#4F81BD'><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><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:EN-GB'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:EN-GB'> Matthew Jurgens [mailto:nagiosusers@edcint.co.nz] <br><b>Sent:</b> Monday 30 January 2012 11:06<br><b>To:</b> Nagios Users List<br><b>Cc:</b> Robert Jackson<br><b>Subject:</b> rab@walkermartyn.co.uk - Re: [Nagios-users] NRPE/NSClient++ CheckCPU Error? - Email found in subject<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>You might like to try <br><br><a href="http://www.edcint.co.nz/checkwmiplus">www.edcint.co.nz/checkwmiplus</a><br><br>On 30/01/2012 9:07 PM, Robert Jackson wrote: <o:p></o:p></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Times New Roman , serif","serif"'>Why does the NSClient++ command CheckCPU always sit as a critical condition within Nagios? The command I have in place is:</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Times New Roman , serif","serif"'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Times New Roman , serif","serif"'>$USER1$/check_nrpe -H $HOSTADDRESS$ -c CheckCPU -a warn=$ARG1$ crit=$ARG2$ time=5m</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Times New Roman , serif","serif"'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Times New Roman , serif","serif"'>$ARG1$ is set to 80%  and $ARG2$ is set to 95% (have tried with and without % symbol)</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Times New Roman , serif","serif"'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Times New Roman , serif","serif"'>The output display in Nagios is: CRITICAL: 5m: average load 15% > critical</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Times New Roman , serif","serif"'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Times New Roman , serif","serif"'>Anyone have any ideas why this is generating a critical condition?</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Times New Roman , serif","serif"'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Times New Roman , serif","serif"'>Regards,</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Times New Roman , serif","serif"'>Rab.</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:8.0pt'>=============================================================</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Times New Roman , serif","serif"'>Robert Jackson                                  Phone: +44 (0) 141 332 7999</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Times New Roman , serif","serif"'>IT Manager                                           Fax: +44 (0) 141 331 2820</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Times New Roman , serif","serif"'>Walker Martyn Ltd</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Times New Roman , serif","serif"'>1 Park Circus Place                            Email: <a href="mailto:rab@walkermartyn.co.uk"><span style='color:windowtext'>rab@walkermartyn.co.uk</span></a></span><o:p></o:p></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Times New Roman , serif","serif"'>Glasgow G3 6AH, Scotland                   Web: <a href="http://www.walkermartyn.co.uk/"><span style='color:windowtext'>http://www.walkermartyn.co.uk</span></a></span><o:p></o:p></p><p class=MsoNormal><span style='font-size:8.0pt'>=============================================================</span><o:p></o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-GB'><o:p> </o:p></span></p><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-GB'>-- <br></span><span style='font-size:10.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-GB'><a href="http://www.smartmon.com.au">Smartmon System Monitoring</a> <br><a href="http://www.smartmon.com.au">www.smartmon.com.au</a> </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:EN-GB'><o:p></o:p></span></p></div></div><P>************************************************************************ </P>
<P>The information in this internet E-mail is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is unauthorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of Walker Martyn Ltd or any of its affiliates. If you are not the intended recipient please contact <A href="mailto:administrator@walkermartyn.co.uk">administrator@walkermartyn.co.uk</A>.</P>
<P>Walker Martyn Ltd, company number SC197533. Company is registered in Scotland and has its registered office at 1 Park Circus Place, Glasgow G3 6AH, UK.</P>
<P>**************************************************************** </P><A title="gfidisc.walkermartyn.co.uk" href="#">  </A></body></html>