Page 1 of 1

upgraded to 5.3 / mrtg issues

Posted: Tue Oct 04, 2016 2:38 pm
by WVUhealth
i upgraded to 5.3 and now mrtg is generating these errors

2016-10-04 15:25:39: WARNING: Expected a number but got 'noSuchInstance'
2016-10-04 15:25:39: WARNING: Expected a number but got 'noSuchInstance'
2016-10-04 15:25:39: WARNING: Expected a number but got 'noSuchInstance'
2016-10-04 15:25:39: WARNING: Expected a number but got 'noSuchInstance'



this is mrtg version

LANG=C LC_ALL=C /usr/bin/mrtg
Usage: mrtg <config-file>

mrtg-2.17.4 - Multi Router Traffic Grapher

Copyright 1995-2006 by Tobias Oetiker
Licensed under the Gnu GPL.

If you want to know more about this tool, you might want
to read the docs. You can find everything on the
mrtg website:

http://oss.oetiker.ch/mrtg/

Re: upgraded to 5.3 / mrtg issues

Posted: Tue Oct 04, 2016 3:56 pm
by dwhitfield
Can you post the output of more /etc/mrtg/mrtg.cfg?

Also, do you have any output when you run LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg?

Do you run any custom commands? If so, could you post them here?

Re: upgraded to 5.3 / mrtg issues

Posted: Tue Oct 04, 2016 4:49 pm
by tgriep
Are you using SNMP Version 3 to monitor that device that is generating the message?

Re: upgraded to 5.3 / mrtg issues

Posted: Wed Oct 05, 2016 11:08 am
by WVUhealth
HtmlDir: /var/www/mrtg
ImageDir: /var/www/mrtg
LogFormat: rrdtool
LogDir: /var/lib/mrtg
ThreshDir: /var/lib/mrtg
WorkDir: /var/lib/mrtg
Forks: 4
EnableSnmpV3: yes

Include: conf.d/*.cfg

EnableSNMPv3: yes
~


i do have output from command and i do not run any special commands...

Re: upgraded to 5.3 / mrtg issues

Posted: Wed Oct 05, 2016 11:26 am
by WVUhealth
my mrtg config never changed..

Re: upgraded to 5.3 / mrtg issues

Posted: Wed Oct 05, 2016 11:32 am
by tgriep
The SNMPv# settings in the /etc/mrtg.cfg file enable the use of SNMPv3 we would have to see the configuration file for the device that is generating the error to see if it is using SNMPv3

Code: Select all

/etc/mrtg/conf.d
Are the interfaces that are generating the warning messages functioning correctly in the XI interface and are showing bandwidth information?

Re: upgraded to 5.3 / mrtg issues

Posted: Thu Oct 06, 2016 6:31 am
by WVUhealth
the graphs are working... i don't know exactly which file is causing the error...i have over 250 files in that directory

Re: upgraded to 5.3 / mrtg issues

Posted: Thu Oct 06, 2016 8:50 am
by tgriep
You can run the command below and look at the /tmp/mrtg.txt file to see which device is causing the warning.

Code: Select all

LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg -debug=cfg,base &> /tmp/mrtg.txt
It could be that the interface isn't active anymore on that device causing the warning. At that point, you can remove the entries from the cfg file as they are not needed anymore.