Purpose of use_syslog

Steven D. Morrey smorrey at ldschurch.org
Tue Jun 2 17:07:48 CEST 2009


Ahhah! I see the error of my ways.
I just needed to look a bit higher up, basically the write_to_syslog is being called from both logging functions, and the use_syslog option is checked only in the write_to_syslog function as a sort of bail out point.
That makes sense, but I wanted the option to mean something a little different, so now I've modified the write_to_all_logs and write_to_all_logs_with_timestamp to check for use_syslog and only write out the regular log file if use_syslog is false.
This way I don't double my logging overhead.  Now use_syslog means use_syslog only :)

Sincerely,
Steve

________________________________________
From: Steven D. Morrey [smorrey at ldschurch.org]
Sent: Tuesday, June 02, 2009 8:53 AM
To: Nagios Developers List
Subject: Re: [Nagios-devel] Purpose of use_syslog

Odd, when I read it, it looked like use_syslog only used the syslog facility, but it is a bit confusing isn't it.
I'm going to take a closer look.

Sincerely,
Steve
________________________________________
From: Jon Angliss [jon at netdork.net]
Sent: Monday, June 01, 2009 8:34 PM
To: nagios-devel at lists.sourceforge.net
Subject: Re: [Nagios-devel] Purpose of use_syslog

On Mon, 1 Jun 2009 09:51:48 -0600, "Steven D. Morrey"
<smorrey at ldschurch.org> wrote:

>Hi Everyone,
>
>I've decided to take a long hard look at my config files and have a question about some of the options.
>In particular I'd like a little more information on the use_syslog option.
>
>If enabled does this option use syslog instead of, or in addition to the internal log?

Documentation doesn't make it entirely clear, but a quick peek into
base/logging.c hints that use_syslog means it will log to both when
set to 1, at least that's how I'm reading the code.

--
Jonathan Angliss
<jon at netdork.net>


------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


 NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.



------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get




More information about the Developers mailing list