hi amos, i'm out of ideas on why your Target line doesn't work :(
MRTG has a templating facility ... i haven't used it, however, so i don't have any brilliant insights to offer i, too, became tired of cutting & pasting all those lines into my config files ... so i wrote code to do it for me (see http://www.skendric.com/trend/graphs/mrtg-net-snmpd.pdf for the results). i add hostnames to a text file now, and every night, a cron job reads that file, rebuilds the relevant mrtg config file, and life is sweet. the code is available off SourceForge (the 'Netops toolkit') or directly from http://www.skendric.com/device/ since i haven't used MRTG's template facility ... i don't know what would be easier ... to figure out MRTG templates or to wrestle with my code --sk Amos Shapira wrote: > On 22/03/07, Stuart Kendrick <[EMAIL PROTECTED]> wrote: >> hi amos, >> >> i really like the idea of using Object Values instead of OIDs ... but as >> i say, i've had trouble stringing together the MIB dependencies >> >> still, if you're just using MIB-II and HOST-RESOURCES-MIB, perhaps you >> can pull it off ... i seem to recall doing just that, for a while ... >> but then i started adding Cisco gear and Nokia gear and Altiga gear ... >> and although i thought i had all this MIB dependencies worked out and >> listed on my LoadMIBs: line, i still ran into errors > > I wonder whether it's possible to get the info from MRTG on what it > failed to find... > >> yes, snmptranslate is our friend ... >> >> anyway, how about yanking that leading dot in the Target line? >> >> Target[IP_DriveC]: hrStorageSize.1:[EMAIL PROTECTED] - >> hrStorageUsed.1:[EMAIL PROTECTED] > > That was my first attempt - the dot was added later when it didn't > work without it. > > Anyway - my bigger concern now is having to duplicate so much > configuration for each host and each interface. I wish there was some > Nagios2-style "template" and "class" configuration that could allow me > to say "this host runs Windows SNMP - yank THESE values from it and > graph them THAT way". (or maybe there is already something to do > that?) > > Cheers, > > --Amos > > _______________________________________________ > mrtg mailing list > [email protected] > https://lists.oetiker.ch/cgi-bin/listinfo/mrtg _______________________________________________ mrtg mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
