How to configure disk,mem,cpu info for windows
Syed Ali
syed at nec-labs.com
Thu Mar 13 19:00:15 CET 2003
I do not use Nsclient, I used SNMP to monitor my windows boxes.
However, based on what I see I guess the following should work:
In checkcommands.cfg have a command relating to each of the check_nt
options as follows:
#'check_nt' command defination
define command{
command_name check_nt_disk
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
USERDISKSPACE -l$ARG1$ -w $ARGS2$ -c$ARGS$
}
#'check_nt' command defination
define command{
command_name check_nt_cpuload
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
CPULOAD -l$ARG1$
}
Do the same for the other options, such as uptime, memusage.
Then in services.cfg do something like:
# Service definition
define service{
use generic-service
host_name narada
service_description check_nt
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups linux-admins
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
check_command check_nt_disk!c!85!95
}
define service{
use generic-service
host_name narada
service_description check_nt
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups linux-admins
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
check_command check_nt_cpuload!5,85,90
}
And so on....
-----Original Message-----
From: Ravi Sharma [mailto:ravis at stratify.com]
Sent: Thursday, March 13, 2003 12:54 PM
To: Syed Ali
Subject: RE: [Nagios-users] How to configure disk,mem,cpu info for
windows
Thanks for help, but still its not working..
web page is saying could not parse arguments.
I have check carefully, arguments are proper :
check_command check_nt!c!80!90
after this i have restarted the nagios.
Secondly i want the whole report as mentioned in FAQ page :
# NSClient
command[check_nt_disk]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$
command[check_nt_cpuload]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
CPULOAD -l $ARG1$
command[check_nt_uptime]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
UPTIME
command[check_nt_clientversion]=$USER1$/check_nt -H $HOSTADDRESS$ -p
1248 -v
CLIENTVERSION
command[check_nt_process]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
PROCSTATE -l $ARG1$
command[check_nt_service]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
SERVICESTATE -l $ARG1$
command[check_nt_memuse]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
MEMUSE -w $ARG1$ -c $ARG2$
command[check_nt_fileage]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
FILEAGE -l $ARG1$ -w $ARG2$ -c $ARG3$
How to configure this .as you mentioned SHOWALL, could you please tell
me
the exact line which i have to add
in the service.cfg and checkcommand.cfg ? it will be a great help for
me.
Regards
Ravi Sharma
-----Original Message-----
From: Syed Ali [mailto:syed at nec-labs.com]
Sent: Thursday, March 13, 2003 22:41
To: ravis at stratify.com; nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] How to configure disk,mem,cpu info for
windows
Usage: check_nt -H host -v variable [-p port] [-w warning] [-c critical]
[-l params] [-d SHOWALL] [-t timeout]
So I guess you could do something like the following in your
services.cfg file based on what you have entered in your
checkcommands.cfg file:
Check_nt!c!85!90
Which will check the C drive and will warn you at 85% usage and will
give you a critical notification at 90% of disk usage
-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
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