Hello everybody,
On my Nagios server (localhost), when I execute in command line a check_disk, I have this :
and on the web interface :
I don't understand why I don't have the good values like on the result of the command line and if I modify the critical's thresholds or warning, the web interface is still on OK.
Here my config file of the service :
The nagios service was restart and I've checked my config with : /opt/nagios/bin/nagios -v /etc/nagios/nagios.cfg
All is fine
Thanks in advance
Best Regards
Wrong thresholds on the web interface
Re: Wrong thresholds on the web interface
Your execution from the CLI contains a percentage, but your service definition only contains an integer. check_disk supports both percent and integer values and has different behaviors depending on what you pass it:
If you want to be alerted when the disk availability falls below a certain percentage, I would recommend including a percentage value passed to the warning/critical args in your service definition.
Code: Select all
-w, --warning=INTEGER
Exit with WARNING status if less than INTEGER units of disk are free
-w, --warning=PERCENT%
Exit with WARNING status if less than PERCENT of disk space is free
-c, --critical=INTEGER
Exit with CRITICAL status if less than INTEGER units of disk are free
-c, --critical=PERCENT%
Exit with CRITICAL status if less than PERCENT of disk space is free
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: Wrong thresholds on the web interface
Yes !! It's this, thanks a lot mcapra
Re: Wrong thresholds on the web interface
Did you have further (related) questions or are we good to lock this up?
Former Nagios employee
Re: Wrong thresholds on the web interface
Yes it's good for me, thanks again