Page 1 of 1

'Retire' a server

Posted: Mon Aug 05, 2013 1:03 pm
by DiegoAnjos
Hi!

I would like to know if is it possible to 'retire' a server.

What I want is to put a server as 'inactive' or something like that, so it will no longer be monitored but I can check for its history whenever I need to.

Thanks!

Re: 'Retire' a server

Posted: Mon Aug 05, 2013 1:30 pm
by lmiltchev
You can click on the host, then under the "Host Commands", click on "Disable checks of all services on this host"->"Disable For Host Too"->Commit.

Re: 'Retire' a server

Posted: Mon Aug 05, 2013 1:55 pm
by DiegoAnjos
I have done that, but some services still are being shown as "OK" altought the server is turned off.

Current Load (OK)
Current Users (OK)
HTTP (CRITICAL)
PING (CRITICAL)
Root Partition (OK)
SSH (CRITICAL)
Swap Usage (OK)
Total Processes (OK)

Besides that I dont want that this "Critical" states to be counting on Tatical Overview.

Any thoughts?

Re: 'Retire' a server

Posted: Mon Aug 05, 2013 2:39 pm
by scottwilkerson
They will be OK if you disabled the checks before they went down.

There is no way to have it accessible in the UI but not count and not show up as part of the system.

You could force a check to OK by submitting a passive check to the items that are CRITICAL

Re: 'Retire' a server

Posted: Mon Aug 05, 2013 3:40 pm
by DiegoAnjos
scottwilkerson,

I did not disabled the checks before turning off the server. Some stucked as OK and never changed.

I did as you advised (submited passive checks) but I put them as UNKNOWN, so it will not mix with real OK and CRITICAL statuses.

Re: 'Retire' a server

Posted: Mon Aug 05, 2013 3:53 pm
by lmiltchev
Is disabling all checks on this host and setting them as "UNKNOWN" an acceptable solution to your problem?

Re: 'Retire' a server

Posted: Mon Aug 05, 2013 4:08 pm
by DiegoAnjos
Yes, as Nagios does not have any other feature to put a server as disabled, I think that this solution is satisfatory.

Thanks for the help!