Page 1 of 2

Unconfigured Objects - automation

Posted: Mon Mar 17, 2014 10:08 pm
by sujitt
Hello,

I have a setup nagios xi with passive checks. I need to dynamically be able to configure the unconfigured object by using defaults instead of manually configuring it for the first time. We do not want to miss the first notification received.
today when we receive the nsca inbound mesage the first message is lost because that is used for manually configuring the unconfigured objects.

Is there a way to automate this process by some kind of scripting or hooks?

Re: Unconfigured Objects - automation

Posted: Mon Mar 17, 2014 11:59 pm
by admin
Hi sujitt - We've had the idea of implementing an auto-import/config of unconfigured objects on our drawing board for a while. I think we could try and implement something fairly simple that could work for you.

Would the following scenario work for you?

1. Pre-configure a rule that determines how newly "discovered" unconfigured objects should be monitored (e.g. where notifications should go, what host/servicegroup they should belong to)
2. When Nagios XI first sees a passive check that doesn't correlate with an existing host/service, it creates a new one and reconfigures the monitoring engine
3. The original passive check is re-sent to Nagios XI (once it is reconfigured to handle it) and an alert is/can be sent out

Would that solution work for you?

Re: Unconfigured Objects - automation

Posted: Wed Mar 19, 2014 11:01 am
by sujitt
That would work.

Is this a change or a patch?

Re: Unconfigured Objects - automation

Posted: Wed Mar 19, 2014 4:57 pm
by tmcdonald
We could possibly get a patch out to you, then if we integrate it into Nagios XI it would be a bigger change.

Re: Unconfigured Objects - automation

Posted: Fri Mar 21, 2014 2:28 pm
by sujitt
Thank you!

Re: Unconfigured Objects - automation

Posted: Fri Mar 21, 2014 2:48 pm
by tmcdonald
I'll file a feature request for this. Not being part of the dev team I can't say for sure when this will be looked at, but I will for sure put in the request.

Re: Unconfigured Objects - automation

Posted: Fri Apr 11, 2014 7:52 pm
by sujitt
Is there a way to make nagios not even need a pre setup of services but a just a template with regular expression which will define its notification and all other features? This would be a valuable addition to nagios next version.
I know this would be a basic change to the Nagios core, but would this not make life easier for administration, monitoring and reporting. This will also make things more efficient. some other tools do use this method.

Re: Unconfigured Objects - automation

Posted: Mon Apr 14, 2014 10:29 am
by lmiltchev
Is there a way to make nagios not even need a pre setup of services but a just a template with regular expression which will define its notification and all other features?
Can you elaborate on this?

Re: Unconfigured Objects - automation

Posted: Mon Apr 14, 2014 11:19 am
by sujitt
Here is how My Vision of Setting up Passive Services Or Active
what we today call as service templates can be defined a little diferently.
Instead of hard linking the service template to a service we could link it by service name Regex.
here is an example. This example allow me to monitor a bunch of hosts and
service template : Assume that all hosts were defined earlier.
Name: SQL_DB_Monitoring
Host Name Rule : <Regex> XIL*
Service Rule:<Regex_ex> ENGDB*
Service group: ENGINEERING
contact Group:IT_SERVICES_ENGINEERING
Host group:XYZ
command : check command
Notifications details
Alert details :
others;..

If it was active checks , This check command would execute for all the hosts matching the Hostname regex.
If it was passive checks , any hosts or service rule regex matches would be reported under the name sent by the agents.
I know I have given you a sample and a design, Hope this would stir some conversations/discussions in your teams.

Re: Unconfigured Objects - automation

Posted: Tue Apr 15, 2014 9:07 am
by scottwilkerson
We have an internal development task created for this feature (ID 164). I have added the notes from your last post as I believe this is a logical setup and would be an excellent feature to have.

Thanks for the input!