I'm trying to monitor the number of processes and the users logged in with NSClient++ on a host with Windows XP. I know this can be done with SNMP using HOST-RESOURCES-MIB::hrSystemProcesses.0 and HOST-RESOURCES-MIB::hrSystemNumUsers.0. In fact, I tried it and seems to give the correct results. But I was asked to do as many of checks via NRPE. I Don't know if this will be an unnecessary complication, since (at least in the latest stable version of NSClient++: 0.4.1.105) I see no commands to check these two metrics.
For example, for the case of the processes, I have read the documentation of check_process [1]. I added something like the following in the nsclient.ini for testing:
Code: Select all
check_total_procs = check_process process=* "warn=total > 150" "crit=total > 200"
Code: Select all
# /usr/lib/nagios/plugins/check_nrpe -H <windows-ip> -c check_total_procs
OK: All processes are running.|'process'=0 'warn'=0 'crit'=0
Someone had experience in taking these results with NSClient++?
Thanks in advance.
Best regards,
Daniel
[1] http://docs.nsclient.org/reference/Chec ... ck_process