Remote Partition error on web console but not command line
Posted: Mon Oct 13, 2014 8:34 am
Hi,
I have Nagios 4.0.8 installed on the server and am trying to monitor the free space on a remote rhel server. The Nagios plugins and NRPE client has been installed and configured. From the command line everything works. From the web interface only the sda1 check works. Any idea why the web interface on the server cannot see the remote partitions? I have tried referring to them by /dev/.. and by the mount point /local/.. but same problem. Why is sda1 working but sdb1 is not? Clues?
My config file on the server
The nrpe cfg file on the server and client
I have Nagios 4.0.8 installed on the server and am trying to monitor the free space on a remote rhel server. The Nagios plugins and NRPE client has been installed and configured. From the command line everything works. From the web interface only the sda1 check works. Any idea why the web interface on the server cannot see the remote partitions? I have tried referring to them by /dev/.. and by the mount point /local/.. but same problem. Why is sda1 working but sdb1 is not? Clues?
Remote Server (Amber)Space on amber /local/store
CRITICAL 10-13-2014 14:14:41 0d 0h 6m 52s 4/4 DISK CRITICAL - /local/store is not accessible: No such file or directory
Space on amber sda1
OK 10-13-2014 14:18:19 0d 0h 0m 14s 1/4 DISK OK - free space: / 98349 MB (99% inode=99%):
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg_amber-lv_root 51606140 10390772 38593928 22% /
tmpfs 32964068 296 32963772 1% /dev/shm
/dev/sda1 495844 98539 371705 21% /boot
/dev/mapper/vg_amber-lv_home 21645884 176132 20370184 1% /home
/dev/sdb1 5767431768 2203903288 3270559776 41% /local/store
/dev/sdb2 6728670608 6024814268 362059476 95% /local/snapshots
[root@amber etc]# /usr/local/nagios/libexec/check_nrpe -H localhost
NRPE v2.15
[root@ objects]# /usr/local/nagios/libexec/check_nrpe -H amber
NRPE v2.15
[root@ objects]# /usr/local/nagios/libexec/check_nrpe -H amber -c check_disk_snaps
DISK CRITICAL - free space: /local/snapshots 353573 MB (5% inode=97%);| /local/snapshots=5883607MB;5256773;6242418;0;6570967
[root@ objects]# /usr/local/nagios/libexec/check_nrpe -H amber -c check_disk_store
DISK OK - free space: /local/store 3193906 MB (59% inode=99%);| /local/store=2152249MB;4505805;5069031;0;5632257
My config file on the server
define service{
use remote-service ; Name of service
host_name amber
service_description Space on amber /local/store
is_volatile 0
check_period 24x7
max_check_attempts 4
normal_check_interval 5
retry_check_interval 1
contact_groups admins
notification_options w,u,c,r
notification_interval 960
notification_period 24x7
check_command check_nrpe!check_disk_store
}
define service{
use remote-service ; Name of service
host_name amber
service_description Space on amber sda1
is_volatile 0
check_period 24x7
max_check_attempts 4
normal_check_interval 5
retry_check_interval 1
contact_groups admins
notification_options w,u,c,r
notification_interval 960
notification_period 24x7
check_command check_nrpe!check_sda1
}
define service{
use remote-service ; Name of service
host_name amber
service_description Space on /local/snapshots
is_volatile 0
check_period 24x7
max_check_attempts 4
normal_check_interval 5
retry_check_interval 1
contact_groups admins
notification_options w,u,c,r
notification_interval 960
notification_period 24x7
check_command check_nrpe!check_disk_snaps
}
The nrpe cfg file on the server and client
command[check_disk_store]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /local/store
command[check_disk_snaps]=/usr/local/nagios/libexec/check_disk -w 20% -c 5% -p /dev/sdb2