Monitoring Windows using SNMP


#1

Good morning people.

I’ve got somewhat of a problem here, I’m trying to monitor a Windowsmachine using SNMP but I belive if I’d monitor my head right now, an alarm would’ve gone off - couse it’s overheating or such.

SNMP works very neat between my Nagios(CentOS)machine and the Windowsmachine - But how do I tell Nagios to monitor CPU, LOAD, Diskusage and such through the configuration files?
I’ve managed to monitor certain services with this configuration below, but LOAD, CPU and such aint a service - so I’m quite stuck.

COMMANDS.CFG

[blockquote]
define command {
command_name check_win
command_line $USER1$/check_snmp_win.pl -H 192.168.8.111 -C public -n $ARG1$
}
[/blockquote]

HOSTFILE.CFG

[blockquote]
define service {
check_period 24x7
max_check_attempts 4
normal_check_interval 5
retry_check_interval 1
contact_groups admins
host_name websrvr06snmp
name standard-service
service_description IIS
check_command check_win!iis
}
[/blockquote]

And this setup works flawless, if it doesn’t find IIS running, it alerts me.

The question beeing - how do I monitor the CPU, LOAD, Diskusage. Memory Usage and Uptime and such?
If you know the answer, please post very detailed - couse that might get my head to start working again.

Thanks in advance and best of luck.

/Lars Engstr


#2

After having a chat with a friend/colleague of mine, we solved it - seems that check_snmp_win aint used for monitoring load and such, after trying out check_snmp_load it worked instantly.
Thanks!


#3

Why would you use SNMP to check for windows? Why not check through WMI?