This is wget without the ignore-cert switch and tail of the log:
Code: Select all
[root@twnagios3 ~]# wget "https://localhost/nagiosxi/reports/sla.php?host=&showdetail=0&export=1&reportperiod=last24hours&startdate=&enddate=&service=&hostgroup=&servicegroup=&slalevel=95&advanced=0&assumeinitialstates=yes&assumestateretention=yes&assumestatesduringdowntime=yes&includesoftstates=no&assumedhoststate=3&assumedservicestate=6&timeperiod=&token=7012401474facd9ef78e76b7bdea2348e922a732&locale=en_US&records=100000&mode=getreport&hideoptions=1&old_browser_compat=1"
--2019-07-17 16:04:40-- https://localhost/nagiosxi/reports/sla.php?host=&showdetail=0&export=1&reportperiod=last24hours&startdate=&enddate=&service=&hostgroup=&servicegroup=&slalevel=95&advanced=0&assumeinitialstates=yes&assumestateretention=yes&assumestatesduringdowntime=yes&includesoftstates=no&assumedhoststate=3&assumedservicestate=6&timeperiod=&token=7012401474facd9ef78e76b7bdea2348e922a732&locale=en_US&records=100000&mode=getreport&hideoptions=1&old_browser_compat=1
Resolving localhost (localhost)... ::1, IPOFSERVER
Connecting to localhost (localhost)|::1|:443... connected.
ERROR: cannot verify localhost's certificate, issued by ‘/DC=removed/DC=removed/CN=Private-CA’:
Unable to locally verify the issuer's authority.
ERROR: no certificate subject alternative name matches
requested host name ‘localhost’.
To connect to localhost insecurely, use `--no-check-certificate'.
[root@twnagios3 ~]# tail -f /var/log/httpd/*error_log
==> /var/log/httpd/error_log <==
Length: 825 [text/html]
Saving to: '/usr/local/nagiosxi/tmp/scheduledreport-myusername-hTpFtKCBF93L-1563227539-SLA.pdf'
0K 100% 6.59M=0s
2019-07-16 09:52:20 (6.59 MB/s) - '/usr/local/nagiosxi/tmp/scheduledreport-myusername-hTpFtKCBF93L-1563227539-SLA.pdf' saved [825/825]
The switch --no-outline, is not support using unpatched qt, and will be ignored.The switch --footer-spacing, is not support using unpatched qt, and will be ignored.The switch --footer-font-size, is not support using unpatched qt, and will be ignored.The switch --footer-right, is not support using unpatched qt, and will be ignored.The switch --footer-left, is not support using unpatched qt, and will be ignored.wkhtmltopdf: cannot connect to X server
The switch --no-outline, is not support using unpatched qt, and will be ignored.The switch --footer-spacing, is not support using unpatched qt, and will be ignored.The switch --footer-font-size, is not support using unpatched qt, and will be ignored.The switch --footer-right, is not support using unpatched qt, and will be ignored.The switch --footer-left, is not support using unpatched qt, and will be ignored.wkhtmltopdf: cannot connect to X server
The switch --no-outline, is not support using unpatched qt, and will be ignored.The switch --footer-spacing, is not support using unpatched qt, and will be ignored.The switch --footer-font-size, is not support using unpatched qt, and will be ignored.The switch --footer-right, is not support using unpatched qt, and will be ignored.The switch --footer-left, is not support using unpatched qt, and will be ignored.wkhtmltopdf: cannot connect to X server
==> /var/log/httpd/ssl_error_log <==
[Wed Jul 17 13:02:47.629253 2019] [:error] [pid 48560] [client IP:50430] PHP Warning: array_multisort(): Argument #1 is expected to be an array or a sort flag in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: https://twnagios3/nagiosxi/login.php
[Wed Jul 17 13:02:47.629273 2019] [:error] [pid 48560] [client IP:50430] PHP Notice: Undefined variable: home in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: https://twnagios3/nagiosxi/login.php
[Wed Jul 17 13:02:47.632092 2019] [:error] [pid 48560] [client IP:50430] PHP Warning: array_multisort(): Argument #1 is expected to be an array or a sort flag in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: https://twnagios3/nagiosxi/login.php
[Wed Jul 17 13:02:47.632479 2019] [:error] [pid 48560] [client IP:50430] PHP Warning: array_multisort(): Argument #1 is expected to be an array or a sort flag in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: https://twnagios3/nagiosxi/login.php
[Wed Jul 17 15:53:54.854643 2019] [:error] [pid 48560] [client IP:56265] PHP Warning: simplexml_load_string(): Entity: line 25: parser error : StartTag: invalid element name in /usr/local/nagiosxi/html/includes/utils-systat.inc.php on line 17, referer: https://twnagios3.domain.forest/nagiosxi/reports/
[Wed Jul 17 15:53:54.854754 2019] [:error] [pid 48560] [client IP:56265] PHP Warning: simplexml_load_string(): nagios[27854]: SERVICE ALERT: TWVOIPSUB1;CPU Usage;OK;SOFT;2;1 CPU, load 26.0% < in /usr/local/nagiosxi/html/includes/utils-systat.inc.php on line 17, referer: https://twnagios3.domain.forest/nagiosxi/reports/
[Wed Jul 17 15:53:54.854781 2019] [:error] [pid 48560] [client IP:56265] PHP Warning: simplexml_load_string(): ^ in /usr/local/nagiosxi/html/includes/utils-systat.inc.php on line 17, referer: https://twnagios3.domain.forest/nagiosxi/reports/
[Wed Jul 17 15:53:54.951750 2019] [:error] [pid 76086] [client IP:56269] PHP Warning: simplexml_load_string(): Entity: line 25: parser error : StartTag: invalid element name in /usr/local/nagiosxi/html/includes/utils-systat.inc.php on line 17, referer: https://twnagios3.domain.forest/nagiosxi/reports/
[Wed Jul 17 15:53:54.951820 2019] [:error] [pid 76086] [client IP:56269] PHP Warning: simplexml_load_string(): nagios[27854]: SERVICE ALERT: TWVOIPSUB1;CPU Usage;OK;SOFT;2;1 CPU, load 26.0% < in /usr/local/nagiosxi/html/includes/utils-systat.inc.php on line 17, referer: https://twnagios3.domain.forest/nagiosxi/reports/
[Wed Jul 17 15:53:54.951842 2019] [:error] [pid 76086] [client IP:56269] PHP Warning: simplexml_load_string(): ^ in /usr/local/nagiosxi/html/includes/utils-systat.inc.php on line 17, referer: https://twnagios3.domain.forest/nagiosxi/reports/
This is wget with the ignore-cert switch and tail of the log:
Code: Select all
[root@twnagios3 ~]# wget --no-check-certificate "https://localhost/nagiosxi/reports/sla.php?host=&showdetail=0&export=1&reportperiod=last24hours&startdate=&enddate=&service=&hostgroup=&servicegroup=&slalevel=95&advanced=0&assumeinitialstates=yes&assumestateretention=yes&assumestatesduringdowntime=yes&includesoftstates=no&assumedhoststate=3&assumedservicestate=6&timeperiod=&token=7012401474facd9ef78e76b7bdea2348e922a732&locale=en_US&records=100000&mode=getreport&hideoptions=1&old_browser_compat=1"
--2019-07-17 16:10:02-- https://localhost/nagiosxi/reports/sla.php?host=&showdetail=0&export=1&reportperiod=last24hours&startdate=&enddate=&service=&hostgroup=&servicegroup=&slalevel=95&advanced=0&assumeinitialstates=yes&assumestateretention=yes&assumestatesduringdowntime=yes&includesoftstates=no&assumedhoststate=3&assumedservicestate=6&timeperiod=&token=7012401474facd9ef78e76b7bdea2348e922a732&locale=en_US&records=100000&mode=getreport&hideoptions=1&old_browser_compat=1
Resolving localhost (localhost)... ::1, IPOFSERVER
Connecting to localhost (localhost)|::1|:443... connected.
WARNING: cannot verify localhost's certificate, issued by ‘/DC=removed/DC=removed/CN=Private-CA’:
Unable to locally verify the issuer's authority.
WARNING: no certificate subject alternative name matches
requested host name ‘localhost’.
HTTP request sent, awaiting response... 200 OK
Length: 27 [text/html]
sla.php?host=&showdetail=0&export=1&reportperiod=last24hours&startdate=&enddate=&service=&hostgroup=&servicegroup=&slalevel=95&advanced=0&assumeinitialstates=yes&assumestateretention=yes&assumestatesduringdowntime=yes&includesoftstates=no&assumedhoststate=3&assumedservicestate=6&timeperiod=&token=7012401474facd9ef78e76b7bdea2348e922a732&locale=en_US&records=100000&mode=getreport&hideoptions=1&old_browser_compat=1: File name too long
Cannot write to ‘sla.php?host=&showdetail=0&export=1&reportperiod=last24hours&startdate=&enddate=&service=&hostgroup=&servicegroup=&slalevel=95&advanced=0&assumeinitialstates=yes&assumestateretention=yes&assumestatesduringdowntime=yes&includesoftstates=no&assumedhoststate=3&assumedservicestate=6&timeperiod=&token=7012401474facd9ef78e76b7bdea2348e922a732&locale=en_US&records=100000&mode=getreport&hideoptions=1&old_browser_compat=1’ (Success).
[root@twnagios3 ~]# tail -f /var/log/httpd/*error_log
==> /var/log/httpd/error_log <==
Length: 825 [text/html]
Saving to: '/usr/local/nagiosxi/tmp/scheduledreport-username-hTpFtKCBF93L-1563227539-SLA.pdf'
0K 100% 6.59M=0s
2019-07-16 09:52:20 (6.59 MB/s) - '/usr/local/nagiosxi/tmp/scheduledreport-username-hTpFtKCBF93L-1563227539-SLA.pdf' saved [825/825]
The switch --no-outline, is not support using unpatched qt, and will be ignored.The switch --footer-spacing, is not support using unpatched qt, and will be ignored.The switch --footer-font-size, is not support using unpatched qt, and will be ignored.The switch --footer-right, is not support using unpatched qt, and will be ignored.The switch --footer-left, is not support using unpatched qt, and will be ignored.wkhtmltopdf: cannot connect to X server
The switch --no-outline, is not support using unpatched qt, and will be ignored.The switch --footer-spacing, is not support using unpatched qt, and will be ignored.The switch --footer-font-size, is not support using unpatched qt, and will be ignored.The switch --footer-right, is not support using unpatched qt, and will be ignored.The switch --footer-left, is not support using unpatched qt, and will be ignored.wkhtmltopdf: cannot connect to X server
The switch --no-outline, is not support using unpatched qt, and will be ignored.The switch --footer-spacing, is not support using unpatched qt, and will be ignored.The switch --footer-font-size, is not support using unpatched qt, and will be ignored.The switch --footer-right, is not support using unpatched qt, and will be ignored.The switch --footer-left, is not support using unpatched qt, and will be ignored.wkhtmltopdf: cannot connect to X server
==> /var/log/httpd/ssl_error_log <==
[Wed Jul 17 13:02:47.629253 2019] [:error] [pid 48560] [client IP:50430] PHP Warning: array_multisort(): Argument #1 is expected to be an array or a sort flag in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: https://twnagios3/nagiosxi/login.php
[Wed Jul 17 13:02:47.629273 2019] [:error] [pid 48560] [client IP:50430] PHP Notice: Undefined variable: home in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: https://twnagios3/nagiosxi/login.php
[Wed Jul 17 13:02:47.632092 2019] [:error] [pid 48560] [client IP:50430] PHP Warning: array_multisort(): Argument #1 is expected to be an array or a sort flag in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: https://twnagios3/nagiosxi/login.php
[Wed Jul 17 13:02:47.632479 2019] [:error] [pid 48560] [client IP:50430] PHP Warning: array_multisort(): Argument #1 is expected to be an array or a sort flag in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: https://twnagios3/nagiosxi/login.php
[Wed Jul 17 15:53:54.854643 2019] [:error] [pid 48560] [client IP:56265] PHP Warning: simplexml_load_string(): Entity: line 25: parser error : StartTag: invalid element name in /usr/local/nagiosxi/html/includes/utils-systat.inc.php on line 17, referer: https://twnagios3.domain.forest/nagiosxi/reports/
[Wed Jul 17 15:53:54.854754 2019] [:error] [pid 48560] [client IP:56265] PHP Warning: simplexml_load_string(): nagios[27854]: SERVICE ALERT: TWVOIPSUB1;CPU Usage;OK;SOFT;2;1 CPU, load 26.0% < in /usr/local/nagiosxi/html/includes/utils-systat.inc.php on line 17, referer: https://twnagios3.domain.forest/nagiosxi/reports/
[Wed Jul 17 15:53:54.854781 2019] [:error] [pid 48560] [client IP:56265] PHP Warning: simplexml_load_string(): ^ in /usr/local/nagiosxi/html/includes/utils-systat.inc.php on line 17, referer: https://twnagios3.domain.forest/nagiosxi/reports/
[Wed Jul 17 15:53:54.951750 2019] [:error] [pid 76086] [client IP:56269] PHP Warning: simplexml_load_string(): Entity: line 25: parser error : StartTag: invalid element name in /usr/local/nagiosxi/html/includes/utils-systat.inc.php on line 17, referer: https://twnagios3.domain.forest/nagiosxi/reports/
[Wed Jul 17 15:53:54.951820 2019] [:error] [pid 76086] [client IP:56269] PHP Warning: simplexml_load_string(): nagios[27854]: SERVICE ALERT: TWVOIPSUB1;CPU Usage;OK;SOFT;2;1 CPU, load 26.0% < in /usr/local/nagiosxi/html/includes/utils-systat.inc.php on line 17, referer: https://twnagios3.domain.forest/nagiosxi/reports/
[Wed Jul 17 15:53:54.951842 2019] [:error] [pid 76086] [client IP:56269] PHP Warning: simplexml_load_string(): ^ in /usr/local/nagiosxi/html/includes/utils-systat.inc.php on line 17, referer: https://twnagios3.domain.forest/nagiosxi/reports/