File README.SUSE of Package icingaweb2-module-pnp

Some things must be change in pnp4nagios config under /etc/pnp4nagios


In config.php you should comment out:
-------------------------------------
- $views[] = array('title' => '4 Hours',   'start' => (60*60*4) ); 
- $views[] = array('title' => '25 Hours',  'start' => (60*60*25) ); 
- $views[] = array('title' => 'One Week',  'start' => (60*60*25*7) ); 
- $views[] = array('title' => 'One Month', 'start' => (60*60*24*32) ); 
- $views[] = array('title' => 'One Year',  'start' => (60*60*24*380) );


In npcd.cfg you should change:
------------------------------
a) change user and group:
 user = nagios
 group = nagioscmd

   to

 user = icinga
 group = icingacmd

b) change:
 perfdata_spool_dir = /var/spool/pnp4nagios

   to

 perfdata_spool_dir = /var/spool/icinga2/perfdata


In pnp4nagios.cfg:
------------------
a) Comment out: 
 command_line    $USER1$/process_perfdata.pl --bulk=/var/spool/pnp4nagios/service-perfdata
 command_line    $USER1$/process_perfdata.pl --bulk=/var/spool/pnp4nagios/host-perfdata

 b) Insert: 
 command_line /bin/mv /var/spool/icinga2/tmp/service-perfdata /var/spool/icinga2/perfdata/service-perfdata.$TIMET$
 command_line /bin/mv /var/spool/icinga2/tmp/host-perfdata /var/spool/icinga2/perfdata/host-perfdata.$TIMET$

 
Then start npcd with:
---------------------
- systemctl enable npcd
- systemctl start npcd