CheckMem on WindowsServer without warn/crit
CheckMem on WindowsServer without warn/crit
Hello!
i want to check the mem-state of my windows-server. but I don't want to set a warning or critical.
Is this possible?
our default: check_nrpe -t 50 -H<host> -c CheckMem -a ShowAll MaxWarn=98% MaxCrit=100% type=physical
but I have one Server where I don't need the alarm if mem is very high.
rg
Hansi
i want to check the mem-state of my windows-server. but I don't want to set a warning or critical.
Is this possible?
our default: check_nrpe -t 50 -H<host> -c CheckMem -a ShowAll MaxWarn=98% MaxCrit=100% type=physical
but I have one Server where I don't need the alarm if mem is very high.
rg
Hansi
Re: CheckMem on WindowsServer without warn/crit
Does removing the MaxWarn and MaxCrit values get you the desired effect? If other checks use this values intentionally, you may need to define a separate command for this machine's memory.
Like so:
Like so:
Code: Select all
[root@xi-stable libexec]# ./check_nrpe -H 192.168.67.99 -t 30 -c CheckMem -a ShowAll MaxWarn=40% MaxCrit=50% type=physical
critical(physical: Total: 3.999GB - Used: 3.065GB (76%) - Free: 956.859MB (23%))|'physical'=3.065GB;1.59977;1.99971;0;3.99943 'physical %'=77%;40;50;0;100
[root@xi-stable libexec]# echo $?
2
...
[root@xi-stable libexec]# ./check_nrpe -H 192.168.67.99 -t 30 -c CheckMem -a ShowAll type=physical
physical: Total: 3.999GB - Used: 3.016GB (75%) - Free: 0.983GB (24%)|'physical'=3.0161GB;3.19954;3.59949;0;3.99943 'physical %'=75%;80;90;0;100
[root@xi-stable libexec]# echo $?
0
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: CheckMem on WindowsServer without warn/crit
Hello!
I will get any value, but I don't know where their comes:
check_nrpe -t 50 -H<server> -c CheckMem -a ShowAll MaxWarn=98% MaxCrit=100% type=physical
physical: Total: 63.99GB - Used: 55.772GB (87%) - Free: 8.218GB (12%)|'physical'=55.77223GB;62.71017;63.98997;0;63.98997 'physical %'=87%;97;100;0;100
check_nrpe -t 50 -H <server> -c CheckMem -a ShowAll type=physical
warning(physical: Total: 63.99GB - Used: 55.743GB (87%) - Free: 8.247GB (12%))|'physical'=55.74306GB;51.19198;57.59098;0;63.98997 'physical %'=87%;79;89;0;100
rg
Hansi
I will get any value, but I don't know where their comes:
check_nrpe -t 50 -H<server> -c CheckMem -a ShowAll MaxWarn=98% MaxCrit=100% type=physical
physical: Total: 63.99GB - Used: 55.772GB (87%) - Free: 8.218GB (12%)|'physical'=55.77223GB;62.71017;63.98997;0;63.98997 'physical %'=87%;97;100;0;100
check_nrpe -t 50 -H <server> -c CheckMem -a ShowAll type=physical
warning(physical: Total: 63.99GB - Used: 55.743GB (87%) - Free: 8.247GB (12%))|'physical'=55.74306GB;51.19198;57.59098;0;63.98997 'physical %'=87%;79;89;0;100
rg
Hansi
Last edited by very_best on Tue May 02, 2017 12:17 am, edited 1 time in total.
- tacolover101
- Posts: 432
- Joined: Mon Apr 10, 2017 11:55 am
Re: CheckMem on WindowsServer without warn/crit
what plugin for CheckMem are you using? it looks like it's defaulting to 79/89 for thresholds which is a bit out of nagios / NRPE's control.
food for thought, you might be able to set your maxwarn / maxcrit to 0, to eliminate the thresholds. (depending on the plugin)
food for thought, you might be able to set your maxwarn / maxcrit to 0, to eliminate the thresholds. (depending on the plugin)
-
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: CheckMem on WindowsServer without warn/crit
More specifically, a link would be great. Thanks for the assist tl101!tacolover101 wrote:what plugin for CheckMem are you using?
Re: CheckMem on WindowsServer without warn/crit
Hello!
On Windows-Systems I am using NSClient++: I (0.5.0.32 2016-03-20) seem to be doing fine...
rg
hansi
On Windows-Systems I am using NSClient++: I (0.5.0.32 2016-03-20) seem to be doing fine...
rg
hansi
-
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: CheckMem on WindowsServer without warn/crit
I'm confused. Are you saying it now works? Did you upgrade NSClient or something?
Did you set it to 0? Another option would be 99 and 100. I assume you were getting notifications on 98, which is why you posted in the first place? Maybe that's not a valid assumption.
Did you set it to 0? Another option would be 99 and 100. I assume you were getting notifications on 98, which is why you posted in the first place? Maybe that's not a valid assumption.
Re: CheckMem on WindowsServer without warn/crit
Hello!
If I set it to = I will get a critical.
so I have to set it to 99 and 100!
rg
Hansi
If I set it to = I will get a critical.
so I have to set it to 99 and 100!
rg
Hansi
-
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: CheckMem on WindowsServer without warn/crit
It sounds like this issue has been resolved. Is it okay if we lock this thread? Thanks for choosing the Nagios forums!