Nagios 3.0.3 cgi problem


#1

Hello.
I’ve got the problem with cgis. When I’ve clicked to any links in nagios web interface, like status.cgi. Apache was said

[code]Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.[/code]

and in logs i saw.

[Wed Sep 10 16:40:42 2008] [error] [client 192.168.1.2] *** glibc detected *** /usr/local/nagios/sbin/status.cgi: free(): invalid pointer: 0x08b71408 ***, referer: http://nagios/nagios/side.html [Wed Sep 10 16:40:42 2008] [error] [client 192.168.1.2] ======= Backtrace: =========, referer: http://nagios/nagios/side.html [Wed Sep 10 16:40:42 2008] [error] [client 192.168.1.2] /lib/libc.so.6[0x49638c], referer: http://nagios/nagios/side.html [Wed Sep 10 16:40:42 2008] [error] [client 192.168.1.2] /lib/libc.so.6(__libc_free+0x6b)[0x49688f], referer: http://nagios/nagios/side.html [Wed Sep 10 16:40:42 2008] [error] [client 192.168.1.2] /usr/local/nagios/sbin/status.cgi[0x806dd96], referer: http://nagios/nagios/side.html [Wed Sep 10 16:40:42 2008] [error] [client 192.168.1.2] /usr/local/nagios/sbin/status.cgi[0x80548f1], referer: http://nagios/nagios/side.html [Wed Sep 10 16:40:42 2008] [error] [client 192.168.1.2] /usr/local/nagios/sbin/status.cgi[0x80490d9], referer: http://nagios/nagios/side.html [Wed Sep 10 16:40:42 2008] [error] [client 192.168.1.2] /lib/libc.so.6(__libc_start_main+0xb3)[0x44bdfb], referer: http://nagios/nagios/side.html [Wed Sep 10 16:40:42 2008] [error] [client 192.168.1.2] /usr/local/nagios/sbin/status.cgi[0x8048fc1], referer: http://nagios/nagios/side.html [Wed Sep 10 16:40:42 2008] [error] [client 192.168.1.2] ======= Memory map: ========, referer: http://nagios/nagios/side.html [Wed Sep 10 16:40:42 2008] [error] [client 192.168.1.2] 0039f000-003a7000 r-xp 00000000 08:12 524290 /lib/libgcc_s-3.2.3-20040701.so.1, referer: http://nagios/nagios/side.html [Wed Sep 10 16:40:42 2008] [error] [client 192.168.1.2] 003a7000-003a8000 rw-p 00007000 08:12 524290 /lib/libgcc_s-3.2.3-20040701.so.1, referer: http://nagios/nagios/side.html [Wed Sep 10 16:40:42 2008] [error] [client 192.168.1.2] 00437000-0054e000 r-xp 00000000 08:12 524300 /lib/libc-2.3.5.so, referer: http://nagios/nagios/side.html [Wed Sep 10 16:40:42 2008] [error] [client 192.168.1.2] 0054e000-00550000 r--p 00117000 08:12 524300 /lib/libc-2.3.5.so, referer: http://nagios/nagios/side.html [Wed Sep 10 16:40:42 2008] [error] [client 192.168.1.2] 00550000-00552000 rw-p 00119000 08:12 524300 /lib/libc-2.3.5.so, referer: http://nagios/nagios/side.html [Wed Sep 10 16:40:42 2008] [error] [client 192.168.1.2] 00552000-00554000 rw-p 00000000 00:00 0, referer: http://nagios/nagios/side.html [Wed Sep 10 16:40:42 2008] [error] [client 192.168.1.2] 00c0d000-00c25000 r-xp 00000000 08:12 524412 /lib/ld-2.3.5.so, referer: http://nagios/nagios/side.html [Wed Sep 10 16:40:42 2008] [error] [client 192.168.1.2] 00c25000-00c26000 r--p 00018000 08:12 524412 /lib/ld-2.3.5.so, referer: http://nagios/nagios/side.html [Wed Sep 10 16:40:42 2008] [error] [client 192.168.1.2] 00c26000-00c27000 rw-p 00019000 08:12 524412 /lib/ld-2.3.5.so, referer: http://nagios/nagios/side.html [Wed Sep 10 16:40:42 2008] [error] [client 192.168.1.2] 08048000-0807d000 r-xp 00000000 08:12 30162972 /usr/local/nagios/sbin/status.cgi, referer: http://nagios/nagios/side.html [Wed Sep 10 16:40:42 2008] [error] [client 192.168.1.2] 0807d000-0807e000 rw-p 00035000 08:12 30162972 /usr/local/nagios/sbin/status.cgi, referer: http://nagios/nagios/side.html [Wed Sep 10 16:40:42 2008] [error] [client 192.168.1.2] 0807e000-08081000 rw-p 00000000 00:00 0, referer: http://nagios/nagios/side.html [Wed Sep 10 16:40:42 2008] [error] [client 192.168.1.2] 08acf000-08d82000 rw-p 00000000 00:00 0, referer: http://nagios/nagios/side.html [Wed Sep 10 16:40:42 2008] [error] [client 192.168.1.2] b7100000-b7121000 rw-p 00082000 00:00 0, referer: http://nagios/nagios/side.html [Wed Sep 10 16:40:42 2008] [error] [client 192.168.1.2] b7121000-b7200000 ---p 000a3000 00:00 0, referer: http://nagios/nagios/side.html [Wed Sep 10 16:40:42 2008] [error] [client 192.168.1.2] b728a000-b75ea000 r--p 00000000 08:12 1327887 /usr/local/nagios/var/status.dat, referer: http://nagios/nagios/side.html [Wed Sep 10 16:40:42 2008] [error] [client 192.168.1.2] b75ea000-b75ec000 rw-p 00000000 00:00 0, referer: http://nagios/nagios/side.html [Wed Sep 10 16:40:42 2008] [error] [client 192.168.1.2] bfff8000-c0000000 rw-p ffffc000 00:00 0, referer: http://nagios/nagios/side.html

What is that? I’ve updated nagios from 2.x to 3.0.3.


#2

Are you sure you have configured apache.conf and cgi.cfg in your /etc/nagios/ folder properly?


#3

Sure, it’s strange problem, sometimes it happened once in a hour, some times once in a day, sometimes this error stay 2-3 hours. I cant resolve thing that cause this error.