<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:Courier New,courier,monaco,monospace,sans-serif;font-size:12pt"><div style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-size: 12pt;"><br><div style="font-family: courier,monaco,monospace,sans-serif; font-size: 12pt;">Andreas Ericsson wrote:<br>>I like the current behaviour, but I'd accept a patch to take 'only' or something<br>>as an argument to "use_syslog" to make the behaviour you're talking about happen.<br>><br>>Do note that history browsing won't work in the CGI's if nagios.log doesn't get<br>>written at all, so this option should very, very clearly be marked in such a way<br>>that unsuspecting new users don't shoot themselves in the foot. Recreating a<br>>proper nagios.log from the syslog messages is ofcourse possible, but I'd rather<br>>avoid having to try it if at all possible. Especially given
 most distributions<br>>tendency to only keep syslog files around for four weeks before rotating them<br>>into oblivion. Four weeks means users that want availability reports on a month<br>>or so won't even realize the data they need isn't where it should be before it<br>>doesn't exist anymore. Bad Thing(tm) indeed.<br><br>I agree totally, but have a slightly related comment.<br><br>When using a supervisory process manager, like runit runsv(dir), you really do not<br>want any output to appear on the console. To my knowledge there is currently no way<br>to run Nagios in the foreground and not have any output on the console. During<br>startup you always get something similar to this:<br><br>    Nagios 3.0.6<br>    <span>Copyright (c) 1999-2008 Ethan Galstad (<a target="_blank" href="http://www.nagios.org">http://www.nagios.org</a>)</span><br>    Last Modified: 12-01-2008<br>   
 License: GPL<br>    <br>    Nagios 3.0.6 starting... (PID=2071)<br>    Local time is Fri Jun 05 12:26:53 CEST 2009<br><br>My first expectation on use_syslog was at least to get rid of this output.<br>
<br>Of cause, you may catch console messages when using a process supervisor and<br>
setup an alternative log daemon for them, but if you want them to end up in<br>syslog that's quite awkward. Further more, redirection to /dev/null does not<br>play well with process supervisors.<br>
<br>use_syslog is probaly not the best fix for this, since you probably want to<br>control the Nagios log output in conjuction with a process manager. Maybe a<br>no_console or a --quiet startup flag is better suited.<br><br>/S-G<br>________________________________________________________<br>Sven-Göran Bergh, Systemasis AB<br>________________________________________________________<br>
<br></div></div></div><br>
      <hr size=1>
Låna pengar utan säkerhet.<br>
<a href=http://www.kelkoo.se/c-100390123-lan-utan-sakerhet.html?partnerId=96915014>Sök och jämför lån hos Kelkoo.</a></body></html>