<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    On 31/01/2012 3:57 AM, Robert Jackson wrote:
    <blockquote
cite="mid:D1D5923DB08E1C4BAEA198E9104E88A004829959@wm-exchange1.WMNET.local"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <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]-->
      <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 Nagios
            process user.” is being displayed. It works just fine from a
            command line.</span><span style="font-size: 8pt;
            font-family: "Times New Roman","serif";
            color: rgb(79, 129, 189);">  <br>
          </span></p>
      </div>
    </blockquote>
    <br>
    The error message for that problem is very explicit.<br>
    The rest of the that message that you didn't paste into your message
    tells you what you need to do<br>
    It will say something along the lines of:<br>
    <br>
    "You will need to change the permissions on the file or remove it.
    The actual error text is: Can't create /tmp/cwpss_checkcpu_.state"<br>
    <br>
    Do what it says and you should be ok<br>
    <br>
    <blockquote
cite="mid:D1D5923DB08E1C4BAEA198E9104E88A004829959@wm-exchange1.WMNET.local"
      type="cite">
      <div class="WordSection1">
        <p class="MsoNormal"><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>
      </div>
      <br>
    </blockquote>
    Something might not be quite right with the ini files you have. Try
    this -<br>
    1) Try downloading them again, try the command again<br>
    2) Remove the ini files one at time, running the command after each
    removal until the error goes away. Leave check_wmi_plus.ini to last
    as that is the one that contains the checkts checks. This should
    identify which one has the error.<br>
    3) Zip/tar them up and send them to me<br>
    <br>
    <div class="moz-signature">-- <br>
      <font size="-1">
        <a href="http://www.smartmon.com.au">Smartmon System Monitoring</a>
        <br>
        <a href="http://www.smartmon.com.au">www.smartmon.com.au</a> </font></div>
  </body>
</html>