NRPE: Command 'check_disk' not defined

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
barteuro
Posts: 6
Joined: Tue Feb 23, 2010 1:56 am

NRPE: Command 'check_disk' not defined

Post by barteuro »

Hi,

I'm trying to monitor a Linux server.

In the webinterface I already see the:

- Current Load
- Current Users
- Total Proccesses
- Zombie Processes

They all turn back 'OK'. (These are all standard though)

I tried to add the following checks:

check_disk
check_http
check_mysql

I putted the following text in the following file:

/usr/local/nagios/etc/services/linux_services.cfg

define service {
use generic-service
host_name Intranet
service_description Disk Usage
check_command check_nrpe!check_disk
}

define service {
use generic-service
host_name Intranet
service_description Webserver
check_command check_nrpe!check_http
}

define service {
use generic-service
host_name Intranet
service_description SQL Server
check_command check_nrpe!check_mysql
}

In the following file I putted the following text:

/usr/local/nagios/etc/nrpe.cfg

command[check_disk]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/hda1

command[check_http]=/usr/local/nagios/libexec/check_http -H <intranet> | -I <192.168.10.206> [-u <uri>] [-p <port>] [-w <warn time>] [-c <critical time>] [-t <timeout>] [-L] [-a auth] [-f <ok | warn | critcal | follow>] [-e <expect>] [-s string] [-l] [-r <regex> | -R <case-insensitive regex>] [-P string] [-m <min_pg_size>:<max_pg_size>] [-4|-6] [-N] [-M <age>] [-A string] [-k string] [-S] [-C <age>] [-T <content-type>]

command[check_mysql]=/usr/local/nagios/libexec/check_mysql [-d database] [-H intranet] [-P 3306] [-s socket] [-u root] [-p (here is the password normally)] [-S]

In the webinterface these 3 checks show up under 'Critical'.
And it says under 'Status Information': NRPE: Command 'check_disk' not defined.

Could somebody help me?

I guess the problem is in the nrpe.cfg ... or do I have to add something somewhere else too?

Thanks in advance ;)

Regards
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: NRPE: Command 'check_disk' not defined

Post by mmestnik »

This sounds like the agent on the client(NRPE server) was installed, but not configured. You do need to restart it after changing the config file. Make sure the nrpe.cfg file is on the Linux client you wish to monitor, depending on the nrpe install you may need to place it in another path.
Locked