Configuring nrdp.cfg - Check multiple volumes in one check
Posted: Fri Jun 08, 2018 7:41 am
Hi
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".
Notice, that the root volume is LVM-based, whilst the "/boot" volume is just a formatted partition.
This is my nrdp.cfg:
This is, what the Nagios Core server ist logging to /var/log/nagios/nagios.log:
Notice, that in this given example, the status should be "WARNING" rather than "OK", because the volume "/boot" is above 85% usage.
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
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