Page 1 of 1
swap usage
Posted: Mon Nov 26, 2012 12:40 pm
by srikanth.kallu
Hi,
I am trying to set alerts for swap usage.
I want alrets if 10 % is utilisaed as warning and 20% utilised as critical.
Now how do i set this ?
1. check_nrpe!check_swap!-a '-w 10 -c 20'
or
2. check_nrpe!check_swap!-a '-w 90 -c 80'
Thanks in advance.
Re: swap usage
Posted: Mon Nov 26, 2012 12:59 pm
by scottwilkerson
check_nrpe!check_swap!-a '-w 90% -c 80%'
Re: swap usage
Posted: Thu Dec 06, 2012 1:07 pm
by srikanth.kallu
i set the alert like this check_nrpe!check_swap!-a '-w 90% -c 80%' (First attachment)
But it still says Ok ( Second attachment )
Please correct me i dont understand my mistake.
bug in checking swwap usage
Posted: Thu Dec 06, 2012 1:47 pm
by srikanth.kallu
Hi,
I think there is a bug in checking swap usage.
I have checked this on two of my servers AIX and LINUX
check_nrpe!check_swap!-a '-w 2 -c 1'
or check_nrpe!check_swap!-a '-w 100 -c 99'
but says status os Ok even if it is
SWAP OK - 81% free (820 MB out of 1023 MB)
Re: swap usage
Posted: Thu Dec 06, 2012 2:09 pm
by lmiltchev
We are looking into this issue as we speak. We will do some testing and get back to you as soon as we determine what is causing it.
Re: swap usage
Posted: Thu Dec 06, 2012 3:42 pm
by sreinhardt
This is not a bug, without adding % after each value, it is actually looking at bytes free not percentage. Please change your command to
Code: Select all
check_nrpe!check_swap!-a '-w 90% -c 80%'
Try it out and let us know. Sorry for the confusion, scottwilkerson had it all correct in the first post.
check_nrpe!check_swap!-a '-w 90% -c 80%'