Thursday, December 8, 2011

NRPE: Command 'check_mem' not defined

Sponsored Links
This error is coming because the missing of check_mem command on the client machine

open the following file and add the command as follows

root@server1 [/opt/Nagios/Nagios_NRPE/nrpe-2.12]# vi /usr/local/nagios/etc/nrpe.cfg
command[check_mem]=/usr/local/nagios/libexec/check_mem 85 95
save the file. That it.

root@server1 [~]# /usr/local/nagios/libexec/check_mem 85 95
OK - Memory usage is 2.000%
root@server1 [~]#
Sponsored Links

3 comments:

  1. I have this error too.
    but on the client machine works perfect.
    the thing is from the nagios server with nrpe command
    I got check_mem command undefined

    ReplyDelete
  2. Replies
    1. Willfredo,

      check the command exists on both systems.

      Delete

Be nice. That's all.