I'm about to embark upon writing a script to change snmp community strings on a periodic basis. The strings will be random for each box, which will be great for security, but a pain for mrtg. I'd store the strings in a mysql table. My thought was to have one of the steps of the script run the cfgmaker procedure with some nice host and interface templates (and, obviously, the new community string). But it would be nice to write the script completely in perl. Since cfgmaker is already perl, I'd like to be able to call it as a module rather than passing arguments to it from a shell.
Of course, the other option is to convince mrtg to pull the community string out of the database, but I figure there is enough churn in my network to warrant a fresh mrtg config once a week/month/quarter or so anyway, so I might as well regenerate the configs. Anybody thought about turning cfgmaker into a module before? Or am I trying too hard - I'm sure someone has done this kind of thing before and I shouldn't have to re-invent the wheel completely.... -- Daniel J McDonald, CCIE#2495 Austin Energy -- Unsubscribe mailto:[EMAIL PROTECTED] 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
