NSClient custom counter question

Julian Hein jhein at netways.de
Wed Sep 29 08:37:34 CEST 2004


Hi,

> I've got my Nagios install set up to check the paging file on several
> Windows 200 hosts thus:
> 
> define command {
>      command_name    check_nt_pagingfile
>      command_line    $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
> COUNTER -l "\\Paging File(_Total)\\%Usage","Paging File Usage 
> is %.2f%%"
> -w $ARG1$ -c $ARG2$
> }
> 
> I'm passing 75 and 90 as the warning and critical levels respectively,
> but every host I'm checking returns the same result - Paging 
> File Usage
> is 0.00%

I think, you need a blank between "%" and "Usage":  

-l "\\Paging File(_Total)\\% Usage","Paging File Usage is %.2f%%"

Julian

-- 
Julian Hein                   NETWAYS GmbH         
Managing Director             Deutschherrnstr. 47a 
Fon.0911/92885-0              D-90429 Nürnberg     
Fax.0911/92885-31                                  
jhein at netways.de              http://www.netways.de 


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list