Hello,
we use the follwoing service command in nagios: check_nt!PROCSTATE!-d SHOWALL -l terminal.exe
If it is possible to display also PID and CPU and MEM load for that process?
Could we also create warning if process MEM == 0 for example? Hope some can help.
Check Process Windows
Re: Check Process Windows
I don't know of any single check in nsclient++ that can get all of these, but it can easily be done with the ncpa agent(https://www.nagios.org/ncpa/) instead with a commands like:
The first one pulls the process ID, mem, and cpu info. The second one will issue a warning if the process uses 50% of the memory
Code: Select all
./check_ncpa.py -H windows_machine_ip -t 'mytoken' -M 'processes' -q 'name=terminal.exe'
./check_ncpa.py -H 192.168.55.5 -t 'welcome!' -M 'processes' -q 'name=terminal.exe, mem_percent=50' -w 0
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.