How to check SDA, SDA1 & SDA2?

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

How to check SDA, SDA1 & SDA2?

Post by barteuro »

Hi all,

I've got a question again..

I want to check the SDA, SDA1 & SDA2 from a Ubuntu Linux Server with the Nagios XI.

In the Nagios Server I putted the following services in the file: /usr/local/nagios/etc/services/linux_services.cfg

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

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

define service {
use generic-service
host_name Intranet
service_description Disk Usage SDA
check_command check_nrpe!check_sda

On the Nagios Server I putted the following text in the file: /usr/local/nagios/etc/nrpe.cfg

command[check_sda1]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/sda1
command[check_sda2]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/sda2
command[check_sda]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/sda

On the Ubuntu Linux Server I putted the following text in the file: /etc/nagios/nrpe.cfg

command[check_sda1]=/usr/lib/nagios/plugins/check_disk_1 -w 20% -c 10% -p /dev/sda1
command[check_sda2]=/usr/lib/nagios/plugins/check_disk_2 -w 20% -c 10% -p /dev/sda2
command[check_sda]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /dev/sda

When I open the view in the webinterface it says:

"NRPE: Unable to read output"

Can somebody help me with this?

Thanks in advance

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

Re: How to check SDA, SDA1 & SDA2?

Post by mmestnik »

This is a problem with the installation of the Nagios NRPE Plugins
http://www.linuxquestions.org/questions ... ut-274201/
Locked