The following page will give you the instructions for installing and configuring NSClient++.
As can be seen, cpu, memory, disk space, service states, etc. are available from NSClient++ (via check_nt)
http://nagios.sourceforge.net/docs/3_0/ ... ndows.html
The NRPE for WIN instructions can be found here
http://itbod.wordpress.com/2010/08/10/h ... dows-host/
or here
http://www.miwi-dv.com/nrpent/
The NAG server is RH5. This WIN client is 2003 SP2. This WIN client used to be a backup server running NetBackup - we have since migrated to a RH system for NBU.
The scripts below are an example of monitoring outside NSClient++ as I am also using nrpe for some custom stuff.
This example provides a check of how many tapes are in the library when running NetBackup. I setup 2 different scripts for custom monitors
Developing the scripts required a little more work - not much. Mainly had to create 2 scripts, one for WIN so it could call and execute the shell script and the shell script itself
check_alltapes.cmd
@echo off
set CYGWIN=binmode tty ntsec
e:\cygwin\bin\bash -l alltapes
alltapes
#!/bin/bash
#set -xv
#Nagios Return codes
#OK = 0
#WARN = 1
#CRIT = 2
#UNK = 3
# threshold parameters
WARN=15
CRIT=10
NUM=`/d/Program\ Files/VERITAS/Volmgr/bin/vmquery -rn 0 -bx | sed '1,3d' | wc -l`
#echo $NUM
#echo $WARN
#echo $CRIT
if [ ${NUM} -gt ${WARN} ]
then
echo "Number of tapes in library = $NUM | \=$NUM;$WARN;$CRIT;0;500"
exit 0
elif [ ${NUM} -le ${WARN} ] && [ ${NUM} -gt ${CRIT} ]
then
echo "Number of tapes in library = $NUM | \=$NUM;$WARN;$CRIT;0;500"
exit 1
else [ ${NUM} -le ${CRIT} ]
echo "Number of tapes in library = $NUM | \=$NUM;$WARN;$CRIT;0;500"
exit 2
fi
The locations for my install is different, I am working of the E: drive. Shouldn't matter where you install, as long as you make the mods for the PATH
I did this some years back (early 2010) but it has been running reliably. And since I am not into WIN, I too had to do lots of searching and experimenting.
The only problem I have found was that the NSClient++ would die off occasionally, putting the restart in the services makes sure the process would restart.
I hope I got you started. Let me know if more information is required.
A google search turned up lots of posts about NAG on WIN. There is even a "winrpe" available for WIN. (This was not available when I did this install, you may want to check it out.)