Menu

Config Dirs

2008-11-04
2013-04-08
  • Ralf Hidding

    Ralf Hidding - 2008-11-04

    Hallo,

    ist es möglich, config Dirs zu verwenden ? 

    Damit können wir unsere bestehende Config verwenden.

    Ralf

     
    • gicara

      gicara - 2008-11-04

      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

       
      • Ralf Hidding

        Ralf Hidding - 2008-11-19

        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

         
    • gicara

      gicara - 2008-11-19

      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#

       
    • iXware

      iXware - 2008-12-17

      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

      - 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.

       
      • gicara

        gicara - 2008-12-17

        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.

         
    • iXware

      iXware - 2009-04-30

      something is happening here?

       
      • gicara

        gicara - 2009-05-01

        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.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.