Re: [Nagios-devel] Purpose of use_syslog

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] Purpose of use_syslog

Post by Guest »

Ahhah! I see the error of my ways.
I just needed to look a bit higher up, basically the write_to_syslog is bei=
ng 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 differ=
ent, 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 i=
f use_syslog is false.
This way I don't double my logging overhead. Now use_syslog means use_sysl=
og only :)

Sincerely,
Steve

________________________________________
From: Steven D. Morrey [[email protected]]
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 facilit=
y, but it is a bit confusing isn't it.
I'm going to take a closer look.

Sincerely,
Steve
________________________________________
From: Jon Angliss [[email protected]]
Sent: Monday, June 01, 2009 8:34 PM
To: [email protected]
Subject: Re: [Nagios-devel] Purpose of use_syslog

On Mon, 1 Jun 2009 09:51:48 -0600, "Steven D. Morrey"
wrote:

>Hi Everyone,
>
>I've decided to take a long hard look at my config files and have a questi=
on 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 i=
nternal 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



---------------------------------------------------------------------------=
---
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
[email protected]
https://lists.sourceforge.net/lists/lis ... gios-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 al=
l 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
[email protected]
https://lists.sourceforge.net/lists/lis ... gios-devel





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