I have configured passive checks using NCPA clients and the NRDP server add-on (1.5.2) on top of (Nagios Core 4.3.4).
Passive checks are working correctly so far.
I noticed, that on a CentOS 7 linux system (to be monitored), the passive disk check reports just on the root volume "/", and not on any other volumes.
Now, I would like to configure my client NCPA client (using /usr/local/ncpa/etc/ncpa.cfg.d/nrdp.cfg) in a way, that it checks all disks associated with the base OS.
In my case, this will be "/" and "/boot".
Code: Select all
# df -Ph | grep '^/'
/dev/mapper/root-root 20G 2.0G 19G 10% /
/dev/sda1 922M 756M 120M 87% /boot
This is my nrdp.cfg:
Code: Select all
# cat /usr/local/ncpa/etc/ncpa.cfg.d/nrdp.cfg
[passive checks]
%HOSTNAME%|__HOST__ = system/agent_version
%HOSTNAME%|DISK_OS_passive = disk/logical/|/used_percent --warning 85 --critical 90
Code: Select all
[1528460781] PASSIVE SERVICE CHECK: myhost;DISK_OS_passive;0;OK: Used_percent was 9.60 %
How do I configure nrdp.cfg to check on multiple volumes?
Is there a documentation for it? I did not find my answer in the API reference (https://www.nagios.org/ncpa/help/2.0/api.html).
Or asked differently, is it possible to check all mounted local volumes (ignoring remote fs like nfs mounts)?
Thanks
Toni