[mrtg] Blank graph with custom script
Alan Murrell
lists at murrell.ca
Sat Jun 2 05:39:36 CEST 2012
On 12-06-01 01:23 PM, Steve Shipway wrote:
> You dont give an example of the script output; possibly it is not
> quite correct? It should be 4 lines; the 3rd and 4th can be blank if
> you want, the first two must contain ONLY a nmber.
rcav-web01:/etc/mrtg/scripts# ./exchange2007_SMTP_traffic.sh rcav-ex01
1536380000
1245870000
rcav-web01:/etc/mrtg/scripts#
The above is the output; just the two lines with numbers.
When I left it overnight, this morning I had a graph, so I figured I was
perhaps not being patient, however mid-afternoon today (Friday) it just
started "flat-lining". Here is a link to the HTML page:
<http://monitor.rcav.bc.ca:8006/mrtg/rcav-ex01.msexchange.smtptraffic.html>
> You are using the 'gauge' option - if this counter returns a
> constantly increasing value, you should not use this, in order to
> convert to a rate.
I have removed the "gauge" option and re-run MRTG manually (it also runs
from cron every five minutes), but so far no change in the graph.
> Try running MRTG interactively and see if it produces any useful
> error messages relating to this target.
Here is the output when I run MRTG manually:
rcav-web01:/etc/mrtg/scripts# env LANG=C /usr/bin/mrtg
/etc/mrtg/server.rcav-ex01.cfg
Subroutine SNMP_Session::pack_sockaddr_in6 redefined at
/usr/share/perl/5.14/Exporter.pm line 67.
at /usr/share/perl5/SNMP_Session.pm line 149
Subroutine SNMP_Session::unpack_sockaddr_in6 redefined at
/usr/share/perl/5.14/Exporter.pm line 67.
at /usr/share/perl5/SNMP_Session.pm line 149
Subroutine SNMP_Session::sockaddr_in6 redefined at
/usr/share/perl/5.14/Exporter.pm line 67.
at /usr/share/perl5/SNMP_Session.pm line 149
Subroutine SNMPv1_Session::pack_sockaddr_in6 redefined at
/usr/share/perl/5.14/Exporter.pm line 67.
at /usr/share/perl5/SNMP_Session.pm line 608
Subroutine SNMPv1_Session::unpack_sockaddr_in6 redefined at
/usr/share/perl/5.14/Exporter.pm line 67.
at /usr/share/perl5/SNMP_Session.pm line 608
Subroutine SNMPv1_Session::sockaddr_in6 redefined at
/usr/share/perl/5.14/Exporter.pm line 67.
at /usr/share/perl5/SNMP_Session.pm line 608
rcav-web01:/etc/mrtg/scripts#
Those perl errors have been present since I installed MRTG a few days
ago and ran it, but they do not seem to otherwise affect MRTG's functioning.
More information about the mrtg
mailing list