Page 2 of 2

Re: Memory Utilization plugin for windows server

Posted: Mon Feb 08, 2021 12:59 am
by deek
Is there a way to give 'and ' instead of ' or ' in the command line . Because I want the alert to be triggered only when the " available is less than 1GB and used is less than 5% " .

/usr/local/nagios/libexec/check_nrpe -2 -H X.X.X.X -c check_memory -a type=physical 'crit=free<1G or used<5%'

Is there any other way to do this like service dependency .

Re: Memory Utilization plugin for windows server

Posted: Mon Feb 08, 2021 3:13 pm
by benjaminsmith
Hi,
Because I want the alert to be triggered only when the " available is less than 1GB and used is less than 5% " .
One option would be to create a BPI group for these two checks, and if they both fail, then send a notification.

See: Using BPI In Nagios XI

Let us know if that would work out.

Re: Memory Utilization plugin for windows server

Posted: Tue Feb 16, 2021 11:10 am
by deek
Thanks
That worked . You can close this ticket .

Re: Memory Utilization plugin for windows server

Posted: Tue Feb 16, 2021 3:48 pm
by benjaminsmith
That worked . You can close this ticket .
Great! Thanks for the update.