Re: [Nagios-devel] Nagios appending when told to write?

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] Nagios appending when told to write?

Post by Guest »

Thomas Guyot-Sionnest wrote:
> I just seen this from a strace:
>
> open("/path/to/service-perfdata.fifo",
> O_WRONLY|O_APPEND|O_CREAT|O_LARGEFILE, 0666
>
> My /path/to/service-perfdata.fifo is set to be oppened normally instead of
> O_APPEND by this directive:
>
> service_perfdata_file_mode=w
>
> Is that a bug?
>
> Thomas

Looks like the system is adding the O_APPEND flag, since Nagios just
used fopen() with "a" or "w" values. Is it working okay? AFAIK,
appending to a pipe/fifo should work just fine.


Ethan Galstad,
Nagios Developer
---
Email: [email protected]
Website: http://www.nagios.org





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