Ich antworte mal auf Englisch, damit andere auch davon profitieren können ;-)
Yes, It possible. This exactly should be a plus to other Tools. I Use it that way.
You have to change the value of "confroot" in your phpNagios config file (/YOUR_PHPNAGIOS_ROOT/config/conf.php) to the path where your configs are stored.
Hope that answers your question.
regards Gianni
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In nagios you are able to use "cfg_dir=" statement instead of "cfg_file=". In this case you can put all your *.cfg file in a folder or a folder structure and nagios catches all .cfg files in the folder and its subfolder and uses them as config fles. So you can have a cfg file for every host and service if you like.
Ralf
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i need this function also... I think phpNagios has the best prerequisites, through some adjustments for larger environments to be.
our configtree is a little bit confused ;-), because we have a distributed nagios and we must copy our host and service-cfg's include any other cfg-files to the central-Nagios-Server
- cgi.cfg
- nagios.cfg
- objects
- resource.cfg
-objects:
-hosts
-network
...
the read in of this config-files is - i think - not the problem, but the write I think can be a big problem...
If you still could adjust, I would think many Windows-admins would be very happy - at least ours.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hallo,
ist es möglich, config Dirs zu verwenden ?
Damit können wir unsere bestehende Config verwenden.
Ralf
Hi,
Ich antworte mal auf Englisch, damit andere auch davon profitieren können ;-)
Yes, It possible. This exactly should be a plus to other Tools. I Use it that way.
You have to change the value of "confroot" in your phpNagios config file (/YOUR_PHPNAGIOS_ROOT/config/conf.php) to the path where your configs are stored.
Hope that answers your question.
regards Gianni
Hi Gianni,
that is not what i mean.
In nagios you are able to use "cfg_dir=" statement instead of "cfg_file=". In this case you can put all your *.cfg file in a folder or a folder structure and nagios catches all .cfg files in the folder and its subfolder and uses them as config fles. So you can have a cfg file for every host and service if you like.
Ralf
Ah Ok. Actually this config structure is not suported, sorry.
To check ir it is possible to implement this into future releases, i need your configuration structure.
Is it possible to send me a tree view of your configuration structure. You can send it to me by E-Mail (contact at http://www.phpnagios.com\).
as example : this is my devel tree veiw (it's a bit messie :-) )
srv01:config_demo# tree
.
|-- cgi.cfg
|-- checkcommands.cfg
|-- contactgroups.cfg
|-- contacts.cfg
|-- dependencies.cfg
|-- escalations.cfg
|-- hostgroups.cfg
|-- hosts.cfg
|-- htpasswd.users
|-- misccommands.cfg
|-- nagios.cfg
|-- objects
| |-- checkcommands.cfg
| |-- commands.cfg
| |-- contacts.cfg
| |-- hosts.cfg
| |-- localhost.cfg
| |-- printer.cfg
| |-- switch.cfg
| |-- templates.cfg
| |-- timeperiods.cfg
| `-- windows.cfg
|-- resource.cfg
|-- servicegroups.cfg
|-- services.cfg
`-- timeperiods.cfg
1 directory, 25 files
srv01:config_demo#
Hi,
i need this function also... I think phpNagios has the best prerequisites, through some adjustments for larger environments to be.
our configtree is a little bit confused ;-), because we have a distributed nagios and we must copy our host and service-cfg's include any other cfg-files to the central-Nagios-Server
the read in of this config-files is - i think - not the problem, but the write I think can be a big problem...
If you still could adjust, I would think many Windows-admins would be very happy - at least ours.
that was exactly what i answered to "itsme4711".
a solution to write down the data would be to save the Path into the file too. but thats a lot of work.
something is happening here?
Hi
I am working on it. But it seems to be more difficult as thought. But i think its really necessary while Using Nagios 3.x
I will post it here when i done with it.
At the moment i am Working on my diploma thesis, which got a little bit higher priority (another Nagios Tool) :-)
But you're welcome to join the Project.