check_nrpe -c check_memory dude...

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
rambertnala
Posts: 70
Joined: Fri Feb 26, 2016 7:15 am

check_nrpe -c check_memory dude...

Post 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
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: check_nrpe -c check_memory dude...

Post by bwallace »

That is certainly possible. Check out these examples of range thresholds
https://nagios-plugins.org/doc/guidelin ... HOLDFORMAT
Be sure to check out the Knowledgebase for helpful articles and solutions!
rambertnala
Posts: 70
Joined: Fri Feb 26, 2016 7:15 am

Re: check_nrpe -c check_memory dude...

Post 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
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: check_nrpe -c check_memory dude...

Post 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/
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rambertnala
Posts: 70
Joined: Fri Feb 26, 2016 7:15 am

Re: check_nrpe -c check_memory dude...

Post by rambertnala »

Thanks a lot for your help...

I tried something like that but bad sintax

This is ready for my proposal...

Regards
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: check_nrpe -c check_memory dude...

Post by lmiltchev »

rambertnala, is it OK if we lock this thread?
Be sure to check out our Knowledgebase for helpful articles and solutions!
rambertnala
Posts: 70
Joined: Fri Feb 26, 2016 7:15 am

Re: check_nrpe -c check_memory dude...

Post by rambertnala »

Yes you can...
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: check_nrpe -c check_memory dude...

Post 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!
Locked