check_snmp_storage by % and MB left

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
911comp
Posts: 6
Joined: Fri Sep 29, 2017 1:23 pm

check_snmp_storage by % and MB left

Post 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)" ?
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: check_snmp_storage by % and MB left

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: check_snmp_storage by % and MB left

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
911comp
Posts: 6
Joined: Fri Sep 29, 2017 1:23 pm

Re: check_snmp_storage by % and MB left

Post by 911comp »

never though of that. Thanks a lot guys!
kyang

Re: check_snmp_storage by % and MB left

Post by kyang »

Let us know if you have any more questions!

Or if we are able to close this thread.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: check_snmp_storage by % and MB left

Post by eloyd »

Oooooh, I hope we can close the thread! :-)
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: check_snmp_storage by % and MB left

Post by dwhitfield »

@911comp, ready to lock it up?
911comp
Posts: 6
Joined: Fri Sep 29, 2017 1:23 pm

Re: check_snmp_storage by % and MB left

Post by 911comp »

yes, can be closed. thanks!
Locked