I am setting up Icinga2 to monitor hosts. I have couple of issues with the following checks:
1: check_uptime
2: check_disk (on couple of hosts)
check_uptime: If i execute the following command from command line it works as expected:
/usr/lib64/nagios/plugins/check_nrpe -H host_name -c check_uptime -a “warn=uptime < 10h” “crit=uptime <2h”
WARNING: uptime: 09:31h, boot: 2019-Feb-19 04:50:32 (UTC)|‘uptime’=34262s;36000;7200
Now if i put this command in command.conf to monitor all my hosts it doesn’t work
I am unable to put “warn=crit <1h”. No matter how i put i always get an error. Can someone help me in passing both warn and crit arguments in commands.cfg file? Any help will be much appreciated.
2: check_disk: This check is not working on couple of hosts. I get the following error:
The same check is working for other partitions on the same host but fails for root partition.