Page 1 of 1

Cpu, Disk, and Memory Probelm to setup

Posted: Mon Oct 07, 2013 3:17 pm
by cesar.garza
Hey guys,
I am really in weird situation where i am trying to setup (CPU, Disk, Memory) in linux server through NRPE. Explanation from scratch:
Installed NRPE on the Linux box and check the connection from Nagios server and got the positive response. I setup a service and got successful.
Now when i am trying to setup Cpu, Disk and Memory, getting a error in the nagios url (NRPE: Command 'alias_mem' not defined ) . I added alias_mem into nrpe.cfg file in the client box and restart the deamon.
I ran the command from the client command line and got positive response but on the nagios URL throwing above error.

Service.cfg

Code: Select all

define service {
        hostgroup_name                  redis-activemq-servers
        service_description             Memory Usage
        check_command                   check_nrpe_memory
        use                             generic-service
        notification_interval           0
        contact_groups                  sham
        }
command.cfg

Code: Select all

define command{
        command_name check_nrpe_memory
        command_line /usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c alias_mem
}
nrpe.cfg -----> Client Box

Code: Select all

command[alias_mem]=/usr/lib/nagios/plugins/check_mem -w 30 -c 40

Re: Cpu, Disk, and Memory Probelm to setup

Posted: Mon Oct 07, 2013 4:23 pm
by slansing
Have you tried using:

Code: Select all

check_memory
instead of alias_mem?