Announcement

Collapse
No announcement yet.

Centreon 2.x plugin adoption

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

  • Centreon 2.x plugin adoption

    Hey guys,
    What is the story with plugin adoption to Centreon 2.x? I have some experience writing plugins for centreon so I can contribute on this part, what would be the proper way of submitting the code?

    http://o0o.nu/files/NmapXmlImport.tgz - I made some changes to Nmap Plugin so it works with centreon 2.x now. I'll be publishing other plugins on my site as i get time to work on them.

    UPD: oops... This probably should be posted to "Interface" ;-)
    Last edited by fygrave; 14 April 2009, 04:25. Reason: wrong forum. Should go to "Interface"

  • #2
    can not run nagvis

    dear all,

    can anyone tell how to config Nagvis to run.
    i have followed this link http://www.nagvis.org/docs/1.2/insta...n_instructions

    but still not work i got the following error
    "mapCfgNotWriteable: Can not write map configuration file ""Please check the webservers permissions at the map configuration file "/usr/local/nagios/share/nagvis/etc/maps/demo.cfg""

    please explain me...

    Comment


    • #3
      Hi,

      Thanks for your participation.

      I would like to use your plugin, but, when I use it, I have some problems when I clic on Configuration Nagios Nmap XML Importer :

      tail -f /var/log/httpd/error :

      PHP Notice: Undefined variable: host_id in /usr/local/centreon/www/modules/NmapXmlImport/DB-Func.php on line 33, referer: http://IP/centreon/main.php?p=60720
      PHP Notice: Undefined variable: nmap_version in /usr/local/centreon/www/modules/NmapXmlImport/NmapXmlImport_load.php on line 374, referer: http://IP/centreon/main.php?p=60720
      PHP Notice: Undefined variable: nmap_bad_version in /usr/local/centreon/www/modules/NmapXmlImport/NmapXmlImport_load.php on line 375, referer: http://IP/centreon/main.php?p=60720

      If I test to import XML :

      PHP Notice: Undefined variable: host_id in /usr/local/centreon/www/modules/NmapXmlImport/DB-Func.php on line 33, referer: http://IP/centreon/main.php?p=60720
      PHP Warning: move_uploaded_file(/tmp/filesUpload/192.168.0.0.xml) [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: failed to open stream: No such file or directory in /usr/share/pear/HTML/QuickForm/file.php on line 212, referer: http://IP/centreon/main.php?p=60720
      PHP Warning: move_uploaded_file() [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: Unable to move '/tmp/phptEhiKU' to '/tmp/filesUpload/192.168.0.0.xml' in /usr/share/pear/HTML/QuickForm/file.php on line 212, referer: http://IP/centreon/main.php?p=60720
      PHP Notice: Undefined variable: nmap_version in /usr/local/centreon/www/modules/NmapXmlImport/NmapXmlImport_load.php on line 374, referer: http://IP/centreon/main.php?p=60720
      PHP Notice: Undefined variable: nmap_bad_version in /usr/local/centreon/www/modules/NmapXmlImport/NmapXmlImport_load.php on line 375, referer: http://IP/centreon/main.php?p=60720


      If I create a directory in /tmp/

      [Tue Apr 28 14:35:04 2009] [error] [client 172.20.1.206] PHP Notice: Undefined variable: host_id in /usr/local/centreon/www/modules/NmapXmlImport/DB-Func.php on line 33, referer: http://172.20.1.65/centreon/main.php?p=60720
      [Tue Apr 28 14:35:04 2009] [error] [client 172.20.1.206] PHP Fatal error: Class 'DomDocument' not found in /usr/local/centreon/www/modules/NmapXmlImport/NmapXmlImport_load.php on line 116, referer: http://172.20.1.65/centreon/main.php?p=60720


      Thanks
      CentOS 6.4 64Bits - Centreon 2.4.5 - Centreon Engine 1.3.4 - NDO

      Comment

      Working...
      X