check_ncpa.py -H xxxxxxx -P 5666 -t 'nagiosapi' -M 'processes' -c 0 -q 'mem_percent=80,name=PmwRobot-server-5.exe'
As we understand it, it returns a count if it is above 80% and sends back memory, memory_rss and memory_vms to graph. A typical check might return.
Total Memory: 5.00 % (VMS 4.29 GB, RSS 4.29 GB) yet in resource monitor we see numbers higher that 4.29 in working set(kb) commit(kb) sharabl(kb) private(kb) for the same process.
In addition even nagios with the windowscounter command brings back 4.29g consistantly for other process on other servers.
And powershell virual bytes brings back an event different number.
Code: Select all
PS C:\Users\JKELLYA> Get-Counter -Counter '\Process(*PmwRobot-server-5)\Virtual Bytes' -MaxSamples 1
Timestamp CounterSamples
--------- --------------
6/24/2020 1:59:59 PM \\clbupmwhqpcf003\process(pmwrobot-server-5)\virtual bytes :
12941594624How do we verify the accuracy of the numbers being returned by the check and would our check alert if %Memory used by process goes over 80% How should we interpret memory_rss and Memory_vms to the developers using the Resource Monitor?
Thanks
John