Page 1 of 1

NagiosXI - MineMap is not working

Posted: Tue Feb 12, 2019 6:06 am
by Pselvin
MineMap is not working for the entire hostgroup on NagiosXI 5.5.0. This was working on Nagios 5.4.13. Could you please advise?

We have migrated NagiosXI (5.4.13) from CENTOS to RHEL7 and the Migration was successful, all the components were UP including MineMap. We have upgraded XI to 5.5.0 and then the MineMap is not coming up for entire hostgroup but, we are able to see the MineMap for Specific host groups.

I appreciate your assistance.

Re: NagiosXI - MineMap is not working

Posted: Tue Feb 12, 2019 11:45 am
by lmiltchev
Is there a reason why you upgraded to Nagios XI 5.5.0 instead of upgrading to the latest? You are 10 versions behind... There are numerous bugs that were fixed in the newer releases. I would recommend that you upgrade to the latest version of Nagios XI.
We have upgraded XI to 5.5.0 and then the MineMap is not coming up for entire hostgroup but, we are able to see the MineMap for Specific host groups.
What exactly do you see when you try to open the Minemap - incomplete list of hosts, a blank page, etc. Can you show us a screenshot of the issue? Are you having the same issue in different browsers, e.g. Firefox, Chrome, etc.?

How many hosts/services are you monitoring? What is the version of the Minemap component that you are currently using?

Admin > System Extensions > Manage Components

Run the following commands and show the output in code wraps:

Code: Select all

uptime
grep 'max_execution_time\|max_input_time\|max_input_vars\|memory_limit' /etc/php.ini | grep -v ';'
tail -100 /var/log/httpd/error_log

Re: NagiosXI - MineMap is not working

Posted: Thu Feb 14, 2019 10:04 am
by Pselvin
Hi There,

Thanks for your response. We will upgrade the Nagios to the latest version during our maintenance window.

When i click the MineMap, it is keep spinning (Please see the screenshot attached). I have tried in both Chrome and IE. We are monitoring around 547 and MineMap version is 1.2.4.

Re: NagiosXI - MineMap is not working

Posted: Thu Feb 14, 2019 11:10 am
by lmiltchev
Can you run the following commands and show the output in code wraps?

Code: Select all

uptime
grep 'max_execution_time\|max_input_time\|max_input_vars\|memory_limit' /etc/php.ini | grep -v ';'
tail -100 /var/log/httpd/error_log

Re: NagiosXI - MineMap is not working

Posted: Fri Feb 15, 2019 4:29 am
by Pselvin

Code: Select all

I am unable to copy the entire log file here. Please see attached

[root@losatlngp01 ~]# uptime
04:26:57 up 2 days, 23:29,  1 user,  load average: 4.03, 3.60, 2.22


Re: NagiosXI - MineMap is not working

Posted: Fri Feb 15, 2019 10:19 am
by lmiltchev
These commands:

Code: Select all

grep 'max_execution_time\|max_input_time\|max_input_vars\|memory_limit' /etc/php.ini | grep -v ';'
tail -100 /var/log/httpd/error_log
were supposed to be run separately. We still don't have the information we need. Let's try the following:

1. Run the command below and show the output:

Code: Select all

grep 'max_execution_time\|max_input_time\|max_input_vars\|memory_limit' /etc/php.ini | grep -v ';'
2. Click on the Minemap link, and when you see the "spinning circle", run the command below and show the output:

Code: Select all

tail -100 /var/log/httpd/error_log
Have you tried to customize the "Minemap" component in any way?

Re: NagiosXI - MineMap is not working

Posted: Mon Feb 18, 2019 4:06 am
by Pselvin
Please see the command output below,

Code: Select all

[nagios@nagios ~]# grep 'max_execution_time\|max_input_time\|max_input_vars\|memory_limit' /etc/php.ini | grep -v ';'
max_execution_time = 30
max_input_time = 60
memory_limit = 128M

Code: Select all

[nagios@nagios ~]# date
Mon Feb 18 03:58:45 EST 2019

Code: Select all

[Sun Feb 17 03:29:01.982955 2019] [auth_digest:notice] [pid 2738] AH01757: generating secret for digest authentication ...
[Sun Feb 17 03:29:01.983496 2019] [lbmethod_heartbeat:notice] [pid 2738] AH02282: No slotmem from mod_heartmonitor
[Sun Feb 17 03:29:02.019604 2019] [mpm_prefork:notice] [pid 2738] AH00163: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.2k-fips PHP/5.4.16 configured -- resuming normal operations
[Sun Feb 17 03:29:02.019618 2019] [core:notice] [pid 2738] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Mon Feb 18 01:06:09.283447 2019] [cgi:error] [pid 8643] [client 172.29.144.235:25017] script not found or unable to stat: /var/www/cgi-bin/webcgi
[Mon Feb 18 01:06:09.391319 2019] [:error] [pid 7676] [client 172.29.144.235:13025] script '/var/www/html/test.php' not found or unable to stat
[Mon Feb 18 01:06:09.433446 2019] [:error] [pid 7676] [client 172.29.144.235:13025] script '/var/www/html/phpinfo.php' not found or unable to stat
[Mon Feb 18 01:06:09.472690 2019] [cgi:error] [pid 7678] [client 172.29.144.235:42556] script not found or unable to stat: /var/www/cgi-bin/phf
[Mon Feb 18 01:06:09.474910 2019] [cgi:error] [pid 8609] [client 172.29.144.235:18889] script not found or unable to stat: /var/www/cgi-bin/printenv
[Mon Feb 18 01:06:09.490213 2019] [cgi:error] [pid 8643] [client 172.29.144.235:57798] script not found or unable to stat: /var/www/cgi-bin/printenv.pl
[Mon Feb 18 01:06:09.501145 2019] [cgi:error] [pid 7678] [client 172.29.144.235:22093] script not found or unable to stat: /var/www/cgi-bin/test-cgi
[Mon Feb 18 01:06:09.519806 2019] [cgi:error] [pid 30473] [client 172.29.144.235:41485] script not found or unable to stat: /var/www/cgi-bin/rpm_query
[Mon Feb 18 01:06:09.529092 2019] [:error] [pid 28419] [client 172.29.144.235:15923] script '/var/www/html/xmlrpc.php' not found or unable to stat
[Mon Feb 18 01:06:09.529974 2019] [cgi:error] [pid 8643] [client 172.29.144.235:13321] script not found or unable to stat: /var/www/cgi-bin/htsearch
[Mon Feb 18 01:06:09.530546 2019] [cgi:error] [pid 7678] [client 172.29.144.235:29450] script not found or unable to stat: /var/www/cgi-bin/php.ini
[Mon Feb 18 01:06:09.531061 2019] [cgi:error] [pid 8643] [client 172.29.144.235:12351] script not found or unable to stat: /var/www/cgi-bin/home.tcl
[Mon Feb 18 01:06:09.531737 2019] [cgi:error] [pid 7678] [client 172.29.144.235:19795] script not found or unable to stat: /var/www/cgi-bin/test-cgi
[Mon Feb 18 01:06:09.533843 2019] [cgi:error] [pid 7676] [client 172.29.144.235:41921] script not found or unable to stat: /var/www/cgi-bin/view-source
[Mon Feb 18 01:06:09.534950 2019] [cgi:error] [pid 7676] [client 172.29.144.235:22977] script not found or unable to stat: /var/www/cgi-bin/config.exp
[Mon Feb 18 01:06:09.537377 2019] [cgi:error] [pid 7678] [client 172.29.144.235:24083] script not found or unable to stat: /var/www/cgi-bin/awstats.pl
[Mon Feb 18 01:06:09.539224 2019] [cgi:error] [pid 7678] [client 172.29.144.235:24083] script not found or unable to stat: /var/www/cgi-bin/awstats
[Mon Feb 18 01:06:09.541018 2019] [cgi:error] [pid 7678] [client 172.29.144.235:52325] script not found or unable to stat: /var/www/cgi-bin/faxsurvey
[Mon Feb 18 01:06:09.542812 2019] [cgi:error] [pid 7678] [client 172.29.144.235:52325] script not found or unable to stat: /var/www/cgi-bin/faxquery
[Mon Feb 18 01:06:09.544759 2019] [cgi:error] [pid 7676] [client 172.29.144.235:31816] script not found or unable to stat: /var/www/cgi-bin/htmlscript
[Mon Feb 18 01:06:09.545001 2019] [:error] [pid 30473] [client 172.29.144.235:27604] script '/var/www/html/c99.php' not found or unable to stat
[Mon Feb 18 01:06:09.595481 2019] [cgi:error] [pid 7676] [client 172.29.144.235:26910] script not found or unable to stat: /var/www/cgi-bin/awstats.pl
[Mon Feb 18 01:06:09.597283 2019] [cgi:error] [pid 7676] [client 172.29.144.235:26910] script not found or unable to stat: /var/www/cgi-bin/awstats
[Mon Feb 18 01:06:09.610091 2019] [cgi:error] [pid 8643] [client 172.29.144.235:53256] script not found or unable to stat: /var/www/cgi-bin/htgrep
We didn't make any customization to the MineMap.

Re: NagiosXI - MineMap is not working

Posted: Mon Feb 18, 2019 10:02 am
by lmiltchev
Try increasing the resource limits in the /etc/php.ini file:

Code: Select all

max_execution_time = 120
max_input_time = 60
memory_limit = 1024M
max_input_vars = 100000
and restart apache:

Code: Select all

systemctl restart httpd.service
If this doesn't solve your issue, please open a new support ticket via our support center:

https://support.nagios.com/tickets/

We may need to schedule a remote session to further troubleshoot the issue. Thank you!

Re: NagiosXI - MineMap is not working

Posted: Mon Feb 18, 2019 11:06 am
by Pselvin
Great! Thanks a ton for your help.

The below changes fixed our issue, MineMap is working fine.

Thanks again.

Re: NagiosXI - MineMap is not working

Posted: Mon Feb 18, 2019 11:34 am
by lmiltchev
I am glad I could help! I will be closing this topic. If you have any further questions/issues, please start a new thread. Thank you!