Fusion don't show alerts from local XI

This support forum board is for questions relating to Nagios Fusion.
elade
Posts: 144
Joined: Wed Mar 28, 2018 6:23 am

Re: Fusion don't show alerts from local XI

Post by elade »

How many servers do you have fused on the server?
28 servers
In the System Settings > Data & Polling tab, how many Simultaneous Pollers: do you have set?
1

/usr/local/nagiosfusion/var/log/fusion.log

Code: Select all

[2019-02-19 19:54:15] [SYSTEM] [ERROR]: poll_server() unable to poll data for s:TEST, u:nagiosadmin, poll:nagiosxi_bpi
[2019-02-19 19:54:15] [SYSTEM] [ERROR]: poll_server() CHECK YOUR LIVE_DATA_TIMEOUT SETTINGS. IT MAY NEED INCREASED
/usr/local/nagiosfusion/var/log/fusion.debug

Code: Select all

Checking authentication for server: ( [server_id] => 61, [enabled] => 1, [auto_login] => 1, [name] => TEST, [address] => , [server_type] => 1, [authentication_type] => 1, [url] => http://10.10.10.10/nagiosxi/, [cgi_bin] => , [location] => , [notes] => , [fusekey] => Aa123456, [username] => nagiosadmin, [password] => Aa123456, [logserver_token] => , [version] => 5.5.8, [last_auth_time] => 2019-02-19 19:48:29, [polling_interval] => 0, [auth_interval] => 0, [ignore_xi_meta] => 0, [timezone] => SOMEHERE, [last_auth_unix] => 1550598509 )
[2019-02-19 19:54:11] [SYSTEM] [DEBUG] [TEST]: poll_master(): executing: /usr/local/nagiosfusion/cron/poll_subsys.php --server="61" --user="nagiosadmin" >/usr/local/nagiosfusion/var/log/poll_subsys.61.nagiosadmin.log 2>&1 &
[2019-02-19 19:54:14] [SYSTEM] [DEBUG]: URL: http://10.10.10.10/nagiosxi/includes/components/nagiosbpi/bpi_display.php?cmd=getbpixml&username=nagiosadmin&password=6a9e0e5bcd4e4dcd0716b7d51243d592
[2019-02-19 19:54:16] [SYSTEM] [DEBUG]: URL: http://10.10.10.10/nagiosxi/backend/?cmd=getHostStatus&username=nagiosadmin&password=6a9e0e5bcd4e4dcd0716b7d51243d592&records=1000:0?brevity=1
[2019-02-19 19:54:16] [SYSTEM] [DEBUG]: URL: http://10.10.10.10/nagiosxi/backend/?cmd=getHostStatus&username=nagiosadmin&password=6a9e0e5bcd4e4dcd0716b7d51243d592&records=1000:1000&brevity=1
[2019-02-19 19:54:20] [SYSTEM] [DEBUG]: URL: http://10.10.10.10/nagiosxi/backend/?cmd=getServiceStatus&username=nagiosadmin&password=6a9e0e5bcd4e4dcd0716b7d51243d592&records=1000:0?brevity=1
[2019-02-19 19:54:24] [SYSTEM] [DEBUG]: URL: http://10.10.10.10/nagiosxi/backend/?cmd=getServiceStatus&username=nagiosadmin&password=6a9e0e5bcd4e4dcd0716b7d51243d592&records=1000:1000&brevity=1
[2019-02-19 19:54:25] [SYSTEM] [DEBUG]: URL: http://10.10.10.10/nagiosxi/backend/?cmd=getProgramStatus&username=nagiosadmin&password=6a9e0e5bcd4e4dcd0716b7d51243d592
[2019-02-19 19:54:26] [SYSTEM] [DEBUG]: URL: http://10.10.10.10/nagiosxi/backend/?cmd=getUsers&username=nagiosadmin&password=6a9e0e5bcd4e4dcd0716b7d51243d592
[2019-02-19 19:54:26] [SYSTEM] [DEBUG]: URL: http://10.10.10.10/nagiosxi/backend/?cmd=getProductInfo&username=nagiosadmin&password=6a9e0e5bcd4e4dcd0716b7d51243d592
[2019-02-19 19:54:27] [SYSTEM] [DEBUG]: URL: http://10.10.10.10/nagiosxi/backend/?cmd=getLogEntries?logentry_type=in:1024,2048,4096,8192,32768,65536,16384&username=nagiosadmin&password=6a9e0e5bcd4e4dcd0716b7d51243d592&starttime=1550598551&endtime=1550598851
[2019-02-19 19:54:28] [SYSTEM] [DEBUG]: URL: http://10.10.10.10/nagiosxi/backend/?cmd=getHostgroupMembers&username=nagiosadmin&password=6a9e0e5bcd4e4dcd0716b7d51243d592&records=1000:0
[2019-02-19 19:54:28] [SYSTEM] [DEBUG]: URL: http://10.10.10.10/nagiosxi/backend/?cmd=getHostgroupMembers&username=nagiosadmin&password=6a9e0e5bcd4e4dcd0716b7d51243d592&records=1000:1000
[2019-02-19 19:54:36] [SYSTEM] [DEBUG]: URL: http://10.10.10.10/nagiosxi/backend/?cmd=getHostgroups&username=nagiosadmin&password=6a9e0e5bcd4e4dcd0716b7d51243d592&records=1000:0
[2019-02-19 19:54:36] [SYSTEM] [DEBUG]: URL: http://10.10.10.10/nagiosxi/backend/?cmd=getHostgroups&username=nagiosadmin&password=6a9e0e5bcd4e4dcd0716b7d51243d592&records=1000:1000
[2019-02-19 19:54:38] [SYSTEM] [DEBUG]: URL: http://10.10.10.10/nagiosxi/backend/?cmd=getServicegroups&username=nagiosadmin&password=6a9e0e5bcd4e4dcd0716b7d51243d592&records=1000:0
[2019-02-19 19:54:40] [SYSTEM] [DEBUG]: URL: http://10.10.10.10/nagiosxi/backend/?cmd=getServicegroups&username=nagiosadmin&password=6a9e0e5bcd4e4dcd0716b7d51243d592&records=1000:1000
[2019-02-19 19:54:47] [SYSTEM] [DEBUG]: URL: http://10.10.10.10/nagiosxi/backend/?cmd=getServicegroupMembers&username=nagiosadmin&password=6a9e0e5bcd4e4dcd0716b7d51243d592&records=1000:0
[2019-02-19 19:54:48] [SYSTEM] [DEBUG]: URL: http://10.10.10.10/nagiosxi/backend/?cmd=getServicegroupMembers&username=nagiosadmin&password=6a9e0e5bcd4e4dcd0716b7d51243d592&records=1000:1000
[2019-02-19 19:54:48] [SYSTEM] [DEBUG] [TEST]: poll_master(): Server using polling interval 300
[2019-02-19 19:54:48] [SYSTEM] [DEBUG] [TEST]: poll_master(): Not yet time to poll server, polled_time: 1550598888
[2019-02-19 19:55:33] [SYSTEM] [DEBUG] [TEST]: poll_master(): Server using polling interval 300
[2019-02-19 19:55:33] [SYSTEM] [DEBUG] [TEST]: poll_master(): Not yet time to poll server, polled_time: 1550598888
The strage thing is that my backed version is 1.0.3 (in local XI) and I don't use that old version which appear in the log.
Why Fusion is polling with this version of the API?
Also you can see the the version is 5.5.8
I ran those urls and got <errormessage>Authentication Failure</errormessage>
That's why I Believe the reason for not seeing alerts in Fusion.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Fusion don't show alerts from local XI

Post by tgriep »

Go to the System Settings > Data & Polling tab, and set the Simultaneous Pollers: to 28
Set the Live Data Timeout: to 90 seconds.

Update the settings.


Was the Fusion server upgrades from an older 2014r1.x server?

That could be where the wrong call could of coming from.

I would delete that server from Fusion and re-add it back in to the system.
See if that recreates the polls using the correct API and then it starts to gather the service data.
Be sure to check out our Knowledgebase for helpful articles and solutions!
elade
Posts: 144
Joined: Wed Mar 28, 2018 6:23 am

Re: Fusion don't show alerts from local XI

Post by elade »

Was the Fusion server upgrades from an older 2014r1.x server?
No it's a new one
I would delete that server from Fusion and re-add it back in to the system.
Did it a few times alerady still show the old API.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Fusion don't show alerts from local XI

Post by tgriep »

When the Fusion server first connects to the XI server, it gets the XI version to determine how to poll it.
If the XI version is greater than 5.5.0 it uses the API, else it uses the backend url.
To get that version, it uses the Program URL of the XI server that is entered in the Fusion Server settings.
Check the URL to see if they match between servers.

Another thing, do upgrade to Fusion 4.1.7. The last release has some changes in how the Fusion server authenticates with the XI server that may fix the issue.
Be sure to check out our Knowledgebase for helpful articles and solutions!
elade
Posts: 144
Joined: Wed Mar 28, 2018 6:23 am

Re: Fusion don't show alerts from local XI

Post by elade »

I have update the API backed again in local XI and now I can see in the fusion logs that it’s polling with the new API.

Code: Select all

/usr/local/nagiosfusion/cron/poll_subsys.php --debug --server 61 --user nagiosadmin

OPERATING IN DEBUG MODE

2019-02-21 09:28:15[s: 0, u: 0] poll_subsys() called at 1550734095
2019-02-21 09:28:15[s: 0, u: 0] poll_subsys(): Not yet time to poll server, polled_time: 1550733882
2019-02-21 09:28:15[s: 0, u: 0] poll_subsys(): using php memory limit: 128M
2019-02-21 09:28:24[s: 0, u: 0] live_data_timeout: 180
2019-02-21 09:28:24[s: 0, u: 0] URL: http://10.10.10.10/nagiosxi/api/v1/objects/bpi?fusekey=Aa123456&outputtype=xml&user=nagiosadmin
2019-02-21 09:28:24[s: 0, u: 0] <?xml version="1.0" encoding="iso-8859-1"?>
<bpigroups>

         <group id='linux-servers'>
            <name>linux-servers</name>
            <title>HG: linux-servers</title>
            <type>hostgroup</type>
            <status_text>Group health is 100% with 0 problem(s).</status_text>
            <current_state>0</current_state>
            <problems>0</problems>
            <health>100.00</health>
            <warning>0</warning>
            <critical>0</critical>
         </group>

         <group id='all_dell_openmanage_oob_servers'>
            <name>all_dell_openmanage_oob_servers</name>
            <title>SG: all_dell_openmanage_oob_servers</title>
            <type>servicegroup</type>
            <status_text>Group health is 75% with 3 problem(s).</status_text>
            <current_state>0</current_state>
            <problems>3</problems>
            <health>75.00</health>
            <warning>0</warning>
            <critical>0</critical>
         </group>
        </bpigroups>


2019-02-21 09:28:24[s: 0, u: 0] runtime: 9 seconds
2019-02-21 09:28:46[s: 0, u: 0] live_data_timeout: 180
2019-02-21 09:28:46[s: 0, u: 0] URL: http://10.10.10.10/nagiosxi/api/v1/objects/hoststatus?fusekey=Aa123456&outputtype=xml&user=nagiosadmin&records=1000:0?brevity=1
2019-02-21 09:28:46[s: 0, u: 0] runtime: 22 seconds
2019-02-21 09:28:47[s: 0, u: 0] live_data_timeout: 180
2019-02-21 09:28:47[s: 0, u: 0] URL: http://10.10.10.10/nagiosxi/api/v1/objects/hoststatus?fusekey=Aa123456&outputtype=xml&user=nagiosadmin&records=1000:1000&brevity=1
2019-02-21 09:28:47[s: 0, u: 0] runtime: 1 seconds
2019-02-21 09:31:47[s: 0, u: 0] live_data_timeout: 180
2019-02-21 09:31:47[s: 0, u: 0] URL: http://10.10.10.10/nagiosxi/api/v1/objects/servicestatus?fusekey=Aa123456&outputtype=xml&user=nagiosadmin&records=1000:0?brevity=1
2019-02-21 09:31:47[s: 0, u: 0] runtime: 180 seconds
2019-02-21 09:31:47[s: 0, u: 0] poll_server() unable to poll data for s:TEST, u:nagiosadmin, poll:servicestatus
2019-02-21 09:31:47[s: 0, u: 0] poll_server() CHECK YOUR LIVE_DATA_TIMEOUT SETTINGS. IT MAY NEED INCREASED
2019-02-21 09:31:48[s: 0, u: 0] live_data_timeout: 180
2019-02-21 09:31:48[s: 0, u: 0] URL: http://10.10.10.10/nagiosxi/api/v1/system/status?fusekey=Aa123456&outputtype=xml
2019-02-21 09:31:48[s: 0, u: 0] runtime: 1 seconds
2019-02-21 09:31:53[s: 0, u: 0] live_data_timeout: 180
2019-02-21 09:31:53[s: 0, u: 0] URL: http://10.10.10.10/nagiosxi/api/v1/system/user?fusekey=Aa123456&outputtype=xml
2019-02-21 09:31:53[s: 0, u: 0] runtime: 5 seconds
2019-02-21 09:31:54[s: 0, u: 0] live_data_timeout: 180
2019-02-21 09:31:54[s: 0, u: 0] URL: http://10.10.10.10/nagiosxi/api/v1/system/info?fusekey=Aa123456&outputtype=xml
2019-02-21 09:31:54[s: 0, u: 0] runtime: 1 seconds
2019-02-21 09:31:57[s: 0, u: 0] live_data_timeout: 180
2019-02-21 09:31:57[s: 0, u: 0] URL: http://10.10.10.10/nagiosxi/api/v1/objects/logentries?logentry_type=in:1024,2048,4096,8192,32768,65536,16384&fusekey=Aa123456&outputtype=xml&user=nagiosadmin&starttime=1550733882&endtime=1550734095
2019-02-21 09:31:57[s: 0, u: 0] runtime: 3 seconds
2019-02-21 09:31:58[s: 0, u: 0] live_data_timeout: 180
2019-02-21 09:31:58[s: 0, u: 0] URL: http://10.10.10.10/nagiosxi/api/v1/objects/hostgroupmembers?fusekey=Aa123456&outputtype=xml&user=nagiosadmin&records=1000:0
2019-02-21 09:31:58[s: 0, u: 0] runtime: 1 seconds
2019-02-21 09:32:00[s: 0, u: 0] live_data_timeout: 180
2019-02-21 09:32:00[s: 0, u: 0] URL: http://10.10.10.10/nagiosxi/api/v1/objects/hostgroupmembers?fusekey=Aa123456&outputtype=xml&user=nagiosadmin&records=1000:1000
2019-02-21 09:32:00[s: 0, u: 0] runtime: 2 seconds
2019-02-21 09:32:01[s: 0, u: 0] live_data_timeout: 180
2019-02-21 09:32:01[s: 0, u: 0] URL: http://10.10.10.10/nagiosxi/api/v1/objects/hostgroup?fusekey=Aa123456&outputtype=xml&user=nagiosadmin&records=1000:0
2019-02-21 09:32:01[s: 0, u: 0] runtime: 1 seconds
2019-02-21 09:32:01[s: 0, u: 0] live_data_timeout: 180
2019-02-21 09:32:01[s: 0, u: 0] URL: http://10.10.10.10/nagiosxi/api/v1/objects/hostgroup?fusekey=Aa123456&outputtype=xml&user=nagiosadmin&records=1000:1000
2019-02-21 09:32:01[s: 0, u: 0] runtime: 0 seconds
2019-02-21 09:32:03[s: 0, u: 0] live_data_timeout: 180
2019-02-21 09:32:03[s: 0, u: 0] URL: http://10.10.10.10/nagiosxi/api/v1/objects/servicegroup?fusekey=Aa123456&outputtype=xml&user=nagiosadmin&records=1000:0
2019-02-21 09:32:03[s: 0, u: 0] runtime: 2 seconds
2019-02-21 09:32:21[s: 0, u: 0] live_data_timeout: 180
2019-02-21 09:32:21[s: 0, u: 0] URL: http://10.10.10.10/nagiosxi/api/v1/objects/servicegroup?fusekey=Aa123456&outputtype=xml&user=nagiosadmin&records=1000:1000
2019-02-21 09:32:21[s: 0, u: 0] runtime: 18 seconds
2019-02-21 09:32:30[s: 0, u: 0] live_data_timeout: 180
2019-02-21 09:32:30[s: 0, u: 0] URL: http://10.10.10.10/nagiosxi/api/v1/objects/servicegroupmembers?fusekey=Aa123456&outputtype=xml&user=nagiosadmin&records=1000:0
2019-02-21 09:32:30[s: 0, u: 0] runtime: 9 seconds
2019-02-21 09:32:30[s: 0, u: 0] live_data_timeout: 180
2019-02-21 09:32:30[s: 0, u: 0] URL: http://10.10.10.10/nagiosxi/api/v1/objects/servicegroupmembers?fusekey=Aa123456&outputtype=xml&user=nagiosadmin&records=1000:1000
2019-02-21 09:32:30[s: 0, u: 0] runtime: 0 seconds
SERVER:      TEST
USERNAME:    nagiosadmin
POLLED_DATA:
Array
(
    [server_id] => 61
    [server_type] => 1
    [authentication_type] => 0
    [username] => nagiosadmin
    [polled_time] => 1550734095
    [data] => Array
        (
            [bpi] => Array
                (
                    [linux-servers] => Array
                        (
                            [title] => HG: linux-servers
                            [state] => 0
                            [text] => Group health is 100% with 0 problem(s).
                        )

                    [all_dell_openmanage_oob_servers] => Array
                        (
                            [title] => SG: all_dell_openmanage_oob_servers
                            [state] => 0
                            [text] => Group health is 75% with 3 problem(s).
                        )

                )

            [hosts_pending] => 0
            [hosts_up] => 34
            [hosts_down] => 0
            [hosts_unreachable] => 0
            [hosts_count] => 34
            [host_status] => Array
                (
                    [localhost] => Array
                        (
                            [alias] => localhost
                            [current_state] => 0
                            [output] => OK - 127.0.0.1: rta 0.015ms, lost 0%
                            [disabled] => 0
                            [downtime] => 0
                            [acknowledged] => 0
                        )

                    [10.10.10.10] => Array
                        (
                            [alias] => 10.10.10.10
                            [current_state] => 0
                            [output] => OK - 10.10.10.10: rta 0.085ms, lost 0%
                            [disabled] => 0
                            [downtime] => 0
                            [acknowledged] => 0
                        )

                    [10.10.10.10] => Array
                        (
                            [alias] => 10.10.10.10
                            [current_state] => 0
                            [output] => OK - 10.10.10.10: rta 0.102ms, lost 0%
                            [disabled] => 0
                            [downtime] => 0
                            [acknowledged] => 0
                        )

                    [10.10.10.10] => Array
                        (
                            [alias] => 10.10.10.10
                            [current_state] => 0
                            [output] => OK - 10.10.10.10: rta 1.015ms, lost 0%
                            [disabled] => 0
                            [downtime] => 0
                            [acknowledged] => 0
                        )

                    [10.10.10.10] => Array
                        (
                            [alias] => 10.10.10.10
                            [current_state] => 0
                            [output] => OK - 10.10.10.10: rta 4.585ms, lost 0%
                            [disabled] => 0
                            [downtime] => 0
                            [acknowledged] => 0
                        )

                    [10.10.10.10] => Array
                        (
                            [alias] => 10.10.10.10
                            [current_state] => 0
                            [output] => OK - 10.10.10.10: rta 0.702ms, lost 0%
                            [disabled] => 0
                            [downtime] => 0
                            [acknowledged] => 0
                        )

                    [10.10.10.10] => Array
                        (
                            [alias] => 10.10.10.10
                            [current_state] => 0
                            [output] => OK - 10.10.10.10: rta 2.409ms, lost 0%
                            [disabled] => 0
                            [downtime] => 0
                            [acknowledged] => 0
                        )

                    [10.10.10.10] => Array
                        (
                            [alias] => 10.10.10.10
                            [current_state] => 0
                            [output] => OK - 10.10.10.10: rta 0.109ms, lost 0%
                            [disabled] => 0
                            [downtime] => 0
                            [acknowledged] => 0
                        )

                    [10.10.10.10] => Array
                        (
                            [alias] => 10.10.10.10
                            [current_state] => 0
                            [output] => OK - 10.10.10.10: rta 0.166ms, lost 0%
                            [disabled] => 0
                            [downtime] => 0
                            [acknowledged] => 0
                        )

                    [10.10.10.10] => Array
                        (
                            [alias] => 10.10.10.10
                            [current_state] => 0
                            [output] => OK - 10.10.10.10: rta 0.177ms, lost 0%
                            [disabled] => 0
                            [downtime] => 0
                            [acknowledged] => 0
                        )

                    [10.10.10.10] => Array
                        (
                            [alias] => 10.10.10.10
                            [current_state] => 0
                            [output] => OK - 10.10.10.10: rta 0.179ms, lost 0%
                            [disabled] => 0
                            [downtime] => 0
                            [acknowledged] => 0
                        )

                    [10.10.10.10] => Array
                        (
                            [alias] => 10.10.10.10
                            [current_state] => 0
                            [output] => OK - 10.10.10.10: rta 0.169ms, lost 0%
                            [disabled] => 0
                            [downtime] => 0
                            [acknowledged] => 0
                        )

                    [10.10.10.10] => Array
                        (
                            [alias] => 10.10.10.10
                            [current_state] => 0
                            [output] => OK - 10.10.10.10: rta 0.500ms, lost 0%
                            [disabled] => 0
                            [downtime] => 0
                            [acknowledged] => 0
                        )

                    [10.10.10.10] => Array
                        (
                            [alias] => 10.10.10.10
                            [current_state] => 0
                            [output] => OK - 10.10.10.10: rta 0.114ms, lost 0%
                            [disabled] => 0
                            [downtime] => 0
                            [acknowledged] => 0
                        )

                    [10.10.10.10] => Array
                        (
                            [alias] => 10.10.10.10
                            [current_state] => 0
                            [output] => OK - 10.10.10.10: rta 0.115ms, lost 0%
                            [disabled] => 0
                            [downtime] => 0
                            [acknowledged] => 0
                        )

                    [10.10.10.10] => Array
                        (
                            [alias] => 10.10.10.10
                            [current_state] => 0
                            [output] => OK - 10.10.10.10: rta 0.994ms, lost 0%
                            [disabled] => 0
                            [downtime] => 0
                            [acknowledged] => 0
                        )

                    [10.10.10.10] => Array
                        (
                            [alias] => 10.10.10.10
                            [current_state] => 0
                            [output] => OK - 10.10.10.10: rta 0.100ms, lost 0%
                            [disabled] => 0
                            [downtime] => 0
                            [acknowledged] => 0
                        )

                    [10.10.10.10] => Array
                        (
                            [alias] => 10.10.10.10
                            [current_state] => 0
                            [output] => OK - 10.10.10.10: rta 2.180ms, lost 0%
                            [disabled] => 0
                            [downtime] => 0
                            [acknowledged] => 0
                        )

                    [10.10.10.10] => Array
                        (
                            [alias] => 10.10.10.10
                            [current_state] => 0
                            [output] => OK - 10.10.10.10: rta 0.271ms, lost 0%
                            [disabled] => 0
                            [downtime] => 0
                            [acknowledged] => 0
                        )

                    [10.10.10.10] => Array
                        (
                            [alias] => 10.10.10.10
                            [current_state] => 0
                            [output] => OK - 10.10.10.10: rta 0.262ms, lost 0%
                            [disabled] => 0
                            [downtime] => 0
                            [acknowledged] => 0
                        )

                    [10.10.10.10] => Array
                        (
                            [alias] => 10.10.10.10
                            [current_state] => 0
                            [output] => OK - 10.10.10.10: rta 0.262ms, lost 0%
                            [disabled] => 0
                            [downtime] => 0
                            [acknowledged] => 0
                        )

                    [10.10.10.10] => Array
                        (
                            [alias] => 10.10.10.10
                            [current_state] => 0
                            [output] => OK - 10.10.10.10: rta 0.291ms, lost 0%
                            [disabled] => 0
                            [downtime] => 0
                            [acknowledged] => 0
                        )

                    [10.10.10.10] => Array
                        (
                            [alias] => 10.10.10.10
                            [current_state] => 0
                            [output] => OK - 10.10.10.10: rta 0.272ms, lost 0%
                            [disabled] => 0
                            [downtime] => 0
                            [acknowledged] => 0
                        )

                    [10.10.10.10] => Array
                        (
                            [alias] => 10.10.10.10
                            [current_state] => 0
                            [output] => OK - 10.10.10.10: rta 0.298ms, lost 0%
                            [disabled] => 0
                            [downtime] => 0
                            [acknowledged] => 0
                        )

                    [10.10.10.10] => Array
                        (
                            [alias] => 10.10.10.10
                            [current_state] => 0
                            [output] => OK - 10.10.10.10: rta 0.290ms, lost 0%
                            [disabled] => 0
                            [downtime] => 0
                            [acknowledged] => 0
                        )

                    [10.10.10.10] => Array
                        (
                            [alias] => 10.10.10.10
                            [current_state] => 0
                            [output] => OK - 10.10.10.10: rta 0.278ms, lost 0%
                            [disabled] => 0
                            [downtime] => 0
                            [acknowledged] => 0
                        )

                    [10.10.10.10] => Array
                        (
                            [alias] => 10.10.10.10
                            [current_state] => 0
                            [output] => OK - 10.10.10.10: rta 0.269ms, lost 0%
                            [disabled] => 0
                            [downtime] => 0
                            [acknowledged] => 0
                        )

                    [10.10.10.10] => Array
                        (
                            [alias] => 10.10.10.10
                            [current_state] => 0
                            [output] => OK - 10.10.10.10: rta 0.256ms, lost 0%
                            [disabled] => 0
                            [downtime] => 0
                            [acknowledged] => 0
                        )

                    [10.10.10.10] => Array
                        (
                            [alias] => 10.10.10.10
                            [current_state] => 0
                            [output] => OK - 10.10.10.10: rta 0.401ms, lost 0%
                            [disabled] => 0
                            [downtime] => 0
                            [acknowledged] => 0
                        )

                    [10.10.10.10] => Array
                        (
                            [alias] => 10.10.10.10
                            [current_state] => 0
                            [output] => OK - 10.10.10.10: rta 0.413ms, lost 0%
                            [disabled] => 0
                            [downtime] => 0
                            [acknowledged] => 0
                        )

                    [10.10.10.10] => Array
                        (
                            [alias] => 10.10.10.10
                            [current_state] => 0
                            [output] => OK - 10.10.10.10: rta 0.289ms, lost 0%
                            [disabled] => 0
                            [downtime] => 0
                            [acknowledged] => 0
                        )

                    [10.10.10.10] => Array
                        (
                            [alias] => 10.10.10.10
                            [current_state] => 0
                            [output] => OK - 10.10.10.10: rta 2.632ms, lost 0%
                            [disabled] => 0
                            [downtime] => 0
                            [acknowledged] => 0
                        )

                    [10.10.10.10] => Array
                        (
                            [alias] => 10.10.10.10
                            [current_state] => 0
                            [output] => OK - 10.10.10.10: rta 0.183ms, lost 0%
                            [disabled] => 0
                            [downtime] => 0
                            [acknowledged] => 0
                        )

                    [10.10.10.10] => Array
                        (
                            [alias] => 10.10.10.10
                            [current_state] => 0
                            [output] => OK - 10.10.10.10: rta 0.237ms, lost 0%
                            [disabled] => 0
                            [downtime] => 0
                            [acknowledged] => 0
                        )

                )

            [hosts_problems] => 0
            [hosts_problems_unhandled] => 0
            [hosts_disabled] => 0
            [hosts_acknowledged] => 0
            [hosts_flapping] => 0
            [hosts_downtime] => 0
            [hosts_pending_disabled] => 0
            [hosts_up_disabled] => 0
            [hosts_up_downtime] => 0
            [hosts_down_disabled] => 0
            [hosts_down_acknowledged] => 0
            [hosts_down_downtime] => 0
            [hosts_unreachable_disabled] => 0
            [hosts_unreachable_acknowledged] => 0
            [hosts_unreachable_downtime] => 0
            [monitoring_engine] => 1
            [notifications] => 1
            [active_checks] => 1
            [passive_checks] => 1
            [event_handlers] => 1
            [users] => Array
                (
                    [0] => Array
                        (
                            [user_id] => 0
                            [username] => support
                            [name] => support
                            [email] => support@root.com
                            [enabled] => 1
                        )

                    [1] => Array
                        (
                            [user_id] => 1
                            [username] => nagiosadmin
                            [name] => Nagios Administrator
                            [email] => root@localhost
                            [enabled] => 1
                        )

                )

            [info] => Array
                (
                    [product] => nagiosxi
                    [version] => 5.5.8
                    [version_major] => 5
                    [version_minor] => 5.8
                    [build_id] => 1544466765
                    [release] => 5508
                )

            [alert_list] => Array
                (
                    [0] => Array
                        (
                            [time] => 2019-02-21 11:27:50
                            [type] => 65536
                            [host] => 10.10.10.10
                            [service] => check ntp time
                            [state_type] => SOFT
                            [state] => CRITICAL
                            [output] => NTP CRITICAL: Offset -441.1089435 secs
                        )

                    [1] => Array
                        (
                            [time] => 2019-02-21 11:25:51
                            [type] => 8192
                            [host] => 10.10.10.10
                            [service] => check ntp time
                            [state_type] => SOFT
                            [state] => OK
                            [output] => NTP OK: Offset 3.820484638 secs
                        )

                    [2] => Array
                        (
                            [time] => 2019-02-21 11:25:13
                            [type] => 8192
                            [host] => 10.10.10.10
                            [service] => check ntp time
                            [state_type] => SOFT
                            [state] => OK
                            [output] => NTP OK: Offset 0.486807 secs
                        )

                )

            [hostgroup_members] => Array
                (
                    [linux-servers] => Array
                        (
                            [alias] => linux-servers
                            [members] => Array
                                (
                                    [0] => localhost
                                )

                        )

                )

            [servicegroup_members] => Array
                (
                    [all_dell_openmanage_oob_servers] => Array
                        (
                            [alias] => all_dell_openmanage_oob_servers
                            [members] => Array
                                (
                                    [0] => Array
                                        (
                                            [host_name] => 10.10.10.10
                                            [service_description] => Dell OpenManage OOB - Operating System and Firmware Information
                                        )

                                    [1] => Array
                                        (
                                            [host_name] => 10.10.10.10
                                            [service_description] => Dell OpenManage OOB - Model Service Tag Information
                                        )

                                    [2] => Array
                                        (
                                            [host_name] => 10.10.10.10
                                            [service_description] => Dell OpenManage OOB - PowerEdge Server
                                        )

                                    [3] => Array
                                        (
                                            [host_name] => 10.10.10.10
                                            [service_description] => Dell OpenManage OOB - Operating System and Firmware Information
                                        )

                                    [4] => Array
                                        (
                                            [host_name] => 10.10.10.10
                                            [service_description] => Dell OpenManage OOB - Model Service Tag Information
                                        )

                                    [5] => Array
                                        (
                                            [host_name] => 10.10.10.10
                                            [service_description] => Dell OpenManage OOB - Model Service Tag Information
                                        )

                                    [6] => Array
                                        (
                                            [host_name] => 10.10.10.10
                                            [service_description] => Dell OpenManage OOB - PowerEdge Server
                                        )

                                    [7] => Array
                                        (
                                            [host_name] => 10.10.10.10
                                            [service_description] => Dell OpenManage OOB - Operating System and Firmware Information
                                        )

                                    [8] => Array
                                        (
                                            [host_name] => 10.10.10.10
                                            [service_description] => Dell OpenManage OOB - Model Service Tag Information
                                        )

                                    [9] => Array
                                        (
                                            [host_name] => 10.10.10.10
                                            [service_description] => Dell OpenManage OOB - PowerEdge Server
                                        )

                                    [10] => Array
                                        (
                                            [host_name] => 10.10.10.10
                                            [service_description] => Dell OpenManage OOB - PowerEdge Server
                                        )

                                    [11] => Array
                                        (
                                            [host_name] => 10.10.10.10
                                            [service_description] => Dell OpenManage OOB - Operating System and Firmware Information
                                        )

                                )

                        )

                )

            [dashlets_params_simple_hosts] => Array
                (
                    [localhost] => localhost
                    [10.10.10.10] => 10.10.10.10
                    [10.10.10.10] => 10.10.10.10
                    [10.10.10.10] => 10.10.10.10
                    [10.10.10.10] => 10.10.10.10
                    [10.10.10.10] => 10.10.10.10
                    [10.10.10.10] => 10.10.10.10
                    [10.10.10.10] => 10.10.10.10
                    [10.10.10.10] => 10.10.10.10
                    [10.10.10.10] => 10.10.10.10
                    [10.10.10.10] => 10.10.10.10
                    [10.10.10.10] => 10.10.10.10
                    [10.10.10.10] => 10.10.10.10
                    [10.10.10.10] => 10.10.10.10
                    [10.10.10.10] => 10.10.10.10
                    [10.10.10.10] => 10.10.10.10
                    [10.10.10.10] => 10.10.10.10
                    [10.10.10.10] => 10.10.10.10
                    [10.10.10.10] => 10.10.10.10
                    [10.10.10.10] => 10.10.10.10
                    [10.10.10.10] => 10.10.10.10
                    [10.10.10.10] => 10.10.10.10
                    [10.10.10.10] => 10.10.10.10
                    [10.10.10.10] => 10.10.10.10
                    [10.10.10.10] => 10.10.10.10
                    [10.10.10.10] => 10.10.10.10
                    [10.10.10.10] => 10.10.10.10
                    [10.10.10.10] => 10.10.10.10
                    [10.10.10.10] => 10.10.10.10
                    [10.10.10.10] => 10.10.10.10
                    [10.10.10.10] => 10.10.10.10
                    [10.10.10.10] => 10.10.10.10
                    [10.10.10.10] => 10.10.10.10
                    [10.10.10.10] => 10.10.10.10
                )

            [dashlets_params_simple_hostgroups] => Array
                (
                    [linux-servers] => linux-servers
                )

            [dashlets_params_simple_servicegroups] => Array
                (
                    [all_dell_openmanage_oob_servers] => all_dell_openmanage_oob_servers
                )

        )

    [debug_started_time] => 2019-02-21 09:28:15
    [debug_completed_time] => 2019-02-21 09:32:30
)


MEMORY USED: 4,110,816 Bytes
MEMORY PEAK: 5,013,944 Bytes
As you can see I get timeout on service status API (in the first lines).
I have increase the timeout from 90 to 180 still the same..
When I ran the API (as written in fusion.debug) in fusion CLI I get the currect respond with all the info.
Upgrade to 4.1.7 I don't think this will help.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Fusion don't show alerts from local XI

Post by tgriep »

Edit that server's setting and set the Authentication and the Polling Interval to 600 seconds.
Then in the Admin > System Settings > Data &Polling TAB, set the Polling Subsystem Memory Limit: to 1024M and update the settings.

The following command is the API call that the fusion server is running against the Nagios XI server. I added time to the command so we can see how long it takes to run.

Code: Select all

time curl -XGET http://10.10.10.10/nagiosxi/api/v1/objects/servicestatus?fusekey=<FUSEKEY>&outputtype=xml&user=nagiosadmin&records=1000:0?brevity=1
Try running it and replace the IP address and the <FUSEKEY> to actual values. Let us know how it works out.
Be sure to check out our Knowledgebase for helpful articles and solutions!
elade
Posts: 144
Joined: Wed Mar 28, 2018 6:23 am

Re: Fusion don't show alerts from local XI

Post by elade »

I updated the changes as you asked and so far I don't see the services alerts.
When I ran the CLI command I got the following:

Code: Select all

[4] 3477
[5] 3478
[6] 3479
[3]   Done                    user=nagiosadmin
[5]-  Done                    outputtype=xml
all the services deatiles
real    5m35.013s
user    0m0.012s
sys     0m0.025s
[1]   Done                    time curl -XGET http://10.10.10.10/nagiosxi/api/v1/objects/servicestatus?fusekey=Aa123456
[4]-  Exit 56                 time curl -XGET http://10.10.10.10/nagiosxi/api/v1/objects/servicestatus?fusekey=Aa123456
[6]+  Done                    user=nagiosadmin
Mabye the best way to fix it is to downgrade back to 5.4.12
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Fusion don't show alerts from local XI

Post by tgriep »

The time output shows that it took 5 minutes and 35 seconds to download the service entries.
The polling interval for that server needs to increased to a much higher value.
Try starting out at 900 seconds for that server and increase it further if needed.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked