Code: Select all
; alias_disk - Alias for alias_disk. To configure this item add a section called: /settings/external scripts/alias/alias_disk
alias_disk = CheckDriveSize MinWarn=10% MinCrit=5% CheckAll FilterType=FIXED
so i wanted it to check usign disk size ratehr than percentage. So changed it to this:
Code: Select all
; alias_disk - Alias for alias_disk. To configure this item add a section called: /settings/external scripts/alias/alias_disk
alias_disk = CheckDriveSize MinWarn=35GB MinCrit=30GB CheckAll FilterType=FIXED
running a manual check from nagios :
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H pod-pl-iis2 -c alias_disk
The problem is when nagios automatically runs a schdueled check it reports back as "OK: all drives within bounds
I did a bit of digging to see how it is set up and the disk space check i think is set up as follows:
define service{
use generic-service
host_name !mail.poad
hostgroup_name pod-pl-iis2
service_description Drive Space
check_command check_nrpe!alias_disk_loose
servicegroups drivespace
}
define servicegroup{
servicegroup_name drivespace
alias Drive_Space
}
so i changed the alias_disk_loose as well to match (and restarted the remote windows NSclient)
Code: Select all
; alias_disk_loose - Alias for alias_disk_loose. To configure this item add a section called: /settings/external scripts/alias/alias_disk_loose
alias_disk_loose = CheckDriveSize MinWarn=35GB MinCrit=30GB CheckAll FilterType=FIXED ignore-unreadable
apologise if i've missed anythign vital off - Still working my way around this application and i'm not sure where to look next
any help would be appreciated
Regards