<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Just dropping this as a note for the mailing list .....<br>
    <br>
    It turned out that using versions of perl modules older than the
    recommended ones was the cause of the problem - specifically
    Config::Inifiles<br>
    <br>
    However, the new version of Check WMI Plus (v1.50), works around the
    limitations of the older module.<br>
    <br>
    On 1/02/2012 5:45 PM, Robert Jackson wrote:
    <blockquote
cite="mid:D1D5923DB08E1C4BAEA198E9104E88A0048299A4@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)">
      <!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
      <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;}
/* 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;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Times New Roman","serif";
        color:windowtext;
        font-weight:normal;
        font-style:normal;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Times New Roman","serif";
        color:#4F81BD;
        font-weight:normal;
        font-style:normal;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Times New Roman","serif";
        color:#4F81BD;
        font-weight:normal;
        font-style:normal;}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:"Times New Roman","serif";
        color:#4F81BD;
        font-weight:normal;
        font-style:normal;}
span.EmailStyle23
        {mso-style-type:personal;
        font-family:"Times New Roman","serif";
        color:#4F81BD;
        font-weight:normal;
        font-style:normal;}
p.avgcert, li.avgcert, div.avgcert
        {mso-style-name:avgcert;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
span.EmailStyle26
        {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">Hi Matthew,<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">Create new
            blank check_wmi_plus.ini (chown –R Nagios:Nagios
            check_wmi_plus.ini to allocate permissions). Ran the command
            as ‘root’ from a command prompt:<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">/usr/lib/nagios/plugins/check_wmi_plus.pl
            -H wm-tsrv2 -u 'nagios-wmi' -p 'wmicheck' -m checkts -s
            sessions2003 –d -z<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">Result output
            is:<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">Command Line
            (v1.49): /usr/lib/nagios/plugins/check_wmi_plus.pl -H
            wm-tsrv2 -u nagios-wmi -p wmicheck -m checkts -s
            sessions2003 -d -z<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:8.0pt;font-family:"Times New
            Roman","serif";color:#4F81BD">Conf File Dir:
            /usr/lib/nagios/plugins/edcint<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:8.0pt;font-family:"Times New
            Roman","serif";color:#4F81BD">Loaded Conf
            File /usr/lib/nagios/plugins/edcint/check_wmi_plus.conf<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:8.0pt;font-family:"Times New
            Roman","serif";color:#4F81BD">Opening Ini
            Files ...<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:8.0pt;font-family:"Times New
            Roman","serif";color:#4F81BD">   opening
            first ini file:
            /usr/lib/nagios/plugins/edcint/check_wmi_plus.d/check_wmi_plus.ini<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:8.0pt;font-family:"Times New
            Roman","serif";color:#4F81BD">   checking ini
            dir /usr/lib/nagios/plugins/edcint/check_wmi_plus.d, found 1
            file(s)<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:8.0pt;font-family:"Times New
            Roman","serif";color:#4F81BD">   opening
            first ini file: check_wmi_plus.ini<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:8.0pt;font-family:"Times New
            Roman","serif";color:#4F81BD">INIFILE and/or
            INIDIR are set but there were no ini file(s) or an error
            occurred trying to read them.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:8.0pt;font-family:"Times New
            Roman","serif";color:#4F81BD">A valid MODE
            and/or SUBMODE must be specified<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:8.0pt;font-family:"Times New
            Roman","serif";color:#4F81BD">Typical Usage:
            -H HOSTNAME -u DOMAIN/USER -p PASSWORD -m MODE [-s SUBMODE]
            [-a ARG1 ] [-w WARN] [-c CRIT]<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:8.0pt;font-family:"Times New
            Roman","serif";color:#4F81BD">Full Usage: -H
            HOSTNAME -u DOMAIN/USER -p PASSWORD -m MODE [-s SUBMODE] [-b
            BYTEFACTOR] [-w WARN] [-c CRIT] [-a ARG1 ] [-o ARG2] [-3
            ARG3] [-4 ARG4] [-t TIMEOUT] [-y DELAY] [--namespace
            WMINAMESPACE] [--nodatamode] [--nodataexit NODATAEXIT]
            [--nodatastring NODATASTRING] [-d] [-z] [--inifile=INIFILE]
            [--inidir=INIDIR] [--inihelp] [--nokeepstate] [--keepexpiry
            KEXPIRY] [--keepid KID] [-v OSVERSION] [--help]
            [--itexthelp]<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:8.0pt;font-family:"Times New
            Roman","serif";color:#4F81BD">Help as a
            Manpage: --help<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:8.0pt;font-family:"Times New
            Roman","serif";color:#4F81BD">Help as Text:
            --itexthelp<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>
        -- <br>
      </div>
      <div class="moz-signature">
        <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>
    </blockquote>
  </body>
</html>