'Retire' a server

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
DiegoAnjos
Posts: 49
Joined: Thu Feb 14, 2013 9:32 am

'Retire' a server

Post 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!
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: 'Retire' a server

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
DiegoAnjos
Posts: 49
Joined: Thu Feb 14, 2013 9:32 am

Re: 'Retire' a server

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: 'Retire' a server

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
DiegoAnjos
Posts: 49
Joined: Thu Feb 14, 2013 9:32 am

Re: 'Retire' a server

Post 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.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: 'Retire' a server

Post by lmiltchev »

Is disabling all checks on this host and setting them as "UNKNOWN" an acceptable solution to your problem?
Be sure to check out our Knowledgebase for helpful articles and solutions!
DiegoAnjos
Posts: 49
Joined: Thu Feb 14, 2013 9:32 am

Re: 'Retire' a server

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