upgraded to 5.3 / mrtg issues

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
WVUhealth
Posts: 78
Joined: Tue Apr 24, 2012 1:50 pm

upgraded to 5.3 / mrtg issues

Post 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/
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: upgraded to 5.3 / mrtg issues

Post 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?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: upgraded to 5.3 / mrtg issues

Post by tgriep »

Are you using SNMP Version 3 to monitor that device that is generating the message?
Be sure to check out our Knowledgebase for helpful articles and solutions!
WVUhealth
Posts: 78
Joined: Tue Apr 24, 2012 1:50 pm

Re: upgraded to 5.3 / mrtg issues

Post 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...
WVUhealth
Posts: 78
Joined: Tue Apr 24, 2012 1:50 pm

Re: upgraded to 5.3 / mrtg issues

Post by WVUhealth »

my mrtg config never changed..
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: upgraded to 5.3 / mrtg issues

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
WVUhealth
Posts: 78
Joined: Tue Apr 24, 2012 1:50 pm

Re: upgraded to 5.3 / mrtg issues

Post 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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: upgraded to 5.3 / mrtg issues

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked