Page 1 of 1

how to bulk load several windows machines to nagios

Posted: Sat Dec 31, 2011 12:55 pm
by leocertuche
Hello there,

Our customer with nagios XI wants to include in nagios all of their desktops, which are nearly a thousand. In order to deploy the nsclient agent on those machines, we're using an OCS Inventory software deployment task and it goes well but we definitely don't want to follow the wizard for adding each machine by hand. Instead we want to do a bulk load of all those devices on the nagios console.

Is there any way to do so? I'm an old nagios user so I know I could edit by hand the cfg files but since our customer payed for a nagios XI suscription, I'm wondering if is there any better way to include them

Thanks in advance for your help

Re: how to bulk load several windows machines to nagios

Posted: Mon Jan 02, 2012 11:06 am
by scottwilkerson
I also just answered this in your support ticket, but will add it here also so others can benefit.

If the Windows desktops are going to be monitoring the same services on each, I would suggest the Bulk Import Wizard.
http://exchange.nagios.org/directory/Ad ... rd/details

Go to
Admin -> Manage Config Wizards -> Select this file -> Upload Wizard

1. Setup 1 machine the way you would like to setup all the others, then, go to:
2. Configure -> Run the Monitoring Wizard -> Bulk Host Import -> Next
3. Select the machine you setup in step 1
4. Check services you want to copy to your new hosts

In the import data section, under CSV Fields, Select address, name
in the CSV Data portion enter the new hosts like the following:
10.1.1.2,desktop 1
10.1.1.3,desktop 2
10.1.1.4,desktop 3
10.1.1.5,desktop 4
10.1.1.6,desktop 5
etc.

Using of course your data...

Re: how to bulk load several windows machines to nagios

Posted: Tue Jan 31, 2012 3:08 pm
by newmeadow
I have recently upgraded from Nagios Core 3 because I was so impressed with the product.

One of my main selling points to my superiors to upgrade was the bulk import, auto discovery and host creation tools.

But I have hit a wall with the tools. The environment I manage has at least 6,000+ devices (not cluding services) to monitor. Here is the issue...

For me its about entering and updating in bulk.

1) The bulk import tool - Even though it states to create a host as a template it does not work. The host does not inherit the propeties as it says it does. No way for me to manually enter and puts me back to Nagios Core scenario if I were to manually do. The hoste NEVER gets associated with a group. I have to have groups to send specifc alerts.

2) tried the Host creation Tool. Here it does create ANY services. Not that I care about a PING service because frankly I cannot tell a diffrence or benefit to have a PING service or just having a host creted. But I do notice when I click on the Host Summary Hosts it does not show ANY host or service ever. The only way I can find the device info is searching by keyword OR show Host GRID but that is very cloogy.

Any update to fix the Bulk import tool? That would be ideal if it would inherit ALL the templates properties as stated it is suppossed to.

Thanks!

Re: how to bulk load several windows machines to nagios

Posted: Tue Jan 31, 2012 4:54 pm
by lmiltchev
Do you have the latest Bulk Host Import Wizard? We used to have an issue with the parent-child relationship, which is now fixed.

I just ran the Bulk Host Import Wizard with a template host, a member of the "Linux Servers" hostgroup. All of the newly created hosts also belong to the "Linux Servers" hostgroup!

Please, download the latest wizard, install it through: Admin->System Extensions->Manage Config Wizards and give it a try.

http://exchange.nagios.org/directory/Ad ... rd/details

Hope this helps.

Re: how to bulk load several windows machines to nagios

Posted: Tue Jan 31, 2012 11:18 pm
by newmeadow
{SOLVED} THANK YOU!

Okay. After Months of trying I did get it but not with some trial and error.

I found a couple of issues just realized.

The grouping does work now with the patch realease 01-12-2012.

But what also was happening upon applying the configuration the timeouts were set too aggressive which caused the applying to fail with no errors. This drove me crazy.

I increased the /etc/php.ini settings as described on your site and PERFECTION!

http://support.nagios.com/wiki/index.ph ... _Completes
----

Apply Configuration Page Stalls Out, Never Completes

If you attempt to Apply Configuration and you're seeing the following output:

* Configuration submitted for processing...
* Waiting for configuration verification..................

and the configuration never applies, the page may be timing out. If you've recently updated XI, try restarting the server first. If you're currently running Nagios XI 2011R1.3 there is a known bug that can cause this issue. You'll need to upgrade to the latest version to resolve the issue. If that does not resolve the issue, try editing the configuration for your PHP settings. Open /etc/php.ini file in a text editor and increase the following values.

Scroll all the way down to the bottom of the script, and remove a line that says:

memory_limit = 64M ; Increase the memory limit <<<REMOVED

Then scroll up to around line 300, and increase the numbers for the following configs.

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 60 <<<SET TO 120 ; Maximum execution time of each script, in seconds
max_input_time = 60 <<<SET TO 120 ; Maximum amount of time each script may spend parsing request data
memory_limit = 256M <<<SET TO 512M ; Maximum amount of memory a script may consume


After this, run:

service httpd restart


Note: If you're running a large installation with several thousand hosts/services, you may need to increase these numbers more to allow enough time and memory for large configuration changes to take effect.

If the issue persists after the above solutions, the issue could be caused by creating a local DNS entry for the Nagios XI server, but failing to add that name entry to the Nagios XI server itself. Example, if you're accessing the XI server from the following url: http://nagiosserver/nagiosxi, you need to verify that the XI server can also resolve that DNS name correctly. The local DNS entry for the XI server needs to be added to the /etc/hosts file.

You can observe similar issues if you run out of disk space.

Re: how to bulk load several windows machines to nagios

Posted: Wed Feb 01, 2012 10:12 am
by Flava
Is this fix available on 2011R1.9? It seems on paid subscriber can download the latest fixes and patches, I am currently trailing the product and would like to show all the products features to management to convince then to purchuse it.

Re: how to bulk load several windows machines to nagios

Posted: Wed Feb 01, 2012 10:35 am
by scottwilkerson
Flava wrote:Is this fix available on 2011R1.9? It seems on paid subscriber can download the latest fixes and patches, I am currently trailing the product and would like to show all the products features to management to convince then to purchuse it.
PM Sent