http://bugzilla.opensuse.org/show_bug.cgi?id=944102 Bug ID: 944102 Summary: Nagios 4.1.0 Apache WWW page fails Classification: openSUSE Product: openSUSE Distribution Version: 13.2 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: bnc-team-screening@forge.provo.novell.com Reporter: archie@dellroad.org QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- After upgrading to the latest nagios and nagios-www RPMs (from 4.0.8-7.3 to 4.1.0-2.1), my Nagios web page no longer works. The error is "Could not read object configuration data!" This error originates from the /usr/lib/nagios/cgi/statusjson.cgi which you can run directly from the command line as root:
$ (export REQUEST_METHOD=GET; /usr/lib/nagios/cgi/statusjson.cgi ) Cache-Control: no-store Pragma: no-cache Last-Modified: Wed, 02 Sep 2015 02:47:06 GMT Expires: Thu, 01 Jan 1970 00:00:00 GMT Content-type: application/json; charset=utf-8
{ "format_version": 0, "result": { "query_time": 1441162026000, "cgi": "statusjson.cgi", "program_start": 0, "type_code": 2, "type_text": "Unable to Open File for Reading", "message": "Error: Could not read some or all object configuration data!" }, ...
It doesn't seem to be a permissions problem though, which is what usually causes this problem; strace(1) reveals no errors:
$ (export REQUEST_METHOD=GET; strace /usr/lib/nagios/cgi/statusjson.cgi >/dev/null ) ... open("/usr/lib/locale/en_US.utf8/LC_NUMERIC", O_RDONLY|O_CLOEXEC) = 4 fstat(4, {st_mode=S_IFREG|0644, st_size=54, ...}) = 0 mmap(NULL, 54, PROT_READ, MAP_PRIVATE, 4, 0) = 0x7fce83051000 close(4) = 0 open("/usr/lib/locale/en_US.utf8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = 4 fstat(4, {st_mode=S_IFREG|0644, st_size=256420, ...}) = 0 mmap(NULL, 256420, PROT_READ, MAP_PRIVATE, 4, 0) = 0x7fce83012000 close(4) = 0 open("/etc/nagios/cgi.cfg", O_RDONLY) = 4 fstat(4, {st_mode=S_IFREG|0644, st_size=12250, ...}) = 0 mmap(NULL, 12250, PROT_READ, MAP_PRIVATE, 4, 0) = 0x7fce8300f000 munmap(0x7fce8300f000, 12250) = 0 close(4) = 0 open("/etc/nagios/nagios.cfg", O_RDONLY) = 4 fstat(4, {st_mode=S_IFREG|0644, st_size=44886, ...}) = 0 mmap(NULL, 44886, PROT_READ, MAP_PRIVATE, 4, 0) = 0x7fce83007000 munmap(0x7fce83007000, 44886) = 0 close(4) = 0 open("/var/lib/nagios/objects.cache", O_RDONLY) = 4 fstat(4, {st_mode=S_IFREG|0644, st_size=102266, ...}) = 0 mmap(NULL, 102266, PROT_READ, MAP_PRIVATE, 4, 0) = 0x7fce82ff9000 munmap(0x7fce82ff9000, 102266) = 0 close(4) = 0 brk(0x164d000) = 0x164d000 write(1, "Cache-Control: no-store\r\nPragma:"..., 4096) = 4096 write(1, " \"hostlist\",\n \"ser"..., 4096) = 4096 write(1, " \"required\": [\n ],"..., 4096) = 4096 write(1, "st\",\n \"required\": [\n "..., 4096) = 4096 write(1, "is triggered.\",\n \"valid_v"..., 4096) = 4096 write(1, "timewarning\": {\n \"des"..., 2913) = 2913 exit_group(-2) = ?
-- You are receiving this mail because: You are on the CC list for the bug.