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
check_nrpe -c check_memory dude...
Re: check_nrpe -c check_memory dude...
That is certainly possible. Check out these examples of range thresholds
https://nagios-plugins.org/doc/guidelin ... HOLDFORMAT
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...
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
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
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: check_nrpe -c check_memory dude...
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:
This might be best asked in the NSClient++ forum:
http://forums.nsclient.org/
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)"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...
Thanks a lot for your help...
I tried something like that but bad sintax
This is ready for my proposal...
Regards
I tried something like that but bad sintax
This is ready for my proposal...
Regards
Re: check_nrpe -c check_memory dude...
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...
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...
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!