[mrtg] Adding devices to mrtg.cfg

Courtney, Wrolf Wrolf.Courtney at mtahq.org
Wed Mar 18 13:47:22 CET 2015

Not sure about this. I have 60 devices in MRTG, still using the default storage technique. Each device is in its own .cfg file, and has its own subdirectory under /var/www/mrtg.

My /etc/cron.d/mrtg has:

0-59/5 * * * * root bash -c "ls /etc/mrtg/*.cfg | xargs -l /usr/bin/mrtg"

I let Apache generate an automatic directory listing of /var/www/mrtg.

I use indexmaker to generate a separate index.html in each subdirectory for each .cfg file.

I am sure it would be more efficient to use rrdtool, but I have not seen the need. I could also use multiple cron jobs (get some parallelism), but since the mrtg run completes within five minutes again I have not seen the need.



From: mrtg [mailto:mrtg-bounces+wrolf.courtney=mtahq.org at lists.oetiker.ch] On Behalf Of McDonald, Dan
Sent: Tuesday, March 17, 2015 3:51 PM
To: mrtg at lists.oetiker.ch
Subject: Re: [mrtg] Adding devices to mrtg.cfg

Indexmaker doesn't scale.  Switch to rrdtool as the backend and routers2.cgi as the front end if you are polling more than a dozen or so devices.

From: Rick Silacci <rick at velociter.net<mailto:rick at velociter.net>>
Date: Tuesday, March 17, 2015 at 2:30 PM
To: "mrtg at lists.oetiker.ch<mailto:mrtg at lists.oetiker.ch>" <mrtg at lists.oetiker.ch<mailto:mrtg at lists.oetiker.ch>>
Subject: [mrtg] Adding devices to mrtg.cfg

I'm only able to add 5 IP's. Indexmaker is not creating the html file for anything after that. Also, now when I open any of the html file I get this:

WARNING: content window passed to PrivateBrowsingUtils.isWindowPrivate. Use isContentWindowPrivate instead (but only for frame scripts).
pbu_isWindowPrivate at resource://gre/modules/PrivateBrowsingUtils.jsm:25:14<mailto:pbu_isWindowPrivate at resource://gre/modules/PrivateBrowsingUtils.jsm:25:14>
Observer.prototype.observe at resource://unity/observer.js:77:24<mailto:Observer.prototype.observe at resource://unity/observer.js:77:24>
addTab at chrome://browser/content/tabbrowser.xml:1654:13<mailto:addTab at chrome://browser/content/tabbrowser.xml:1654:13>
loadOneTab at chrome://browser/content/tabbrowser.xml:1385:23<mailto:loadOneTab at chrome://browser/content/tabbrowser.xml:1385:23>
openLinkIn at chrome://browser/content/utilityOverlay.js:331:14<mailto:openLinkIn at chrome://browser/content/utilityOverlay.js:331:14>
openUILinkIn at chrome://browser/content/utilityOverlay.js:200:3<mailto:openUILinkIn at chrome://browser/content/utilityOverlay.js:200:3>
BrowserOpenTab at chrome://browser/content/browser.js:11213:3<mailto:BrowserOpenTab at chrome://browser/content/browser.js:11213:3>
BrowserOpenNewTabOrWindow at chrome://browser/content/browser.js:16738:5<mailto:BrowserOpenNewTabOrWindow at chrome://browser/content/browser.js:16738:5>
oncommand at chrome://browser/content/browser.xul:1:1<mailto:oncommand at chrome://browser/content/browser.xul:1:1>

Rick Silacci
Velociter Wireless
1525 Second Street
Escalon, CA
O 209.838.1221
F 209.838.1800

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.oetiker.ch/pipermail/mrtg/attachments/20150318/cb344bca/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 3715 bytes
Desc: image001.jpg
URL: <http://lists.oetiker.ch/pipermail/mrtg/attachments/20150318/cb344bca/attachment-0001.jpg>

More information about the mrtg mailing list