Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: How to install PNP for Shinken 2.0?

  1. #11
    Junior Member
    Join Date
    Jan 2014
    Posts
    23

    Re: How to install PNP for Shinken 2.0?

    Hi,

    the nagios user is created - at least on Debian - by installing the package for nrpe. It shoudn't matter, in which user context the npcd-daemon runs, as long it can read the perfdata files.

    But the directory for the perfdata files is empty, so there is nothing to read. That's the problem of qdtim and me. Maybe someone can tell us, where the perfdata files are located?

    (My second problem is still, that I cannot reach any web site for PNP. Strange thing.)

    Regards,
    Juergen

  2. #12

    Re: How to install PNP for Shinken 2.0?

    as I am under Ubuntu Trusty,
    my perfdata files are in some sub folder of npcd

    But, even with empty perfdata dump, you should join your pnp pages....

    1. Had you checked the way with "index.php" I've wrote upper ?
    2. Had you created a Virtualhost for your PNP files ?
    >> Or you can just make a Symlink inside the default Apache web folder

  3. #13
    Junior Member
    Join Date
    Jan 2014
    Posts
    23

    Re: How to install PNP for Shinken 2.0?

    my perfdata files are in some sub folder of npcd
    Could you specify the sub folder? And which Shinken config defines, where Shinken should write the perfdata?


    I don't have Apache installed, because I thought, it would be enough to have the built-in web service of Shinken. Maybe I'm wrong here, but I didn't found a doc about that. When it's necessary to use Apache - or another web server - for PNP, then it's necessary too to define virtual hosts, you are right.

    Regards,
    Juergen

  4. #14

    Re: How to install PNP for Shinken 2.0?

    Hi Ja!

    Sorry, the exact folder where all my perfdata dump files are is : usr/local/pnp4nagios/var/perfdata/
    >> there are few folders inside, one per hosts.

    In my case, I need the full web interface of PNP (plus the minor interface intergration into shinken)

    So I had installed Apache the simplest way you can find >> Tasksel LAMP
    (understanding it's a test machine, we don't care about other unused services installed with LAMP)

    After,
    Or you can do a full virtualhost (more time)
    Or just make a Symlink to your "/share" folder of pnp4nagios inside the default apache web folder.

    Then, your PNP would be available at : http://localhost/pnp4nagios
    If you can't find any pages, try to disable apache mod "Rewrite", it caused me a lot of bugs....

  5. #15
    Junior Member
    Join Date
    Mar 2014
    Posts
    15

    Re: How to install PNP for Shinken 2.0?

    Hello Juergen,
    I'll tell you how I installed PNP4Nagios on my Debian 7, steps by steps.
    Code:
    apt-get -y install rrdtool apache2 libapache2-mod-php5 librrds-perl php5-gd
    Then download the archive of PNP4Nagios here : http://downloads.sourceforge.net/pro...-0.6.21.tar.gz

    Code:
    tar xzf pnp4nagios-0.6.21.tar.gz
    cd pnp4nagios-0.6.21
    ./configure --prefix=/opt/pnp4nagios --with-nagios-user=shinken --with-nagios-group=shinken
    make all
    make fullinstall
    rm -f /opt/pnp4nagios/share/install.php
    sed -i "s#/usr/local/nagios/etc/htpasswd.users#/etc/shinken/htpasswd.users#g" /etc/apache2/conf.d/pnp4nagios.conf
    /etc/init.d/apache2 restart
    update-rc.d npcd defaults
    Then you should be able to have graphs here : http://localhost/pnp4nagios
    If you have any errors, don't forget to check apache logs and/or shinken logs.

    Regards.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •