Windows Process Checking
Jorg.Schulz at systeam.se
Jorg.Schulz at systeam.se
Thu Mar 1 12:09:02 CET 2007
Hi
The wincheck_counter plugin has to be on a w2k or 2003 box.
The plugin to get the information is check_nrpe from the Linux/unix site.
If you want to get info from remote hosts (linux) you need a NRPE or via
SNMP
Example
Here are some samples of monitoring stuff you can do with the counter.
[quote]# General Health
command[check_gen_sut]=C:\winnt\wincheck\wincheck_counter -C "System" -P
"System Up Time" -f "System Up Time is %f Seconds"
command[check_gen_prq]=C:\winnt\wincheck\wincheck_counter -C "System" -P
"% Registry Quota in use" -w 75 -c 85 -f "Registry Quota in use is %f%%"
# Processor Health
command[check_proc_tpt]=C:\winnt\wincheck\wincheck_counter -C "Processor"
-I "_Total" -P "% Processor Time" -w 70 -c 85 -f "Processor Time is %f%%"
command[check_proc_pql]=C:\winnt\wincheck\wincheck_counter -C "System" -P
"Processor Queue Length" -w 80 -c 90 -f "Processor Queue Length is %f"
command[check_proc_ppt]=C:\winnt\wincheck\wincheck_counter -C "Processor"
-I "_Total" -P "% Privileged Time" -w 20 -c 25 -f "Processor Privileged
Time is %f%%"
command[check_proc_dpt]=C:\winnt\wincheck\wincheck_counter -C "Processor"
-I "_Total" -P "% DPC Time" -w 40 -c 50 -f "Deferred Procedure calls is
%f%%"
# Memory Health
command[check_mem_pps]=C:\winnt\wincheck\wincheck_counter -C "Memory" -P
"Pages/sec" -c 50 -w 25 -f "Pages per second is %f"
command[check_mem_fps]=C:\winnt\wincheck\wincheck_counter -C "Memory" -P
"Page Faults/sec" -w 50 -c 100 -f "Page Faults per second is %f"
command[check_mem_pfu]=C:\winnt\wincheck\wincheck_counter -C "Paging File"
-I "_Total" -P "% Usage" -w 65 -c 71 -f "Paging File Usage is %f%%"
# Disk Health
command[check_disk_c]=C:\winnt\wincheck\wincheck_counter -C "LogicalDisk"
-I "C:" -P "% Free Space" -w 20 -c 10 -f "Disk C is %f%% free."
command[check_disk_pdt]=C:\winnt\wincheck\wincheck_counter -C
"PhysicalDisk" -I "_Total" -P "% Disk Time" -w 40 -c 50 -f "%% Disk Time
is %f"
command[check_disk_rql]=C:\winnt\wincheck\wincheck_counter -C
"PhysicalDisk" -I "_Total" -P "Avg. Disk Read Queue Length" -w 1 -c 2 -f
"Avg. Read Queue Length is %f"
command[check_disk_wql]=C:\winnt\wincheck\wincheck_counter -C
"PhysicalDisk" -I "_Total" -P "Avg. Disk Write Queue Length" -w 1 -c 2 -f
"Avg. Write Queue Length is %f"
# Exchange 5.5
command[msexchangeimc_que_out]=C:\winnt\wincheck\wincheck_counter -C
"MSExchangeIMC" -P "Queued Outbound" -w 200 -c 250 -f "Queued Outbound is
%f Emails Waiting for Delivery"
[/quote]
Checkcommands.cfg
define command {
command_name check_nrpe
command_line /usr/local/nagios/libexec/check_nrpe -H
$HOSTADDRESS$ -c $ARG1$
}
Services.cfg (examples)
define service {
host_name exchange
service_description check_disk_c
check_command check_nrpe!check_disk_c
use generic-service
max_check_attempts 3
normal_check_interval 3
retry_check_interval 1
check_period 24x7
notification_interval 0
notification_period 24x7
notification_options w,u,c,r
contact_groups admins
}
Regards
/Jörg
I downloaded the wincheck_counter plugin from nagiosexchange.org.
However, I only noticed a .dll file and an .exe file. I am assuming that
these will not work under *NIX installations of Nagios? If not, is there
a plugin comparable to this for running on *NIX-based Nagios
configurations?
--
Robert Wolfe (MCP/Linux+) <rwolfe at shatterit.com>
http://www.shatterit.com
Linux: Improvise! Adapt! Overcome!
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.4/705 - Release Date: 2007-02-27
15:24
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.4/705 - Release Date: 2007-02-27
15:24
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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