Running Nagios 1.2 on RH EL3 - FIXED!
Greg Vickers
g.vickers at qut.edu.au
Thu Feb 17 00:19:01 CET 2005
Really? I didn't think that $SERVICESTATEID:hostname:servicename$ macros
were available in Nagios 1.x???
In my situation I am using check_cluster, not check_cluster2. Passing
that long a line to check_cluster was causing the segfault.
Greg
Dan Stromberg wrote:
> UCI/NACS/DCS is using the check_cluster2 with nagios 1.2 without
> segfaults.
>
> On Wed, 2005-02-16 at 15:05 +1000, Greg Vickers wrote:
>
>>Ahhahaha. AHHAHAAHAHA. Cue user error, aka POBKAC...
>>
>>After compiling with --enable-DEBUG(0,1,2) and attaching gdb to this new
>>executable I find:
>>(gdb) bt
>>#0 0x007366d6 in strncpy () from /lib/tls/libc.so.6
>>#1 0x08059906 in get_raw_command_line (
>> cmd=0x9591300
>>"check_service_cluster!CA-R203b!31!32!$SERVICESTATEID:CA-R203b-PC01:Lab
>>PC available$,$SERVICESTATEID:CA-R203b-PC02:Lab PC
>>available$,$SERVICESTATEID:CA-R203b-PC03:Lab PC
>>available$,$SERVICESTATEID:CA-"..., raw_command=0x2d41433a <Address
>>0x2d41433a out of bounds>, buffer_length=858796626) at utils.c:1277
>>
>>Gee, that looks like a cluster check service command for Nagios 2.0...
>>and I'm running a Nagios executable 1.2... gosh could be a buffer
>>overflow! <slaps_self_with_cod>
>>
>>I had converted all my config files to 2.0 and then regressed them to
>>1.2 (a lot of host names had been updated) and missed the cluster check
>>services... duh.
>>
>>Sorry for the hundreds of emails and thanks for the replies and suggestions!
>>
>>Greg
>>
>>C. Bensend wrote:
>>
>>>>I've seen the same behavior using binaries compiled from source and from
>>>>rpm packages.
>>>>
>>>>I've removed the use of any plugins (as well as check_nagios in cgi.cfg)
>>>>and Nagios still fails at the same point.
>>>
>>>
>>>I haven't followed every single email in this thread, so apologies if
>>>this has already been asked...
>>>
>>>There aren't any resource limits on the account you're running Nagios
>>>as that might be kicking in, are there? Open files? Memory limits?
>>>Disk quotas? What groups is the nagios user in? What's the output
>>>of 'ulimit -a'?
>>>
>>>No selinux stuff enabled?
>>>
>>>Benny
>>>
>>>
>>
--
Greg Vickers
Lab Monitor Project Manager
Teaching and Learning Support Services
Information Technology Services
Queensland University of Technology
email: g.vickers at qut.edu.au
phone: (07) 3864 8276
mobile: 0416 001 674, SD #6 6147
CIROS code: 00213J
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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