Page 1 of 1

check_snmp_storage by % and MB left

Posted: Mon Oct 02, 2017 7:25 pm
by 911comp
Currently monitoring all disks by % used, and it works just fine.
problem arises, when service is applied to hosts with VERY large or small disks. as an example, most of the time 90% critical state is fine, but if disk is couple TB, then at 90% usage i still can have couple hundred GBs left, which is nothing to worry about.


So my question is: How to raise alert for SNMP monitored disks only if both conditions are met. Like raise an alert when disk space left is: "(< %) AND (< 1024MB)" ?

Re: check_snmp_storage by % and MB left

Posted: Tue Oct 03, 2017 2:23 pm
by eloyd
You can make two service checks, one that checks by space and one that checks by percentage. Then make a BPI group that combines the two and only alerts if BOTH are in a failure state.

Re: check_snmp_storage by % and MB left

Posted: Tue Oct 03, 2017 2:43 pm
by tgriep
Thanks @eloyd for the help, much appreciated.
@911comp, if you need some instructions for setting up BPI, take a look at this manual, it has instructions and examples you can look at but you can run the BPI wizard if you like.
The wizard is a quick way to get yourself started.
https://assets.nagios.com/downloads/nag ... BPI_v2.pdf

Re: check_snmp_storage by % and MB left

Posted: Fri Oct 06, 2017 12:06 am
by 911comp
never though of that. Thanks a lot guys!

Re: check_snmp_storage by % and MB left

Posted: Fri Oct 06, 2017 9:48 am
by kyang
Let us know if you have any more questions!

Or if we are able to close this thread.

Re: check_snmp_storage by % and MB left

Posted: Fri Oct 06, 2017 10:44 am
by eloyd
Oooooh, I hope we can close the thread! :-)

Re: check_snmp_storage by % and MB left

Posted: Fri Oct 06, 2017 1:54 pm
by dwhitfield
@911comp, ready to lock it up?

Re: check_snmp_storage by % and MB left

Posted: Mon Oct 09, 2017 6:01 am
by 911comp
yes, can be closed. thanks!