Icinga2 + PNP for graphing

(Chris Schroeder) #1

I’m new to Icinga and I’ve muddled my way through to get an installation of Icinga2 up and running… Can monitor hosts fine but business wants the graphs, and I did some research and PNP graphs seemed to be the way to go. I followed all the instructions for installation and got the pnp module installed AND enabled. It shows up in the left hand column. But when I click on it, I get the following screenshot:

Here are some of my permissions on my centos 7 system:

In /etc

drwxr-x—. 7 root icinga 203 Feb 16 08:32 icinga2
drwxrwsrwx. 5 root icingaweb2 186 Feb 23 06:03 icingaweb2

[root@dllstxdc-sv007-icinga etc]# cd icingaweb2
[root@dllstxdc-sv007-icinga icingaweb2]# ls -al
total 36
drwxrwsrwx. 5 root icingaweb2 186 Feb 23 06:03 .
drwxr-xr-x. 89 root root 8192 Feb 27 10:19 …
-rw-rw----. 1 apache icingaweb2 154 Feb 21 10:19 announcements.ini
-rw-rw----. 1 apache icingaweb2 54 Feb 15 10:25 authentication.ini
-rw-rw----. 1 apache icingaweb2 275 Feb 21 10:15 config.ini
drwxrws—. 3 apache icingaweb2 41 Feb 23 06:03 dashboards
drwxr-s—. 2 apache icingaweb2 62 Feb 26 12:37 enabledModules
-rw-rw----. 1 apache icingaweb2 54 Feb 15 10:25 groups.ini
drwxrws—. 7 root icingaweb2 83 Feb 27 09:37 modules
-rw-rw----. 1 apache icingaweb2 523 Feb 21 15:06 resources.ini
-rw-rw----. 1 apache icingaweb2 963 Feb 21 09:52 roles.ini

… anybody have any idea what I’m missing here? I’m just trying to get the graphs to activate for visual representation of uptime/downtime/latency, etc.

(Michael Friedrich) #2

Your topic seems incomplete. Mind updating it and adding your question?

(Chris Schroeder) #3

I was still editing it when you saw it first. All updated now :slight_smile:

(Chris Schroeder) #4

I THINK it is using the following as a web root directory…

[root@dllstxdc-sv007-icinga icingaweb2]# pwd
/usr/share/icingaweb2
[root@dllstxdc-sv007-icinga icingaweb2]# ls -al
total 8
drwxr-xr-x. 7 root icingaweb2 80 Feb 14 11:07 .
drwxr-xr-x. 103 root root 4096 Feb 26 09:59 …
drwxrwxrwx. 9 root icingaweb2 127 Feb 14 11:07 application
drwxrwxrwx. 4 root icingaweb2 4096 Feb 14 11:07 doc
drwxrwxrwx. 3 root icingaweb2 20 Feb 14 11:07 library
drwxrwxrwx. 8 root icingaweb2 139 Feb 26 09:59 modules
drwxrwxrwx. 6 root icingaweb2 125 Feb 14 11:07 public
[root@dllstxdc-sv007-icinga icingaweb2]#

…but the pnp directory is under modules directory…

[root@dllstxdc-sv007-icinga /]# find -name pnp
./sys/bus/pnp
./etc/icingaweb2/modules/pnp
./etc/icingaweb2/enabledModules/pnp
./usr/share/icingaweb2/modules/pnp

…not under the /icingaweb2/pnp/ path… sigh Help? :slight_smile:

(Chris Schroeder) #5

…and this is the tail end of my access log … when I’m hitting the PHP icon on the left and it’s prompting for an auth box. And sorry, in order to post this log I had to change all occurrences of http to httx because it thinks I was trying to post multiple links in a message. So when you see httx, just think http, because that’s what it was originally.

tail access_log

127.0.0.1 - - [27/Feb/2018:13:29:12 -0600] “GET /icingaweb2 httx/1.0” 301 253 “-” "check_httx/v2.2.1 (nagios-plugins 2.2.1)"
192.168.3.1 - administrator [27/Feb/2018:13:29:12 -0600] “GET /pnp4nagios/graph?host=.pnp-internal&srv=runtime httx/1.1” 401 381 “httx://dllstxdc-sv007-icinga.inetlte.net/icingaweb2/director/config/files?checksum=ce3b83093b9fef9edf98a214ed08a63cbcd727fb” "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36"
192.168.3.1 - - [27/Feb/2018:13:29:26 -0600] “GET /icingaweb2/layout/menu?url=%2Ficingaweb2%2Fpnp httx/1.1” 200 6574 “httx://dllstxdc-sv007-icinga.inetlte.net/icingaweb2/pnp” "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36"
192.168.3.1 - root [27/Feb/2018:13:29:28 -0600] “GET /pnp4nagios/graph?host=.pnp-internal&srv=runtime httx/1.1” 401 381 “httx://dllstxdc-sv007-icinga.inetlte.net/icingaweb2/director/config/files?checksum=ce3b83093b9fef9edf98a214ed08a63cbcd727fb” "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36"
192.168.3.1 - - [27/Feb/2018:13:29:42 -0600] “GET /icingaweb2/layout/menu?url=%2Ficingaweb2%2Fpnp httx/1.1” 200 6574 “httx://dllstxdc-sv007-icinga.inetlte.net/icingaweb2/pnp” "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36"
192.168.3.1 - - [27/Feb/2018:13:29:44 -0600] “GET /icingaweb2/application-state httx/1.1” 200 - “httx://dllstxdc-sv007-icinga.inetlte.net/icingaweb2/pnp” "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36"
192.168.3.1 - - [27/Feb/2018:13:29:44 -0600] “GET /icingaweb2/layout/announcements httx/1.1” 200 34 “httx://dllstxdc-sv007-icinga.inetlte.net/icingaweb2/pnp” "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36"
192.168.3.1 - - [27/Feb/2018:13:29:57 -0600] “GET /icingaweb2/layout/menu?url=%2Ficingaweb2%2Fpnp httx/1.1” 200 6574 “httx://dllstxdc-sv007-icinga.inetlte.net/icingaweb2/pnp” "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36"
127.0.0.1 - - [27/Feb/2018:13:30:12 -0600] “GET /httx://dllstxdc-sv007-icinga.inetlte.net httx/1.0” 404 238 “-” "check_httx/v2.2.1 (nagios-plugins 2.2.1)"
127.0.0.1 - - [27/Feb/2018:13:30:12 -0600] “GET /icingaweb2 httx/1.0” 301 253 “-” “check_httx/v2.2.1 (nagios-plugins 2.2.1)”
[root@dllstxdc-sv007-icinga httxd]#

(Michael Friedrich) #6

Is /pnp4nagios accessible from your Icinga Web 2 host?