I tried to fused an XI server which is in https with self signed certificate (based on your manual).
The XI is working OK with https.
When I run the "Test Fusion Settings" when URL in https I get errors but when I change the URL to http the test return OK.
When I poll in debug mode when the URL in http I can see all the tables and info.
When I poll in debug mode when the URL in https I get the following:
Code: Select all
root@nagiosfusion:/home/nagiosfusionuser# /usr/local/nagiosfusion/cron/poll_subsys.php --debug --server 58 --user opsec_user
PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /usr/local/nagiosfusion/html/includes/components/fusioncore/fusioncore.inc.php on line 259
OPERATING IN DEBUG MODE
2022-01-18 16:20:43[s: 0, u: 0] poll_server() unable to poll data for s:my_env, u:my_user, poll:nagiosxi_bpi
2022-01-18 16:20:43[s: 0, u: 0] poll_server() CHECK YOUR LIVE_DATA_TIMEOUT SETTINGS. IT MAY NEED TO BE INCREASED
2022-01-18 16:20:43[s: 0, u: 0] poll_server() unable to poll data for s:my_env, u:my_user, poll:hoststatus
2022-01-18 16:20:43[s: 0, u: 0] poll_server() CHECK YOUR LIVE_DATA_TIMEOUT SETTINGS. IT MAY NEED TO BE INCREASED
2022-01-18 16:20:44[s: 0, u: 0] poll_server() unable to poll data for s:my_env, u:my_user, poll:servicestatus
2022-01-18 16:20:44[s: 0, u: 0] poll_server() CHECK YOUR LIVE_DATA_TIMEOUT SETTINGS. IT MAY NEED TO BE INCREASED
2022-01-18 16:20:44[s: 0, u: 0] poll_server() unable to poll data for s:my_env, u:my_user, poll:status
2022-01-18 16:20:44[s: 0, u: 0] poll_server() CHECK YOUR LIVE_DATA_TIMEOUT SETTINGS. IT MAY NEED TO BE INCREASED
2022-01-18 16:20:45[s: 0, u: 0] poll_server() unable to poll data for s:my_env, u:my_user, poll:user
2022-01-18 16:20:45[s: 0, u: 0] poll_server() CHECK YOUR LIVE_DATA_TIMEOUT SETTINGS. IT MAY NEED TO BE INCREASED
2022-01-18 16:20:45[s: 0, u: 0] poll_server() unable to poll data for s:my_env, u:my_user, poll:info
2022-01-18 16:20:45[s: 0, u: 0] poll_server() CHECK YOUR LIVE_DATA_TIMEOUT SETTINGS. IT MAY NEED TO BE INCREASED
2022-01-18 16:20:46[s: 0, u: 0] poll_server() unable to poll data for s:my_env, u:my_user, poll:alerts
2022-01-18 16:20:46[s: 0, u: 0] poll_server() CHECK YOUR LIVE_DATA_TIMEOUT SETTINGS. IT MAY NEED TO BE INCREASED
2022-01-18 16:20:46[s: 0, u: 0] poll_server() unable to poll data for s:my_env, u:my_user, poll:hostgroupmembers
2022-01-18 16:20:46[s: 0, u: 0] poll_server() CHECK YOUR LIVE_DATA_TIMEOUT SETTINGS. IT MAY NEED TO BE INCREASED
2022-01-18 16:20:47[s: 0, u: 0] poll_server() unable to poll data for s:my_env, u:my_user, poll:hostgroup
2022-01-18 16:20:47[s: 0, u: 0] poll_server() CHECK YOUR LIVE_DATA_TIMEOUT SETTINGS. IT MAY NEED TO BE INCREASED
2022-01-18 16:20:47[s: 0, u: 0] poll_server() unable to poll data for s:my_env, u:my_user, poll:servicegroup
2022-01-18 16:20:47[s: 0, u: 0] poll_server() CHECK YOUR LIVE_DATA_TIMEOUT SETTINGS. IT MAY NEED TO BE INCREASED
2022-01-18 16:20:48[s: 0, u: 0] poll_server() unable to poll data for s:my_env, u:my_user, poll:servicegroupmembers
2022-01-18 16:20:48[s: 0, u: 0] poll_server() CHECK YOUR LIVE_DATA_TIMEOUT SETTINGS. IT MAY NEED TO BE INCREASED
SERVER: my_env
USERNAME: my_user
POLLED_DATA:
Array
(
[server_id] => 58
[server_type] => 1
[authentication_type] => 0
[username] => my_user
[polled_time] => 1642522843
[data] => Array
(
)
[debug_started_time] => 2022-01-18 16:20:43
[debug_completed_time] => 2022-01-18 16:20:48
)
MEMORY USED: 5,172,320 Bytes
MEMORY PEAK: 5,346,936 Bytes
Code: Select all
curl -XGET https://10.10.10.10/nagiosxi/api/v1/system/status?fusekey=ABCD -k -v
Note: Unnecessary use of -X or --request, GET is already inferred.
* Trying 10.10.10.10:443...
* TCP_NODELAY set
* Connected to 10.10.10.10 (10.10.10.10) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use http/1.1
* Server certificate:
* subject: C=RO; ST=RO; L=Bucharest; CN=nagiosrss.com
* start date: Dec 14 10:55:15 2021 GMT
* expire date: Dec 12 10:55:15 2031 GMT
* issuer: C=RO; ST=RO; L=Bucharest; CN=nagioserverenv.com
* SSL certificate verify result: self signed certificate (18), continuing anyway.
> GET /nagiosxi/api/v1/system/status?fusekey=ABCD HTTP/1.1
> Host: 10.10.10.10
> User-Agent: curl/7.68.0
> Accept: */*
>
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Date: Tue, 18 Jan 2022 16:12:37 GMT
< Server: Apache/2.4.41 (Ubuntu)
< Access-Control-Allow-Origin: *
< Access-Control-Allow-Methods: POST, GET, OPTIONS, DELETE, PUT
< Content-Length: 835
< Content-Type: application/json
<
{"instance_id":"1","instance_name":"localhost","status_update_time":"2022-01-18 16:12:35","program_start_time":"2022-01-18 16:00:03","program_run_time":"754","program_end_time":"1970-01-01 00:00:01","is_currently_running":"1","process_id":"678925","daemon_mode":"1","last_command_check":"1970-01-01 00:00:00","last_log_rotation":"1970-01-01 00:00:00","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":"0","modified_service_attributes":"0","global_host_event_handler":"xi_host_event_handler","global_service_event_handler":"xi_service_event_handler"}
* Connection #0 to host 10.10.10.10 left intact
Any idea what can be the problem?
XI version - 5.8.7
Fusion - 4.1.9 (also https with self signed certificate)