Re: NRPE: Command 'check_mem' not defined
Posted: Thu Nov 21, 2019 9:19 am
I got it to work by using another perl script. One question I do have is, when I restart the Nrpe service using the service xinetd start/ restart, it only starts the process under root/ logged in user and not under Nagios. I tried su into Nagios while I was root, and when I run the command it asks me for password for Nagios, which I know is not set. I hit return/ enter, and it says access denied. How can I fix this? Thanks for your help!scottwilkerson wrote:You have changed the path and the arguments in the different commands you have shown
if this is in /etc/nagios/nrpe.cfgCan you run that from the command line on the remote server?vkodanam wrote:Code: Select all
command[check_mem]=/usr/local/nagios/libexec/check_mem.sh -w 85 -c 95
can you also show again the output ofCode: Select all
/usr/local/nagios/libexec/check_mem.sh -w 85 -c 95
Code: Select all
ps -ef|grep nrpe