Segmentation Fault

Jake Burns jburns at sag.org
Wed Nov 12 20:49:01 CET 2003


The problem ended up being with check_ping.  I replaced it with my own version and the Segmentation Faults have gone away.

> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net
> [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of 
> Jake Burns
> Sent: Tuesday, November 11, 2003 4:12 PM
> To: Marc Powell; nagios-users at lists.sourceforge.net
> Subject: RE: [Nagios-users] Segmentation Fault
> 
> 
> Marc,
> 
> Thanks for the reply.  The plugins run fine when executed 
> from the command line as the nagios user.
> 
> JB
> 
> -----Original Message-----
> From: Marc Powell [mailto:mpowell at ena.com]
> Sent: Tuesday, November 11, 2003 4:01 PM
> To: Jake Burns; nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] Segmentation Fault
> 
> 
> Have you tried running the plugins in question from the 
> command line as the nagios user? As host checks are never run 
> _until_ a service on that host fails, there could be 
> something inherently wrong with the execution of the plugin. 
> If you see segfaults when running it from the command line 
> then I would suggest using truss with -fea to dig deeper. 
> Chances are it can't open or find a file or library it needs 
> when run as the nagios user.
> 
> 
> 
> 
> --
> Marc
> 
> -----Original Message-----
> From: Jake Burns <jburns at sag.org>
> To: nagios-users at lists.sourceforge.net 
> <nagios-users at lists.sourceforge.net>
> Sent: Tue Nov 11 17:38:58 2003
> Subject: [Nagios-users] Segmentation Fault
> 
> Hi,
> 
> I'm running Nagios 1.1 with Nagios Plugins 1.3.1 under 
> Solaris 8/SPARC.  Host/service checks run fine until a check 
> fails.  When the host/service becomes available again Nagios 
> never reports it as being UP.  Instead it keeps reporting it 
> as DOWN and I get Segmentation Fault messages every time the 
> plugin runs from Nagios (running in the foreground).
> 
> This behavior happens using both a standard Nagios plugin 
> (check_http) and with a custom plugin I wrote.
> 
> I've searched the documentation and FAQ but found no mention 
> of this particular problem.  Any suggestions, information, or 
> advice would be greatly appreciated.
> 
> Thanks
> JB
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email sponsored by: ApacheCon 2003,
> 16-19 November in Las Vegas. Learn firsthand the latest
> developments in Apache, PHP, Perl, XML, Java, MySQL,
> WebDAV, and more! http://www.apachecon.com/
> _______________________________________________
> 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
> 
> 
> -------------------------------------------------------
> This SF.Net email sponsored by: ApacheCon 2003,
> 16-19 November in Las Vegas. Learn firsthand the latest
> developments in Apache, PHP, Perl, XML, Java, MySQL,
> WebDAV, and more! http://www.apachecon.com/
> _______________________________________________
> 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
> 


-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
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