Re: [Nagios-devel] Segfault during pre-flight check

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] Segfault during pre-flight check

Post by Guest »

This is a multi-part message in MIME format.

------=_NextPart_000_00EC_01C6A1CE.BA2E28C0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit

Excellent, it works! Thanks for fixing it that fast!

Since we're at it, I'm wondering if you're willing to look at the command
file processing code. I reported some time ago that Nagios were randomly
skipping some passive checks since I set up around 60 hosts to report trough
nsca (Using a tcpwarper) at the same time. Andreas Ericsson replied it was
due to the pipe filling up, which I hardly doubt. From my testing the pipe
start to block at around 1000-1500 passive checks results sent at the same
time, and even if it blocks it shouldn't miss any check (am I wrong on that
assumption?).

If I set max_check_attempts to 1 I get a page every 2-3 hours on average.

Thanks again,

Thomas

> -----Original Message-----
> From: Ethan Galstad [mailto:[email protected]]
> Sent: July 6, 2006 16:58
> To: [email protected]
> Cc: Thomas Guyot-Sionnest
> Subject: Re: [Nagios-devel] Segfault during pre-flight check
>
> Thomas, et al -
>
> I think I've found and fixed this bug. I just posted a
> proposed fix to
> CVS a few moments ago. A new CVS snapshot should be
> available in about
> 10 minutes from the following URL:
>
> http://nagios.sourceforge.net/download/cvs/
>
> When you get a chance, can you grab the latest nagios-2-x-cvs
> tarball,
> compile it, and see if it fixes the segfault? Thanks!
>
> Thomas Guyot-Sionnest wrote:
> > Hi,
> >
> > I'm maintaining a pretty big nagios setup (about 60 hosts/
> 600 services and
> > plan to grow that by 3-4 times). Most of the config is
> using templates to
> > save config lines and maintenance time. Every host has an
> extinfo (one
> > definition for each hostsgroup).
> >
> > Now I started adding services extinfos to do some fancy
> things with e-mail
> > pages, and ran in a strange segfault bug. To explain it
> better I'll give an
> > overview of my config.
> >
> > templates.cfg: This defines all basic hosts, services and
> service extinfo
> > templates.
> >
> > Ex:
> >
> > define service {
> > name generic_service
> > max_check_attempts 3
> > normal_check_interval 300
> > retry_check_interval 60
> > check_period 24x7
> > notification_interval 600
> > notification_period 24x7
> > notification_options c,w,r
> > contact_groups admin
> > register 0
> > }
> >
> > define service {
> > hostgroup_name admin,license,public,web
> > use generic_service
> > name dynamic_service
> > register 0
> > }
> >
> > services.cfg: This defines services based on template above.
> >
> > For ex.:
> >
> > define service {
> > host_name nagios.example.com
> > service_description HTTP
> > servicegroups http_svc
> > check_command check_http!$HOSTADDRESS$
> > use dynamic_service
> > }
> >
> > Will add this services for all hosts in hostsgroups
> admin,license,public,web
> > PLUS host nagios.example.com
> >
> > So far this works fine. Now I add in templates.cfg (Note
> that I removed the
> > ampersand from "illegal_macro_output_chars" for this to work) :
> >
> > define serviceextinfo {
> > name generic_service_ext
> > action_url
> >
> https://nagios.example.com/cgi-bin/exti ... 2&host=$HO
> STNAME$&servic
> > e=$SERVICEDESC$
> > register 0
> > }
> >
> > define serviceextinfo {
> > hostgroup_name admin,license,public,web
> > use generic_service_ext
> > name dynamic_service_ext
> > register 0
> > }
> >
> > And in services.cfg:
> >
> > define serviceextinfo {
> > host_name nagios.example.com
> > service_description HTTP
> > use dynamic_service_ext
> > }
> >
> > Then run:
> >
> > # nagios -v /etc/nagios/nagios.cfg
> >
> > Nagios 2.4
> > Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org)
> > Last Modified: 05-31-2006
> > License: GPL
> >
> > Reading configuration data...
> >
> > Segment

...[email truncated]...


This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked