Announcement

Collapse
No announcement yet.

Centreon Poller Central not running + Problem when exporting configuration files

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Centreon Poller Central not running + Problem when exporting configuration files

    Hello everyone !

    I'm working on Centreon with a colleague, and so far we've only set up on a VM + the web interface. We're having trouble with the Central Poller that isn't running. Furthermore, whenever we try to export the configuration files (with the debug option checked) it stops at straight 0% noticing the following issue: sh: -v: unknown command. We've attempted to solve this issue by many ways: modifying the rights of centreon.cfg & ressources.cfg files, modifying the sudoers by adding tons of NOPASSWD lines for the differents services (centengine, centcore, cbd, httpd, centreontrapd) & their different commands (restart, reload, start, stop). Every needed service seems to work (mysql, httpd, centcore, centengine, cbd & centreontrapd).

    Thanks for your help, Paul

  • #2
    for the sudoers you should have:
    cat /etc/sudoers.d/centreon |grep -v "#"
    User_Alias CENTREON=apache,nagios,centreon,centreon-engine,centreon-broker
    Defaults:CENTREON !requiretty
    CENTREON ALL = NOPASSWD: /etc/init.d/snmptrapd restart
    CENTREON ALL = NOPASSWD: /etc/init.d/centreontrapd restart
    CENTREON ALL = NOPASSWD: /etc/init.d/centreontrapd reload
    CENTREON ALL = NOPASSWD: /etc/init.d/centreontrapd stop
    CENTREON ALL = NOPASSWD: /etc/init.d/centreontrapd start
    CENTREON ALL = NOPASSWD: /etc/init.d/centengine restart
    CENTREON ALL = NOPASSWD: /etc/init.d/centengine start
    CENTREON ALL = NOPASSWD: /etc/init.d/centengine stop
    CENTREON ALL = NOPASSWD: /etc/init.d/centengine reload
    CENTREON ALL = NOPASSWD: /usr/sbin/centengine -v *
    CENTREON ALL = NOPASSWD: /etc/init.d/cbd restart
    CENTREON ALL = NOPASSWD: /etc/init.d/cbd reload
    CENTREON ALL = NOPASSWD: /etc/init.d/cbd start
    CENTREON ALL = NOPASSWD: /etc/init.d/cbd stop
    CENTREON ALL = NOPASSWD: /bin/systemctl restart cbd
    CENTREON ALL = NOPASSWD: /bin/systemctl reload cbd
    CENTREON ALL = NOPASSWD: /bin/systemctl start cbd
    CENTREON ALL = NOPASSWD: /bin/systemctl stop cbd
    CENTREON ALL = NOPASSWD: /bin/systemctl restart centengine
    CENTREON ALL = NOPASSWD: /bin/systemctl reload centengine
    CENTREON ALL = NOPASSWD: /bin/systemctl start centengine
    CENTREON ALL = NOPASSWD: /bin/systemctl stop centengine
    ________________________________________
    CentOS 5.5 x64 / Nagios 3.2.2 / Centreon 2.1.10
    Monitoring: 467 Hosts / 2109Services 16th Server
    NdoUtils 1.49,NagiosPlugins 1.4.14, NagVis 1.5.1, Distributed Architeture(howto)

    Nagios/Centreon Custom Scripts / Troubleshooting
    www.felipeferreira.net

    Comment

    Working...
    X