I have a bit of an issue with Reports PDF generation when the connected user is anything else than nagiosadmin.
As nagiosadmin everything works as expected (pdf is created and listed)
As another Admin (or User), with Admin role, the PDF generation fails as it is trying to access itself as plain http://localhost/nagiosxi.. (which is not available, of course):
error is:
Code: Select all
Failed to create PDF
Verify that your Nagios XI server can connect to the URL:
http://localhost/nagiosxi/reports/availability.php?reportperiod=last24hours&startdate=&enddate=&host=&service=&hostgroup=&servicegroup=&advanced=0&assumeinitialstates=yes&assumestateretention=yes&assumestatesduringdowntime=yes&includesoftstates=no&assumedhoststate=3&assumedservicestate=6&timeperiod=&token=bb595e55312dd40e5b2e688e2a23d399c2644da3&locale=en_US&records=100000&mode=getreport&hideoptions=1&export=1&old_browser_compat=1Code: Select all
10.64.6.129 - - [19/Nov/2021:00:13:48 +0800] "GET /nagiosxi/reports/availability.php?reportperiod=last24hours&startdate=&enddate=&host=&service=&hostgroup=&servicegroup=&advanced=0&assumeinitialstates=yes&assumestateretention=yes&assumestatesduringdowntime=yes&includesoftstates=no&assumedhoststate=3&assumedservicestate=6&timeperiod=&mode=getreport HTTP/1.1" 200 7388
, while as for other user (AD user, connected from same workstation, with Admin role), the request is seen as coming from 127.0.0.1 (localhost, hence the error):
Code: Select all
127.0.0.1 - - [19/Nov/2021:00:13:59 +0800] "GET /nagiosxi/includes/js/jquery/jquery-1.12.4.min.js?1599143639 HTTP/1.1" 200 97179
127.0.0.1 - - [19/Nov/2021:00:13:59 +0800] "GET /nagiosxi/reports/availability.php?reportperiod=last24hours&startdate=&enddate=&host=&service=&hostgroup=&servicegroup=&advanced=0&assumeinitialstates=yes&assumestateretention=yes&assumestatesduringdowntime=yes&includesoftstates=no&assumedhoststate=3&assumedservicestate=6&timeperiod=&token=d32f8546ee46a23cb0cd6fe70052879b77da92a9&locale=en_US&records=100000&mode=getreport&hideoptions=1&export=1&old_browser_compat=1 HTTP/1.1" 200 22785
Code: Select all
/usr/bin/wkhtmltopdf --lowquality --no-outline --footer-spacing 3 --margin-bottom 15mm --footer-font-size 9 --footer-right "Page [page] of [toPage]" --footer-left "2021-11-19 01:24:54" --no-stop-slow-scripts 'http://localhost/nagiosxi/reports/availability.php?reportperiod=last24hours&startdate=&enddate=&host=&service=&hostgroup=&servicegroup=&advanced=0&assumeinitialstates=yes&assumestateretention=yes&assumestatesduringdowntime=yes&includesoftstates=no&assumedhoststate=3&assumedservicestate=6&timeperiod=&token=06f57d6e3e1af9a1502e95c3d553ed636ef2b3f7&locale=en_US&records=100000&mode=getreport&hideoptions=1&export=1&old_browser_compat=1' '/usr/local/nagiosxi/tmp/exportreport-SGET00004-61968c6623e14'
Loading pages (1/6)
[> ] 0%^M[======> ] 10%^MWarning: SSL error ignored
[============> ] 20%^MWarning: SSL error ignored
[=================> ] 29%^M[======================> ] 37%^M[======================> ] 37%^MWarning: SSL error ignored
[=======================> ] 39%^MWarning: SSL error ignored
Warning: SSL error ignored
[=========================> ] 42%^MWarning: SSL error ignored
[==========================> ] 44%^M[===========================> ] 46%^M[=============================> ] 49%^Mload glyph failed err=24 face=0x4be7830, glyph=0
QFontEngine: Glyph neither outline nor bitmap format=0
load glyph failed err=24 face=0x4be7830, glyph=0
QFontEngine: Glyph neither outline nor bitmap format=0
load glyph failed err=24 face=0x4be7830, glyph=0
QFontEngine: Glyph neither outline nor bitmap format=0
load glyph failed err=24 face=0x4be7830, glyph=0
QFontEngine: Glyph neither outline nor bitmap format=0
[================================================> ] 80%^M[=================================================> ] 82%^M[======================================================> ] 90%^MCode: Select all
/usr/bin/wkhtmltopdf --lowquality --no-outline --footer-spacing 3 --margin-bottom 15mm --footer-font-size 9 --footer-right "Page [page] of [toPage]" --footer-left "2021-11-19 01:23:16" --no-stop-slow-scripts 'http://localhost/nagiosxi/reports/availability.php?reportperiod=last24hours&startdate=&enddate=&host=&service=&hostgroup=&servicegroup=&advanced=0&assumeinitialstates=yes&assumestateretention=yes&assumestatesduringdowntime=yes&includesoftstates=no&assumedhoststate=3&assumedservicestate=6&timeperiod=&token=28a325deca02ee6719d654492941040d11972759&locale=en_US&records=100000&mode=getreport&hideoptions=1&export=1&old_browser_compat=1' '/usr/local/nagiosxi/tmp/exportreport-nagiosadmin-61968c0499df3'
Loading pages (1/6)
[> ] 0%^M[======> ] 10%^MWarning: SSL error ignored
[============> ] 20%^MWarning: SSL error ignored
[======================> ] 37%^M[======================> ] 37%^M[=======================> ] 39%^MWarning: SSL error ignored
Warning: SSL error ignored
Warning: SSL error ignored
Warning: SSL error ignored
[========================> ] 41%^M[===========================> ] 45%^M[============================> ] 48%^M[==============================> ] 50%^Mload glyph failed err=24 face=0x53acc80, glyph=0
QFontEngine: Glyph neither outline nor bitmap format=0
load glyph failed err=24 face=0x53acc80, glyph=0
QFontEngine: Glyph neither outline nor bitmap format=0
[=================================> ] 55%^M[===================================================> ] 85%^M[======================================================> ] 90%^M[============================================================] 100%^MCounting pages (2/6)
[============================================================] Object 1 of 1^MResolving links (4/6)
[============================================================] Object 1 of 1^MLoading headers and footers (5/6)
Printing pages (6/6)
[> ] Preparing^M[============================================================] Page 1 of 1^MDone Could let me know where to look to try find the issue?
Thanks!
Sebastian