Using CCM I've now got a bunch of xxx.cfg files. It's a pain to create these one at a time via the CCM web interface so I tried to copy some and give them an edit. CCM deleted them after not adding them.
I'm missing something pretty important in this process.
Does CCM take these files and write them to someplace else?
What's a faster way to add 200 more hosts than one at a time via CCM?
Thanks!
CCM and /usr/local/nagios/etc/hosts
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: CCM and /usr/local/nagios/etc/hosts
Yes, as the config files say:
You have to do it in the CCM, or import these follow the importing guidelines. There are a number of ways to add 200 hosts, you can run a wizard against one host, then use the "Bulk Host Cloning Wizard" to clone that host and it's services out to multiple new addresses. You can also click the copy button in the CCM on a host, and it will duplicate it's configuration, then you can re-name it, and change it's address in the CCM.###############################################################################
#
# Host configuration file
#
# Created by: Nagios QL Version 3.0.3
# Date: 2014-05-23 13:54:59
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios QL will overwite all manual settings during the next update
#
###############################################################################
Re: CCM and /usr/local/nagios/etc/hosts
The only bulk wizard I've been able to find is for the XI http://exchange.nagios.org/directory/Ad ... rd/details
Is there one for Nagio Core?
Thanks!
Is there one for Nagio Core?
Thanks!
Re: CCM and /usr/local/nagios/etc/hosts
CCM is Nagios XI, not Nagios Core, so you're in the wrong topic. But that's not my problem.What's a faster way to add 200 more hosts than one at a time via CCM?
My suggestion is to write a script that creates a valid Nagios hosts.cfg file, and then you can dump that into /usr/local/nagios/etc/import on your XI host. The next time your reload config, it will be imported. Details are at http://assets.nagios.com/downloads/nagi ... gement.pdf
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: CCM and /usr/local/nagios/etc/hosts
To be clear, are you using something like the Student Core or Pro Core versions with the CCM?
And are you saying you made the changes by hand (or otherwise modified them) and then did an Apply Config which deleted the files? If so you will want to look into the import doc that eloyd posted.
And are you saying you made the changes by hand (or otherwise modified them) and then did an Apply Config which deleted the files? If so you will want to look into the import doc that eloyd posted.
Former Nagios employee
Re: CCM and /usr/local/nagios/etc/hosts
The topic I see at that top is General Support >> Nagios Core and Core Config Manager came with my install of Nagios Core - so I don't know where I need to be I guess.eloyd wrote:CCM is Nagios XI, not Nagios Core, so you're in the wrong topic. But that's not my problem.What's a faster way to add 200 more hosts than one at a time via CCM?
My suggestion is to write a script that creates a valid Nagios hosts.cfg file, and then you can dump that into /usr/local/nagios/etc/import on your XI host. The next time your reload config, it will be imported. Details are at http://assets.nagios.com/downloads/nagi ... gement.pdf
Re: CCM and /usr/local/nagios/etc/hosts
I forgot that CCM comes with the two intermediate levels, as tmcdonald wrote:
So to further help you, we'd need to know if you're running Student Core, Pro Core, or Nagios XI.To be clear, are you using something like the Student Core or Pro Core versions with the CCM?
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: CCM and /usr/local/nagios/etc/hosts
I'm using Pro Core. Thanks!eloyd wrote:I forgot that CCM comes with the two intermediate levels, as tmcdonald wrote:So to further help you, we'd need to know if you're running Student Core, Pro Core, or Nagios XI.To be clear, are you using something like the Student Core or Pro Core versions with the CCM?
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: CCM and /usr/local/nagios/etc/hosts
Yeah unfortunately there are no real "bulk" tools in the Core VM's, pro or student. You would have to stick to templating, or applying one service across multiple hosts, to get the same sort of effect (with a bit more limitation because any alteration done to said service would effect that service on all hosts it is attached to, which has downsides). Otherwise as was mentioned you can use an importation/static style method.