<br><font size=2 face="sans-serif">Hello all,</font>
<br>
<br><font size=2 face="sans-serif">I am having a problem with NSClient
- maybe somebody else has experinced the same problem and can help ?</font>
<br>
<br><font size=2 face="sans-serif">I am trying to query performance counters
on a 2000 Server. Here is my command definition.....</font>
<br>
<br><font size=2 face="sans-serif">define command{</font>
<br><font size=2 face="sans-serif">        command_name
   check_nt_perf_counter</font>
<br><font size=2 face="sans-serif">        command_line
   $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v COUNTER -l $ARG1$
-w $ARG2$ -c $ARG3$</font>
<br><font size=2 face="sans-serif">        }</font>
<br>
<br>
<br><font size=2 face="sans-serif">And here is my service definition....</font>
<br>
<br><font size=2 face="sans-serif">define service{</font>
<br><font size=2 face="sans-serif">        service_description
            NT Paging File</font>
<br><font size=2 face="sans-serif">        check_command
                  check_nt_perf_counter!'"\\Paging
File(_Total)\\%% Usage"'!50!80</font>
<br><font size=2 face="sans-serif">        use  
                     
    service_template</font>
<br><font size=2 face="sans-serif">        max_check_attempts
             3</font>
<br><font size=2 face="sans-serif">        check_period
                   24x7</font>
<br><font size=2 face="sans-serif">        normal_check_interval
          5</font>
<br><font size=2 face="sans-serif">        retry_check_interval
           5</font>
<br><font size=2 face="sans-serif">        notification_interval
          360</font>
<br><font size=2 face="sans-serif">        notification_period
            WorkingHours</font>
<br><font size=2 face="sans-serif">        notification_options
           w,c,r</font>
<br><font size=2 face="sans-serif">        contact_groups
                 it_department</font>
<br><font size=2 face="sans-serif">        name  
                     
   nt_memuse_service</font>
<br><font size=2 face="sans-serif">        register
                     
 1</font>
<br><font size=2 face="sans-serif">        host_name
                     
NTBOX</font>
<br><font size=2 face="sans-serif">}</font>
<br>
<br><font size=2 face="sans-serif">(NB I use a quote and then a double
quote above in my def to push the quotes through)</font>
<br>
<br><font size=2 face="sans-serif">Nagios compiles and restarts, but the
results of my checks always stay at 0. I know that the syntax of the command
I am using is fine because it executes and returns a proper variable when
run manually. In addition when I change my command definition and echo
it to a file to check the variables are okay - all is fine there too. </font>
<br>
<br><font size=2 face="sans-serif">Looking through the event viewer on
the 2000 machine I see this error - 'NSClient Error: PDH.dll "\\Paging
File(_Total)\\%% Usage" - ERROR: ITEM_NOT_VALIDATED'.</font>
<br>
<br><font size=2 face="sans-serif">Has anybody else seen this error at
all, its driving me wild !!!</font>
<br>
<br><font size=2 face="sans-serif">Thanks</font>
<br>
<br><font size=2 face="sans-serif">Matthew</font>
<br>
<br>
<br>