Page 9 of 9
Re: Reports section on side bar
Posted: Wed Dec 09, 2015 10:16 am
by sinkak
Code: Select all
ubuntu@nagios:~$ ls -l /usr/local/nagios/sbin/
total 5140
-rwxrwxr-x 1 nagios nagios 320616 Aug 3 16:29 archivejson.cgi
-rwxrwxr-x 1 nagios nagios 301920 Aug 3 16:29 avail.cgi
-rwxrwxr-x 1 nagios nagios 300336 Aug 3 16:29 cmd.cgi
-rwxrwxr-x 1 nagios nagios 273176 Aug 3 16:29 config.cgi
-rwxrwxr-x 1 nagios nagios 314176 Aug 3 16:29 extinfo.cgi
-rwxrwxr-x 1 nagios nagios 265168 Aug 3 16:29 histogram.cgi
-rwxrwxr-x 1 nagios nagios 244552 Aug 3 16:29 history.cgi
-rwxrwxr-x 1 nagios nagios 244536 Aug 3 16:29 notifications.cgi
-rwxrwxr-x 1 nagios nagios 318312 Aug 3 16:29 objectjson.cgi
-rwxrwxr-x 1 nagios nagios 236304 Aug 3 16:29 outages.cgi
-rwxrwxr-x 1 nagios nagios 240416 Aug 3 16:29 showlog.cgi
-rwxrwxr-x 1 nagios nagios 314200 Aug 3 16:29 status.cgi
-rwxrwxr-x 1 nagios nagios 316456 Aug 3 16:29 statusjson.cgi
-rwxrwxr-x 1 nagios nagios 261136 Aug 3 16:29 statusmap.cgi
-rwxrwxr-x 1 nagios nagios 256864 Aug 3 16:29 statuswml.cgi
-rwxrwxr-x 1 nagios nagios 240448 Aug 3 16:29 statuswrl.cgi
-rwxrwxr-x 1 nagios nagios 265064 Aug 3 16:29 summary.cgi
-rwxrwxr-x 1 nagios nagios 252776 Aug 3 16:29 tac.cgi
-rwxrwxr-x 1 nagios nagios 269272 Aug 3 16:29 trends.cgi
Re: Reports section on side bar
Posted: Wed Dec 09, 2015 6:15 pm
by rkennedy
Can you post the input of this -
Also this, again for our reference -
Re: Reports section on side bar
Posted: Tue Dec 15, 2015 10:57 am
by sinkak
Code: Select all
ubuntu@nagios:~$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 1
On-line CPU(s) list: 0
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 62
Stepping: 4
CPU MHz: 2494.006
BogoMIPS: 4988.01
Hypervisor vendor: Xen
Virtualization type: full
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 25600K
NUMA node0 CPU(s): 0
Code: Select all
ubuntu@nagios:~$ top|head -5
top - 15:56:29 up 5 days, 23:10, 1 user, load average: 0.04, 0.03, 0.05
Tasks: 141 total, 1 running, 140 sleeping, 0 stopped, 0 zombie
%Cpu(s): 1.4 us, 1.1 sy, 0.0 ni, 97.1 id, 0.3 wa, 0.0 hi, 0.0 si, 0.2 st
KiB Mem: 2048484 total, 1927560 used, 120924 free, 244872 buffers
KiB Swap: 2097148 total, 52844 used, 2044304 free. 1510772 cached Mem
ubuntu@nagios:~$
Re: Reports section on side bar
Posted: Tue Dec 15, 2015 12:18 pm
by rkennedy
I really think this is related to your web server. Can you post the result of the following command?
Code: Select all
apt-cache policy libapache2-mod-perl2
Re: Reports section on side bar
Posted: Tue Dec 15, 2015 12:48 pm
by sinkak
Code: Select all
ubuntu@nagios:~$ apt-cache policy libapache2-mod-perl2
libapache2-mod-perl2:
Installed: (none)
Candidate: 2.0.8+httpd24-r1449661-6ubuntu2
Version table:
2.0.8+httpd24-r1449661-6ubuntu2 0
500 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
ubuntu@nagios:~$
Re: Reports section on side bar
Posted: Tue Dec 15, 2015 2:14 pm
by rkennedy
Can you try running this command and post the output? -
Code: Select all
apt-get install libapache2-mod-perl2
After that, try restarting your nagios / apache2 service and let us know if that works.
Re: Reports section on side bar
Posted: Tue Dec 15, 2015 3:03 pm
by sinkak
Code: Select all
ubuntu@nagios:~$ sudo apt-get install libapache2-mod-perl2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libapache2-reload-perl libauthen-sasl-perl libbsd-resource-perl
libdevel-symdump-perl libencode-locale-perl libfile-listing-perl
libfont-afm-perl libhtml-form-perl libhtml-format-perl libhtml-parser-perl
libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl
libhttp-daemon-perl libhttp-date-perl libhttp-message-perl
libhttp-negotiate-perl libio-html-perl liblwp-mediatypes-perl
liblwp-protocol-https-perl libmailtools-perl libnet-http-perl
libnet-smtp-ssl-perl liburi-perl libwww-perl libwww-robotrules-perl
Suggested packages:
libdigest-hmac-perl libgssapi-perl libdata-dump-perl libcrypt-ssleay-perl
libauthen-ntlm-perl
The following NEW packages will be installed:
libapache2-mod-perl2 libapache2-reload-perl libauthen-sasl-perl
libbsd-resource-perl libdevel-symdump-perl libencode-locale-perl
libfile-listing-perl libfont-afm-perl libhtml-form-perl libhtml-format-perl
libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl
libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl
libhttp-message-perl libhttp-negotiate-perl libio-html-perl
liblwp-mediatypes-perl liblwp-protocol-https-perl libmailtools-perl
libnet-http-perl libnet-smtp-ssl-perl liburi-perl libwww-perl
libwww-robotrules-perl
0 upgraded, 27 newly installed, 0 to remove and 176 not upgraded.
Need to get 2,140 kB of archives.
After this operation, 6,865 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main libdevel-symdu
mp-perl all 2.11-2 [13.4 kB]
Get:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main liburi-perl al
l 1.60-1 [89.6 kB]
Get:3 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main libencode-loca
le-perl all 1.03-1 [12.4 kB]
Get:4 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main libhttp-date-p
erl all 6.02-1 [10.4 kB]
Get:5 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main libfile-listin
g-perl all 6.04-1 [9,774 B]
Get:6 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main libhtml-tagset
-perl all 3.20-2 [13.5 kB]
Get:7 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main libhtml-parser
-perl amd64 3.71-1build1 [98.2 kB]
Get:8 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main libhtml-tree-p
erl all 5.03-1 [215 kB]
Get:9 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main libio-html-per
l all 1.00-1 [15.7 kB]
Get:10 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main liblwp-mediat
ypes-perl all 6.02-1 [21.7 kB]
Get:11 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main libhttp-messa
ge-perl all 6.06-1 [78.7 kB]
Get:12 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main libhttp-cooki
es-perl all 6.00-2 [23.3 kB]
Get:13 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main libhttp-negot
iate-perl all 6.00-2 [13.4 kB]
Get:14 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main libnet-http-p
erl all 6.06-1 [24.2 kB]
Get:15 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty-updates/main liblw
p-protocol-https-perl all 6.04-2ubuntu0.1 [7,644 B]
Get:16 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main libwww-robotr
ules-perl all 6.01-1 [14.1 kB]
Get:17 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main libwww-perl a
ll 6.05-2 [146 kB]
Get:18 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main libapache2-mo
d-perl2 amd64 2.0.8+httpd24-r1449661-6ubuntu2 [1,041 kB]
Get:19 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main libapache2-re
load-perl all 0.12-2 [17.3 kB]
Get:20 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main libfont-afm-p
erl all 1.20-1 [14.3 kB]
Get:21 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main libhtml-form-
perl all 6.03-1 [23.5 kB]
Get:22 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main libhtml-forma
t-perl all 2.11-1 [44.7 kB]
Get:23 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main libhttp-daemo
n-perl all 6.01-1 [17.0 kB]
Get:24 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main libnet-smtp-s
sl-perl all 1.01-3 [5,948 B]
Get:25 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main libmailtools-
perl all 2.12-1 [84.1 kB]
Get:26 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main libauthen-sas
l-perl all 2.1500-1 [53.2 kB]
Get:27 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main libbsd-resour
ce-perl amd64 1.2907-1build1 [31.8 kB]
Fetched 2,140 kB in 0s (13.5 MB/s)
Selecting previously unselected package libdevel-symdump-perl.
(Reading database ... 65747 files and directories currently installed.)
Preparing to unpack .../libdevel-symdump-perl_2.11-2_all.deb ...
Unpacking libdevel-symdump-perl (2.11-2) ...
Selecting previously unselected package liburi-perl.
Preparing to unpack .../liburi-perl_1.60-1_all.deb ...
Unpacking liburi-perl (1.60-1) ...
Selecting previously unselected package libencode-locale-perl.
Preparing to unpack .../libencode-locale-perl_1.03-1_all.deb ...
Unpacking libencode-locale-perl (1.03-1) ...
Selecting previously unselected package libhttp-date-perl.
Preparing to unpack .../libhttp-date-perl_6.02-1_all.deb ...
Unpacking libhttp-date-perl (6.02-1) ...
Selecting previously unselected package libfile-listing-perl.
Preparing to unpack .../libfile-listing-perl_6.04-1_all.deb ...
Unpacking libfile-listing-perl (6.04-1) ...
Selecting previously unselected package libhtml-tagset-perl.
Preparing to unpack .../libhtml-tagset-perl_3.20-2_all.deb ...
Unpacking libhtml-tagset-perl (3.20-2) ...
Selecting previously unselected package libhtml-parser-perl.
Preparing to unpack .../libhtml-parser-perl_3.71-1build1_amd64.deb ...
Unpacking libhtml-parser-perl (3.71-1build1) ...
Selecting previously unselected package libhtml-tree-perl.
Preparing to unpack .../libhtml-tree-perl_5.03-1_all.deb ...
Unpacking libhtml-tree-perl (5.03-1) ...
Selecting previously unselected package libio-html-perl.
Preparing to unpack .../libio-html-perl_1.00-1_all.deb ...
Unpacking libio-html-perl (1.00-1) ...
Selecting previously unselected package liblwp-mediatypes-perl.
Preparing to unpack .../liblwp-mediatypes-perl_6.02-1_all.deb ...
Unpacking liblwp-mediatypes-perl (6.02-1) ...
Selecting previously unselected package libhttp-message-perl.
Preparing to unpack .../libhttp-message-perl_6.06-1_all.deb ...
Unpacking libhttp-message-perl (6.06-1) ...
Selecting previously unselected package libhttp-cookies-perl.
Preparing to unpack .../libhttp-cookies-perl_6.00-2_all.deb ...
Unpacking libhttp-cookies-perl (6.00-2) ...
Selecting previously unselected package libhttp-negotiate-perl.
Preparing to unpack .../libhttp-negotiate-perl_6.00-2_all.deb ...
Unpacking libhttp-negotiate-perl (6.00-2) ...
Selecting previously unselected package libnet-http-perl.
Preparing to unpack .../libnet-http-perl_6.06-1_all.deb ...
Unpacking libnet-http-perl (6.06-1) ...
Selecting previously unselected package liblwp-protocol-https-perl.
Preparing to unpack .../liblwp-protocol-https-perl_6.04-2ubuntu0.1_all.deb ...
Unpacking liblwp-protocol-https-perl (6.04-2ubuntu0.1) ...
Selecting previously unselected package libwww-robotrules-perl.
Preparing to unpack .../libwww-robotrules-perl_6.01-1_all.deb ...
Unpacking libwww-robotrules-perl (6.01-1) ...
Selecting previously unselected package libwww-perl.
Preparing to unpack .../libwww-perl_6.05-2_all.deb ...
Unpacking libwww-perl (6.05-2) ...
Selecting previously unselected package libapache2-mod-perl2.
Preparing to unpack .../libapache2-mod-perl2_2.0.8+httpd24-r1449661-6ubuntu2_amd 64.deb ...
Unpacking libapache2-mod-perl2 (2.0.8+httpd24-r1449661-6ubuntu2) ...
Selecting previously unselected package libapache2-reload-perl.
Preparing to unpack .../libapache2-reload-perl_0.12-2_all.deb ...
Unpacking libapache2-reload-perl (0.12-2) ...
Selecting previously unselected package libfont-afm-perl.
Preparing to unpack .../libfont-afm-perl_1.20-1_all.deb ...
Unpacking libfont-afm-perl (1.20-1) ...
Selecting previously unselected package libhtml-form-perl.
Preparing to unpack .../libhtml-form-perl_6.03-1_all.deb ...
Unpacking libhtml-form-perl (6.03-1) ...
Selecting previously unselected package libhtml-format-perl.
Preparing to unpack .../libhtml-format-perl_2.11-1_all.deb ...
Unpacking libhtml-format-perl (2.11-1) ...
Selecting previously unselected package libhttp-daemon-perl.
Preparing to unpack .../libhttp-daemon-perl_6.01-1_all.deb ...
Unpacking libhttp-daemon-perl (6.01-1) ...
Selecting previously unselected package libnet-smtp-ssl-perl.
Preparing to unpack .../libnet-smtp-ssl-perl_1.01-3_all.deb ...
Unpacking libnet-smtp-ssl-perl (1.01-3) ...
Selecting previously unselected package libmailtools-perl.
Preparing to unpack .../libmailtools-perl_2.12-1_all.deb ...
Unpacking libmailtools-perl (2.12-1) ...
Selecting previously unselected package libauthen-sasl-perl.
Preparing to unpack .../libauthen-sasl-perl_2.1500-1_all.deb ...
Unpacking libauthen-sasl-perl (2.1500-1) ...
Selecting previously unselected package libbsd-resource-perl.
Preparing to unpack .../libbsd-resource-perl_1.2907-1build1_amd64.deb ...
Unpacking libbsd-resource-perl (1.2907-1build1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up libdevel-symdump-perl (2.11-2) ...
Setting up liburi-perl (1.60-1) ...
Setting up libencode-locale-perl (1.03-1) ...
Setting up libhttp-date-perl (6.02-1) ...
Setting up libfile-listing-perl (6.04-1) ...
Setting up libhtml-tagset-perl (3.20-2) ...
Setting up libhtml-parser-perl (3.71-1build1) ...
Setting up libhtml-tree-perl (5.03-1) ...
Setting up libio-html-perl (1.00-1) ...
Setting up liblwp-mediatypes-perl (6.02-1) ...
Setting up libhttp-message-perl (6.06-1) ...
Setting up libhttp-cookies-perl (6.00-2) ...
Setting up libhttp-negotiate-perl (6.00-2) ...
Setting up libnet-http-perl (6.06-1) ...
Setting up libwww-robotrules-perl (6.01-1) ...
Setting up libfont-afm-perl (1.20-1) ...
Setting up libhtml-form-perl (6.03-1) ...
Setting up libhtml-format-perl (2.11-1) ...
Setting up libhttp-daemon-perl (6.01-1) ...
Setting up libnet-smtp-ssl-perl (1.01-3) ...
Setting up libmailtools-perl (2.12-1) ...
Setting up libauthen-sasl-perl (2.1500-1) ...
Setting up libbsd-resource-perl (1.2907-1build1) ...
Setting up liblwp-protocol-https-perl (6.04-2ubuntu0.1) ...
Setting up libwww-perl (6.05-2) ...
Setting up libapache2-mod-perl2 (2.0.8+httpd24-r1449661-6ubuntu2) ...
apache2_invoke: Enable module perl
* Restarting web server apache2 [ OK ]
Setting up libapache2-reload-perl (0.12-2) ...
ubuntu@nagios:~$
Code: Select all
sudo service apache2 restart
sudo service nagios reload
sudo service nagios restart
nagios is working fine.
But reports section still not working.
Re: Reports section on side bar
Posted: Wed Dec 16, 2015 1:32 pm
by hsmith
What's the output of a tail -n200 /var/log/messages command?