Page 1 of 1

Disk Usages services for different Server in a Host group

Posted: Wed Jan 09, 2013 5:33 am
by bojha
Hi All,

We are using Nagios Xi Version--- Nagios XI 2011R1.9
and defined one service for the disk usages which is used by different host group

service definition is

define service {
service_description Disk Usage
use orcc_linux
hostgroup_name Linux,Linux QA
check_command check_nrpe!check_disk!-a '-w 20% -c 10% -p / -p /export -p /opt -p /tmp'!!!!!!
register 1
}

we have the check_nrpe plugin installed.

but the problem is when we are adding a new server which don't have the export file system then it is throwing
DISK CRITICAL - /export is not accessible: No such file or directory
But for some servers in the same host group service status for Disk Usages showing only the root file system and for some it is showing all the file system and for some it is throwing the above error.

and we are trying to keep all the linux boxes in one host group but the file systems are different for different servers.
do we need to create a different host group ?
is there any way to modify the command which will ignore if the export or any file system is not there and if it is there , then it will monitor that file system ?

Please find attached the screen shoot of different scenario of the service status

Please suggest us what approach we need to follow

Thanks in advance

Bijay

Re: Disk Usages services for different Server in a Host gro

Posted: Wed Jan 09, 2013 10:15 am
by scottwilkerson
If you do not specify a -p option at all, it will check all devices on the machine
ie.

Code: Select all

check_command check_nrpe!check_disk!-a '-w 20% -c 10%'!!!!!!
If you get some in the group that you want to exclude, you can exclude them with

Code: Select all

check_command check_nrpe!check_disk!-a '-w 20% -c 10% -x /badmount'!!!!!!

Re: Disk Usages services for different Server in a Host gro

Posted: Thu Jan 10, 2013 5:20 am
by bojha
Hi Scott,

Many many.... thanks to you , your suggestion helped me a lot....
now i got Disk Usages service for all the server.


With Regards,

Bijay Ojha