I got a Nagios up running on a Ubuntu Server Editions, works very well.
Tho, I would like to have 2 folders to read configuration files(.cfg files).
The way it look now, we got all the cfg files in /etc/nagios3/conf.d/. What I want, is two folders there, to save the cfg files. The reason is that we are two companys sharing servereroom, and therfore we would like to share the Nagios, but have one cfg folder each.
I've been trying to make a folders there(/etc/nagios3/conf.d/company1/, tho when I save a config file there, it fails when I restart the nagios service:
Error: Could not add object property in file '/etc/nagios3/conf.d/company1/serverx.cfg' on line 2." (line2=hostname).
When I copy the cfg file to /etc/nagios3/conf.d/, there is no problem.
I've also, in the Nagios config file, done this:
The 1st line was there by default, I've add the second line. As it says in the nagios.cfg(
You can also tell Nagios to process all config files (with a .cfg
extension) in a particular directory by using the cfg_dir
directive as shown below:)
that should work out, shouldn't it?
Anyone done something like this before, and maby can help me out a bit?