Cpu, Disk, and Memory Probelm to setup

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
cesar.garza
Posts: 80
Joined: Mon Aug 19, 2013 3:14 pm

Cpu, Disk, and Memory Probelm to setup

Post 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
You do not have the required permissions to view the files attached to this post.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Cpu, Disk, and Memory Probelm to setup

Post by slansing »

Have you tried using:

Code: Select all

check_memory
instead of alias_mem?
Locked