Disk Usages services for different Server in a Host group

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
bojha
Posts: 55
Joined: Thu Jul 26, 2012 1:18 am

Disk Usages services for different Server in a Host group

Post 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
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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'!!!!!!
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
bojha
Posts: 55
Joined: Thu Jul 26, 2012 1:18 am

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

Post 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
Locked