Page 4 of 5

Re: Nagios Fusion Hostgroup Dashboard

Posted: Wed Mar 21, 2018 3:54 pm
by tgriep
If you create a ticket, and include the link to this post, we can schedule a remote session with you to resolve the issue.
To create a ticket, you can use the following link.
https://support.nagios.com/tickets/

This URL is a guide on what is needed to create a ticket.
https://support.nagios.com/kb/article/c ... r-769.html

Re: Nagios Fusion Hostgroup Dashboard

Posted: Fri Apr 13, 2018 12:44 am
by scharft
Hi, as recommend in our remote session, I installed a new linux host with fusion.
The installation and configuration including add the nagios xi instances were successful but 2 instances don't show any information.
Please see attachmend, XISummary.
I have re-added the instances, changed the polling intervall. etc.. but nothing helped.
Any recommendations?

Best Regards

Re: Nagios Fusion Hostgroup Dashboard

Posted: Fri Apr 13, 2018 11:56 am
by tgriep
Can you run the following as root on the Fusion server and post the /tmp/varlog.tgz file?

Code: Select all

tar cvfz /tmp/varlog.tgz /usr/local/nagiosfusion/var/log/*.log

Re: Nagios Fusion Hostgroup Dashboard

Posted: Wed Apr 18, 2018 1:19 am
by scharft
the varlog is attached.

best Regards

Re: Nagios Fusion Hostgroup Dashboard

Posted: Wed Apr 18, 2018 10:28 am
by tgriep
Thanks for the log files.
Can you run the following command as root to get the server ID for the Vienna server and the Bannockburn servers and post it here?

In the log files, I am seeing authentication issues for servers 1, 3 and 6 so can you verify that the user account you are using to poll the server is valid as well as the Fusekey?

To verify that the Fusekey from the Nagios XI servers are correct, run the following on the Fusion server replacing the nagiosxiserver with the XI server's host name and the xxxxxxxxxxxxxxxxxxxxxxxx with the fusion key from the XI server.

Code: Select all

curl -XGET https://nagiosxiserver/nagiosxi/api/v1/system/status?fusekey=xxxxxxxxxxxxxxxxxxxxxxxx -k -v
It should come back with the server status information if it is valid.

Re: Nagios Fusion Hostgroup Dashboard

Posted: Thu Apr 19, 2018 2:37 am
by scharft
curl -XGET http://atvinag003.corp.inbaxalta.com/na ... 8BEDFC2E41 -k -v

* About to connect() to atvinag003.corp.inbaxalta.com port 80 (#0)
* Trying 10.110.13.84...
* Connected to atvinag003.corp.inbaxalta.com (10.110.13.84) port 80 (#0)
> GET /nagiosxi/api/v1/system/status?fusekey=60019E5E30DAC56E1CA5CD8BEDFC2E41 HTTP/1.1
> User-Agent: curl/7.29.0
> Host: atvinag003.corp.inbaxalta.com
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Thu, 19 Apr 2018 07:00:07 GMT
< Server: Apache/2.2.15 (Red Hat)
< X-Powered-By: PHP/5.3.3
< Access-Control-Allow-Orgin: *
< Access-Control-Allow-Methods: *
< Content-Length: 840
< Connection: close
< Content-Type: application/json
<
{"instance_id":"1","instance_name":"localhost","status_update_time":"2018-04-19 09:00:01","program_start_time":"2018-04-18 22:15:05","program_run_time":"38702","program_end_time":"0000-00-00 00:00:00","is_currently_running":"1","process_id":"37668","daemon_mode":"1","last_command_check":"1970-01-01 01:00:00","last_log_rotation":"2018-04-18 23:59:59","notifications_enabled":"1","active_service_checks_enabled":"1","passive_service_checks_enabled":"1","active_host_checks_enabled":"1","passive_host_checks_enabled":"1","event_handlers_enabled":"1","flap_detection_enabled":"1","process_performance_data":"1","obsess_over_hosts":"1","obsess_over_services":"1","modified_host_attributes":"129","modified_service_attributes":"133","global_host_event_handler":"xi_host_event_handler","global_service_event_handler":"xi_service_event_handler"}

curl -XGET http://usbbnag1001.corp.inbaxalta.com/n ... 410B79CC15 -k -v



* About to connect() to usbbnag1001.corp.inbaxalta.com port 80 (#0)
* Trying 10.150.76.108...
* Connected to usbbnag1001.corp.inbaxalta.com (10.150.76.108) port 80 (#0)
> GET /nagiosxi/api/v1/system/status?fusekey=330B0011A613913AB0FBDB410B79CC15 HTTP/1.1
> User-Agent: curl/7.29.0
> Host: usbbnag1001.corp.inbaxalta.com
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Thu, 19 Apr 2018 07:01:35 GMT
< Server: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.2k-fips PHP/5.4.16
< X-Powered-By: PHP/5.4.16
< Access-Control-Allow-Orgin: *
< Access-Control-Allow-Methods: *
< Content-Length: 836
< Content-Type: application/json
<
{"instance_id":"1","instance_name":"localhost","status_update_time":"2018-04-19 00:01:32","program_start_time":"2018-04-18 20:00:04","program_run_time":"14491","program_end_time":"0000-00-00 00:00:00","is_currently_running":"1","process_id":"17623","daemon_mode":"1","last_command_check":"1969-12-31 16:00:00","last_log_rotation":"2018-04-18 23:59:59","notifications_enabled":"1","active_service_checks_enabled":"1","passive_service_checks_enabled":"1","active_host_checks_enabled":"1","passive_host_checks_enabled":"1","event_handlers_enabled":"1","flap_detection_enabled":"1","process_performance_data":"1","obsess_over_hosts":"0","obsess_over_services":"0","modified_host_attributes":"1","modified_service_attributes":"1","global_host_event_handler":"xi_host_event_handler","global_service_event_handler":"xi_service_event_handler"}
* Connection #0 to host usbbnag1001.corp.inbaxalta.com left intact

Re: Nagios Fusion Hostgroup Dashboard

Posted: Thu Apr 19, 2018 8:26 am
by tgriep
I missed adding the command to my last post, can you run the following and add the /tmp/info.txt file to the ticket?

Code: Select all

echo 'select * from servers;' |mysql -t -u fusion -pfusion fusion >/tmp/info.txt
Thanks for running the other commands and providing the output.
The Fusekeys are working.

Re: Nagios Fusion Hostgroup Dashboard

Posted: Sat Apr 21, 2018 10:05 am
by scharft
file is attached

best Regards

Re: Nagios Fusion Hostgroup Dashboard

Posted: Mon Apr 23, 2018 1:52 pm
by tgriep
Thanks for the file.
It looks like the URL for the Vienna server is missing the .corp for the domain name.
Your example URL from last Thursday does not match the settings in Fusion. Update that and see if that server starts to check in.

The Bannockburn server settings look OK to me but verify them for sure.


If updating the settings for the Vienna server doesn't work, lets run a tcpdump on the Fusion server to capture the data between the servers.

First, you may need to install tcpdump by running the following as root.

Code: Select all

yum install tcpdump -y
Then, run the following as root on the fusion server for at least 20 minutes replacing yyyyyyyyy with the name of the server you are testing and xxx.xxx.xxx.xxx with it's IP address.

Code: Select all

tcpdump -i any -s 65535 -w yyyyyyyyy.cap dst xxx.xxx.xxx.xxx
Run the command against the Vienna server and or the Bannockburn server is they are still not getting polled data in the Fusion interface.

Re: Nagios Fusion Hostgroup Dashboard

Posted: Wed May 02, 2018 1:50 am
by scharft
Hi, attached is the tump, please change the extension from txt to .cap.

best Thomas