Disk Usages services for different Server in a Host group
Posted: Wed Jan 09, 2013 5:33 am
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
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