External Commands segfault

Andreas Ericsson ae at op5.se
Wed Nov 1 12:59:58 CET 2006


David Schlecht wrote:
> Hi Andreas				
> 
> A new backtrace follows. This doesn't show the same segmentation issues as the first and to my untrained eye, doesn't show a problem. However, this stack causes the same "hung" state in cmd.cgi. Any ideas?
> 
> (gdb) bt
> #0  0x002de7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
> #1  0x003b4eb3 in __open_nocancel () from /lib/tls/libc.so.6
> #2  0x0035854d in _IO_new_file_fopen () from /lib/tls/libc.so.6
> #3  0x0034f0c9 in __fopen_internal () from /lib/tls/libc.so.6
> #4  0x0034f11d in fopen@@GLIBC_2.1 () from /lib/tls/libc.so.6
> #5  0x0804b6e0 in write_command_to_file (
>     cmd=0xbfeb4d00 "[1162238036] SCHEDULE_AND_PROPAGATE_HOST_DOWNTIME;www.state.nv.us;1162237988;1162238108;1;0;7200;David Schlecht;test\n") at cmd.c:2183
> #6  0x0804b843 in commit_command (cmd=55) at cmd.c:2155
> #7  0x0804ce69 in commit_command_data (cmd=55) at cmd.c:1798
> #8  0x0804d358 in main () at cmd.c:215
> (gdb)
> 

It seems it hangs when trying to write to the FIFO. Since the pipe is a 
resource bottle-neck (only 4KiB data can be "stored" in it at any one 
time), you've probably run into this problem. How many hosts/services 
are you monitoring? More importantly, how many checks are running per 
second?

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list