whitetree wrote:I solved the problem. I had to add a password to the NSC.ini file and Nagios. It only worked if I removed the host from Core Config then readded it. I also had to remove the /usr/local/nagios/etc/hosts/server.cfg file
Glad to hear it.
check_nt -v MEMUSE shows the complete memory (physical memory + page.sys)
There are several ways to get physical usage, one being SNMP, and the other through NSClient++ with nrep
NSClient++ can also be used using check_nrpe (you will have to make sure the NEPE
listener module is enabled and properly configured)
Here are example of memory checks you can do with check_nrpe:
Physical memory:
CheckMem ShowAll=long MaxWarn=$ARG1$ MaxCrit=$ARG2$ type=physical
Page file:
CheckMem ShowAll=long MaxWarn=$ARG1$ MaxCrit=$ARG2$ type=virtual
All memort (RAM+SWAP):
CheckMem ShowAll=long MaxWarn=$ARG1$ MaxCrit=$ARG2$ type=paged
You can set them as aliases ($ARGx$ are nrpe arguments) or even call
CheckMem as the NRPE command and the rest of the line are the nrpe
arguments (-a).