Page 1 of 1

How to automate the Nagios registration with multi-tenancy?

Posted: Sun Apr 06, 2014 9:41 pm
by patrick.cheung
Hello all,

We are considering to use Nagios XI for monitoring the VM instances in our private IaaS environment. As the IaaS environment is tenant based, we would like to know how we can automate the workflow including the host and user registration in Nagios XI.

The expected workflow can be described as below:
-cloud admin creates a customer (most likely a business unit) account in our cloud portal
-it will trigger a list of account creation and initialization
-For Nagios XI, it may include host group, user group, and a few user accounts like project admins and project users
-the customer uses the cloud portal provision new instances
-it will trigger Nagios to add the new servers to the proper host group
-ON Nagios XI server, project admin/operators can monitor its own servers and do the customization

Any hints how this works on Nagios XI? Thanks very much!

-Patrick

Re: How to automate the Nagios registration with multi-tenan

Posted: Mon Apr 07, 2014 4:50 pm
by abrist
There are a few different ways to add checks dynamically to XI:
1) Create the configs with automated scripts to write out the configs to the static directory (most common way)
2) Write sql code to insert the new checks in the db (not for the faint of heart due to the highly relational nature of the db)
3) Submit passive checks, and then configure their objects from unconfigured objects (not fully automate-able)

Adding XI users is not current automate-able, although contacts are with the same methods above.

Re: How to automate the Nagios registration with multi-tenan

Posted: Wed Apr 09, 2014 10:52 pm
by patrick.cheung
abrist wrote:There are a few different ways to add checks dynamically to XI:
1) Create the configs with automated scripts to write out the configs to the static directory (most common way)
2) Write sql code to insert the new checks in the db (not for the faint of heart due to the highly relational nature of the db)
3) Submit passive checks, and then configure their objects from unconfigured objects (not fully automate-able)

Adding XI users is not current automate-able, although contacts are with the same methods above.
Thanks abrist. Looks very helpful tho I am still headache how to streamline or automate it

Re: How to automate the Nagios registration with multi-tenan

Posted: Thu Apr 10, 2014 10:56 am
by abrist
patrick.cheung wrote:Thanks abrist. Looks very helpful tho I am still headache how to streamline or automate it
I would look at option "1" first, as long as you don't need to manage the configs from the CCM.