Re: MRTG and RAM Disk

Mick <[email protected]>
Newsgroups gmane.network.mrtg.user
Message-ID <[email protected]>
On Friday 30 Jan 2015 05:13:09 Troy Lea wrote:
> I've been playing around with the idea of having MRTG use a RAM Disk.
> 
> Specifically on Nagios XI and CentOS.
> 
> I've been successfully able to define the current settings and it does work
> well.
> 
> LogDir: /var/nagiosramdisk/mrtg
> ThreshDir: /var/nagiosramdisk/mrtg
> WorkDir: /var/nagiosramdisk/mrtg
> 
> Using the RAM Disk improves performance, especially once you get into 4000+
> ports being queried.
> 
> The only problem I have is when I reboot the server the port files don't
> exist until the MRTG has run the first time. For example these files:
> 
> ub04_93.rrd
> ub04_94.rrd
> ub04_95.rrd
> ub04_96.rrd
> ub04_97.rrd
> ub04_98.rrd
> 
> This causes a problem with the check_rrdtraf program that looks for these
> files. The problem is overcome once MRTG runs the first time.
> 
> I'm wondering if MRTG has an option which will generate all these files
> without actually doing an SNMP query to all the devices.
> 
> Does anyone have any thoughts or suggestions on this topic?
> 
> Cheers
> 
> Troy

Couldn't you change the shutdown script for Nagios/mrtg to save the files to 
disk from ramdisk and then reload them before Nagios is started?

-- 
Regards,
Mick

_______________________________________________
mrtg mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
signature.asc (application/pgp-signature, 473 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAABCAAGBQJUyyVjAAoJELAdA+zwE4YebIQIAJtgS+4AgUTnAKAEyrOEs1oc
8yg+YHuqya8elxy2cE2/qcjRlbepe80rQzpKNwLi1eexNKkLtqqC/GMQ9bu14sN7
TXIqRIid/+Vp2tfIgObQeRv5rLeLw0vZOiCrFE1VzlEf9P/4PL7Udsxk2xfDQ1Kf
mNbZ4x07JrR/9MzpXXIeM2LgJ3h0AZRnc3IA2qgerxvik20uLGy6omD//RUs/i2t
1bWwNFmX+vPou3SfLNQF+F+b60VB7/LXuFsY6wQP/4TgpsVuHVlUlHzP/G3DU5KA
8YioqTTG+oQb5dfmIFH1ylMfNjLOU+mnCMZx+wu2Ii2U05DHtyCWywMkPlB4Z78=
=ZaT+
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.