nsclient
Marc Powell
marc at ena.com
Thu Mar 25 18:52:54 CET 2004
On Thursday, March 25, 2004 11:02 AM, Pat shared with us:
> I anewbie. I've had it up and running for a week now and everything's
> fine.
>
> I just installed nsclient on one of my W2K boxes to try and get it
> working there.
> I've got all the commands done but I can't figure out what arguments
> I need to send to get a proper response. I keep getting "wrong -l
> argument"
>
> Can't find any doc for it either.
>
> Anybody knows?
Run ./check_nt --help. The arguments supplied to -l vary depending on
what variable you are checking.
Some examples (note: these are not the best way to define reusable
commands but are examples) --
Check used disk space on C: and D:
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
USEDDISKSPACE -l C -w 90 -c 95
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
USEDDISKSPACE -l D -w 90 -c 95
Make sure IIS component is running:
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v PROCSTATE
-d showall -l inetinfo.exe
Make sure interesting Remedy processes are running:
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v PROCSTATE
-d showall -l armonitor.exe,aremaild.exe,arplugin.exe,arserver.exe
Check cpu load:
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v CPULOAD -l
10,80,95,60,80,95,1440,80,95
Check the size of the paging file:
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$
--
Marc
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
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