<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Logrotate on Karpoke - Just Another Blog</title><link>http://karpoke.ignaciocano.com/tags/logrotate/</link><description>Recent content in Logrotate on Karpoke - Just Another Blog</description><generator>Hugo -- 0.159.0</generator><language>es</language><lastBuildDate>Fri, 22 Mar 2013 21:31:00 +0100</lastBuildDate><atom:link href="http://karpoke.ignaciocano.com/tags/logrotate/index.xml" rel="self" type="application/rss+xml"/><item><title>Solucionado el error «error: error running non-shared postrotate script for /var/log/samba/log.nmbd of '/var/log/samba/log.nmbd '»</title><link>http://karpoke.ignaciocano.com/2013/03/22/solucionado-el-error-error-error-running-non-shared-postrotate-script-for-varlogsambalog-nmbd-of-varlogsambalog-nmbd/</link><pubDate>Fri, 22 Mar 2013 21:31:00 +0100</pubDate><guid>http://karpoke.ignaciocano.com/2013/03/22/solucionado-el-error-error-error-running-non-shared-postrotate-script-for-varlogsambalog-nmbd-of-varlogsambalog-nmbd/</guid><description>&lt;p&gt;Si nos encontramos con el siguiente error:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;error: error running non-shared postrotate script for /var/log/samba/log.nmbd of &amp;#39;/var/log/samba/log.nmbd &amp;#39;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;En Ubuntu 12.04.2, con la versión de &lt;code&gt;samba&lt;/code&gt; 3.6.3, podría producirse
cuando el &lt;a href="http://dev-eole.ac-dijon.fr/issues/4524"&gt;&lt;em&gt;script&lt;/em&gt; de &lt;code&gt;logrotate&lt;/code&gt; para &lt;code&gt;samba&lt;/code&gt;&lt;/a&gt;
intenta hacer un &lt;code&gt;reload&lt;/code&gt; del servicio &lt;code&gt;nmbd&lt;/code&gt; y éste no está en ejecución.
Necesita un pequeño cambio en los comandos utilizados en la directiva &lt;code&gt;postrotate&lt;/code&gt;:
deberemos cambiar &lt;code&gt;reload&lt;/code&gt; por &lt;code&gt;reload --quiet&lt;/code&gt;, quedando finalmente así
las respectivas líneas en el fichero &lt;code&gt;/etc/logrorate.d/samba&lt;/code&gt;:&lt;/p&gt;</description></item><item><title>Solucionado el error «error: nagiosgrapher:1 duplicate log entry for /var/log/nagiosgrapher/ngraph.log»</title><link>http://karpoke.ignaciocano.com/2013/03/20/solucionado-el-error-error-nagiosgrapher1-duplicate-log-entry-for-varlognagiosgrapherngraph-log/</link><pubDate>Wed, 20 Mar 2013 21:08:00 +0100</pubDate><guid>http://karpoke.ignaciocano.com/2013/03/20/solucionado-el-error-error-nagiosgrapher1-duplicate-log-entry-for-varlognagiosgrapherngraph-log/</guid><description>&lt;p&gt;&lt;code&gt;nagiosgrapher&lt;/code&gt; es un programa que recoge la información de Nagios y
crea una serie de gráficos a partir de ella.&lt;/p&gt;
&lt;p&gt;En Ubuntu 12.04.2, la versión instalada desde los repositorios, 1.7.1-3,
tiene un pequeño fallo, de tal manera que
&lt;a href="https://bugs.launchpad.net/ubuntu/+source/nagiosgrapher/+bug/466671"&gt;&lt;code&gt;logrotate&lt;/code&gt; arroja el siguiente error&lt;/a&gt;:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;error: nagiosgrapher:1 duplicate log entry for /var/log/nagiosgrapher/ngraph.log
error: found error in /var/log/nagiosgrapher/ngraph.log , skipping
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;El fallo está corregido a partir de la versión 1.7.2.&lt;/p&gt;
&lt;p&gt;Podemos confirmar el fallo si vemos que &lt;code&gt;nagiosgrapher&lt;/code&gt; instala dos
archivos como los siguientes en el directorio de &lt;code&gt;logrotate&lt;/code&gt;:&lt;/p&gt;</description></item></channel></rss>