How to automate the Nagios registration with multi-tenancy?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
patrick.cheung
Posts: 4
Joined: Sun Apr 06, 2014 9:20 pm

How to automate the Nagios registration with multi-tenancy?

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
patrick.cheung
Posts: 4
Joined: Sun Apr 06, 2014 9:20 pm

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

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked