Script Problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



I have a script I put in /etc/cron.fiveminutes

graphs.sh

#!/bin/sh
env LANG=C mrtg
/home/admin/domains/my---server.com/public_html/traffic/load/mrtg.cfg
--logging /dev/null >/dev/null 2>&1
env LANG=C mrtg
/home/admin/domains/my---server.com/public_html/traffic/eth0/mrtg.cfg
--logging /dev/null >/dev/null 2>&1
#exit 0;

Problem is there is some bug that raises an error even though mrtg
still graphs fine.

[root@server cron.fiveminutes]# env LANG=C mrtg
/home/admin/domains/my---server.com/public_html/traffic/eth0/mrtg.cfg
--logging /dev/null
Subroutine SNMPv1_Session::AF_INET6 redefined at
/usr/lib/perl5/5.8.8/Exporter.pm line 65.
 at /usr/bin/../lib64/mrtg2/SNMP_Session.pm line 594
Subroutine main::AF_INET6 redefined at /usr/lib/perl5/5.8.8/Exporter.pm line 65.
 at /usr/bin/mrtg line 97
/usr/bin/rateup: /usr/local/lib/libpng12.so.0: no version information
available (required by /usr/lib64/libgd.so.2)


The issue is it tries to alert root every time this script is run.  I
thought adding the ">/dev/null 2>&1" would stop that but it does not.
Is there anyway to get the script to ignore the error and not alert
root?

Another solution is to install a newer version of mrtg from source
which supposedly resolves the issue but I would rather just ignore the
error for now until a newer 64bit rpm comes out since its not hurting
anything except the annoying warning messages.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux