[mrtg] Problems with forking and rrd
Braendle at medianet.freinet.de
Braendle at medianet.freinet.de
Fri Oct 20 13:17:35 MEST 2000
Hi there,
I have a problem with the combination of running mrtg as daemon and the fork
option.
So I took 2 routers to test the behavior.
I used the following command to create a conf file.
This work quite good and after starting mrtg with:
/usr/local/mrtg-2.9.2/bin/mrtg /usr/local/mrtg-2.9.2/CONF/router1u2.cfg
the appropriate rrd files are created.
Well so far so good. But if i trie to get some ata out of the rrd file e.g.
with 14all.cgi1.1p9 i only get empty graphs.
If i remove the entry "--global "Forks: 2" \" from the conf file that was
created by the following command everything
works.
After 2 or 3 times running mrtg (as daemon) the graphs get filled with the
values I expeected.
/usr/local/mrtg-2.9.2/bin/cfgmaker \
--global "Workdir: /usr/local/mrtg-2.9.2/LOG" \
--global "IconDir: http://gonzo.mn.freinet.de:8080/MRTG/ICONS/" \
--global "PathAdd: /usr/local/Rrdtool/bin" \
--global "LogFormat: rrdtool" \
--global "Refresh: 300" \
--global "Interval: 5" \
--global "RunAsDaemon: Yes" \
--global "Forks: 2" \
xxxxxxx at router1.mn.freinet.de \
xxxxxxx at router2.mn.freinet.de \
--subdirs \
--ifref=descr \
> /usr/local/mrtg-2.9.2/CONF/router1u2.cfg
I`ve also tried the change mentioned by Tobias Oetiker
> aargh this damn forking code ...
>
>can you try to add a close on mrtg line 1579:
>
> $lasthost = $host;
> storeincache($confcache,$host,$method,$key,$value);
> }
> close $h;
> }
>
> } else {
>
>does this help ?
>tobi
But nothing changed.
Thanks in advance for every help.
J. Brändle
--
Juergen Braendle
MediaNet GmbH
Netzwerk- und Applikations-Service
Loerracherstr. 5a
79115 Freiburg
Germany
braendle at medianet.freinet.de
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the mrtg
mailing list