[mrtg] Re: Upgrade Failed
Jeff Liebermann
jeffl at comix.santa-cruz.ca.us
Mon Oct 22 00:48:26 MEST 2001
On Fri, Oct 19, 2001 at 05:39:09AM -0500, Bohnenstiehl, Joe wrote:
> I attempted to go from 2.9.14 to 2.9.17 on a Solaris-2.8 system. Perl was
> upgraded on the system after the old version of MRTG was installed to
> perl-5.6.1
>
> Any time I try to collect I get;
> >/usr/local/mrtg-2/bin/mrtg /opt/apache/htdocs/MRTG/Configs/STLS_SSNOC.cfg
> WARNING: Expected a number but got '#<unprintable BER type 0x81>'
> WARNING: Expected a number but got '#<unprintable BER type 0x81>'
>
> I attempted to remove the 2.9.17 and go back to 2.9.14 and still get the
> same results.
> I also removed and re-installed the associated packages gd, libpng, zlib.
>
> Has anyone seen this before
> Joe Bohnenstiehl
> Wiliams Communications.
Nope, but I have a good guess.
You've got 2 versions of BER.pm and possibly some of the other
perl modules involved in MRTG. Your Perl 5.6.1 either included
a BER.pm that was dumped in /usr/local/lib/perl/modules/ (or
some place similar). My guess is that they're different versions.
Search for dupes of the stuff in .../mrtg/lib/mrtg-2/*.pm
Disclaimer: This is only a guess.
If you get really stuck, there are some marginally documented
debug options in the mrtg perl script. Near the top, you'll find:
Main::DEBUG=qw();
# DEBUG TARGETS
# cfg - watch the config file reading
# dir - directory mangeling
# base - basic program flow
# tarp - target parser
# snpo - snmp polling
# fork - forking view
# time - some timing info
# log - logging of data via rateup or rrdtool
Change the first line to whatever debug level looks interesting
as in:
Main::DEBUG=qw(base);
Do NOT try to do debugging with:
RunAsDaemon: Yes
as it sends the output to an unattached terminal (or /dev/null).
--
# Jeff Liebermann Liebermann Design 150 Felker St #D Santa Cruz CA 95060
# 831.336.2558 voice 831.426.1240 fax 831.421.6491 digital_pager
# jeffl at comix.santa-cruz.ca.us http://www.cruzio.com/~jeffl
--
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