PNP graph does not appear in status/detail view

This forum was archived to /woltlab and is now in read-only mode. Please register a new account on our new community platform.

You can create a thread on the new site and link to an archived thread. This archive is available as knowledge base, safe and secured.

More details here.
  • Hello, I've been working with Icinga2 and pnp4nagios for about a week now and I have it mostly working... based on screenshots that appear in the documentation, it seems like PNP should display a graph on the status/detail view but when I click it there's nothing there.

    The PNP tab in the Icinga2 GUI seems to work:

    But nothing appears under any service/host that is outputting performance data:

    The only documentation I can find that seems to directly reference this feature is here:

    But it seems to be talking about Nagios, as I can't find any /usr/local/nagios/share/ssi/ (or similar) folder.

    When I installed pnp4nagios originally this was the process I used:

    wget…le-pnp/archive/ -P /tmp/

    unzip /tmp/ -d /usr/share/icingaweb2/modules

    mv /usr/share/icingaweb2/modules/icingaweb2-module-pnp-1.1.0 /usr/share/icingaweb2/modules/pnp

    wget -P /tmp/

    unzip /tmp/ -d /tmp/master/

    cd /tmp/master/pnp4nagios-master


    make all -C /tmp/master/pnp4nagios-master

    make fullinstall -C /tmp/master/pnp4nagios-master

    make install-init -C /tmp/master/pnp4nagios-master

    The configurations for the above seem ok:

    #This file needs to be moved to the conf-enabled folder in order to allow access to /pnp4nagios

    cp /etc/httpd/conf.d/pnp4nagios.conf /etc/apache2/conf-enabled/

    #Configurations done to make pnp web accessible, mostly just removing the authentication piece and adding "require all granted"

    sed -i 's/Order\sallow\,deny/#Order allow,deny/' /etc/apache2/conf-enabled/pnp4nagios.conf

    sed -i 's/Allow\sfrom\sall/#Allow from all/' /etc/apache2/conf-enabled/pnp4nagios.conf

    sed -i 's/AuthName/#AuthName/' /etc/apache2/conf-enabled/pnp4nagios.conf

    sed -i 's/AuthType/#AuthType/' /etc/apache2/conf-enabled/pnp4nagios.conf

    sed -i 's/AuthUserFile/#AuthUserFile/' /etc/apache2/conf-enabled/pnp4nagios.conf

    sed -i 's/Require\svalid\-user/#Require valid-user/' /etc/apache2/conf-enabled/pnp4nagios.conf

    sed -i 's/\#\sUse\sthe\ssame\svalue\sas\sdefined\sin\snagios\.conf/Require all granted/' /etc/apache2/conf-enabled/pnp4nagios.conf

    service apache2 restart

    #Removing the install.php so PNP will run. All checks pass green.

    rm -rf /usr/local/pnp4nagios/share/install.php

    #Configure perfdata directory per PNP documentation here:

    sed -i 's/\/usr\/local\/pnp4nagios\/var\/spool/\/var\/spool\/icinga2\/perfdata/' /usr/local/pnp4nagios/etc/npcd.cfg

    icinga2 feature enable perfdata
    service npcd start

    service icinga2 restart

    Any idea what I'm missing or where I can look to figure this out?

  • Hi dnsmichi, I'm not 100% sure what you're asking but if I go directly to /pnp4nagios I see this. It seems to have auto selected a host for display:

  • I think I figured it out based on your question... I saw the configuration location here:

    From the web UI config:…dex.php?attachment/10289/

    But /etc/pnp4nagios is actually empty... I went through the files and found /usr/local/pnp4nagios/etc which seems to have some kind of configuration files:

    Not sure how I would have figured this out from the documentation... I do see the graphs now, though they're duplicated. This is covered here though and I was able to fix it: