Page 1 of 1
check_nrpe -c check_memory dude...
Posted: Thu Oct 06, 2016 11:07 am
by rambertnala
Hi friends from Spain.
I am testing this command
check_nrpe -H IP_ADDRESS -t 120 -c check_memory -a show-all "type=physical" "detail-syntax=Memoria Fisica %(size)- Libre: %(free) Usada: %(used)" "warn= used > 70%" "crit= used > 90%"
and everything is ok. Remote PC is Windows XP 32 and Nsclient 0.4.3 running
I would like to know if is possible that i get warning when ocurrs "warn= used > 70%" or "warn= size < 2G"
Is there any way to get this option????
Thanks
Re: check_nrpe -c check_memory dude...
Posted: Thu Oct 06, 2016 11:49 am
by bwallace
That is certainly possible. Check out these examples of range thresholds
https://nagios-plugins.org/doc/guidelin ... HOLDFORMAT
Re: check_nrpe -c check_memory dude...
Posted: Thu Oct 06, 2016 5:35 pm
by rambertnala
Hi
I have read it.
But in my case i wanna get a WARNING if total memory size of PC is less than 2G or total memory used is more than 70%
I think thresholds range are for same value. For example to get WARNING if total memory used is more than 70% and less than 85%
I don't know if i have explained it well
Re: check_nrpe -c check_memory dude...
Posted: Thu Oct 06, 2016 7:10 pm
by Box293
The documentation doesn't explain that you can use two warning criteria:
http://docs.nsclient.org/reference/wind ... eck-memory
However with some playing around I think this works:
Code: Select all
"warn= (used > 70%) or (size < 2G)"
This might be best asked in the NSClient++ forum:
http://forums.nsclient.org/
Re: check_nrpe -c check_memory dude...
Posted: Fri Oct 07, 2016 6:52 am
by rambertnala
Thanks a lot for your help...
I tried something like that but bad sintax
This is ready for my proposal...
Regards
Re: check_nrpe -c check_memory dude...
Posted: Fri Oct 07, 2016 11:15 am
by lmiltchev
rambertnala, is it OK if we lock this thread?
Re: check_nrpe -c check_memory dude...
Posted: Fri Oct 07, 2016 1:01 pm
by rambertnala
Yes you can...
Re: check_nrpe -c check_memory dude...
Posted: Fri Oct 07, 2016 1:26 pm
by dwhitfield
Glad to hear it is resolved. I am going to lock the thread. Please feel free to post again if you have you another issue. Thank you for using the Nagios forums!