Page 2 of 2

Re: XI 2014 Switch Problems

Posted: Tue May 27, 2014 10:16 am
by scottwilkerson
these will be found in /etc/mrtg/conf.d/<HOSTNAME>.cfg as of XI 2014

Re: XI 2014 Switch Problems

Posted: Fri May 30, 2014 2:42 pm
by hudbaylicensing
Thanks found it - I removed all of the interface sections and ran LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/conf.d/172.25.40.21.cfg –check and got the following errors:

Use of uninitialized value $dir in concatenation (.) or string at /usr/bin/mrtg line 2658.
Use of uninitialized value $dir in concatenation (.) or string at /usr/bin/mrtg line 2676.
Use of uninitialized value $dir in concatenation (.) or string at /usr/bin/mrtg line 2692.
ERROR: "WorkDir" not specified in mrtg config file

Which confuses me because there are no line number 2658, 2676, or 2692 and the WorkDir line is commented out, and if I uncomment it it points to /home/http/mrtg - but I do not have a /home/http/mrtg folder....not sure where to go now?

Re: XI 2014 Switch Problems

Posted: Fri May 30, 2014 3:34 pm
by lmiltchev
Can you run the following command and show us the output in code wraps?

Code: Select all

cat /etc/mrtg/mrtg.cfg

Re: XI 2014 Switch Problems

Posted: Thu Jun 05, 2014 9:54 am
by hudbaylicensing
Here it is:

Code: Select all

######################################################################
# Multi Router Traffic Grapher -- Example Configuration File
######################################################################
# This file is for use with mrtg-2.0
#
# Note:
#
# * Keywords must start at the begin of a line.
#
# * Lines which follow a keyword line which do start 
#   with a blank are appended to the keyword line
#
# * Empty Lines are ignored
#
# * Lines starting with a # sign are comments.

# Where should the logfiles, and webpages be created?

# Minimal mrtg.cfg
#--------------------

HtmlDir: /var/www/mrtg
ImageDir: /var/www/mrtg
LogFormat: rrdtool
LogDir: /var/lib/mrtg
ThreshDir: /var/lib/mrtg
WorkDir: /var/lib/mrtg

Include: conf.d/*.cfg

Re: XI 2014 Switch Problems

Posted: Thu Jun 05, 2014 10:56 am
by scottwilkerson
hudbaylicensing wrote:Thanks found it - I removed all of the interface sections and ran LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/conf.d/172.25.40.21.cfg –check and got the following errors:

Use of uninitialized value $dir in concatenation (.) or string at /usr/bin/mrtg line 2658.
Use of uninitialized value $dir in concatenation (.) or string at /usr/bin/mrtg line 2676.
Use of uninitialized value $dir in concatenation (.) or string at /usr/bin/mrtg line 2692.
ERROR: "WorkDir" not specified in mrtg config file

Which confuses me because there are no line number 2658, 2676, or 2692 and the WorkDir line is commented out, and if I uncomment it it points to /home/http/mrtg - but I do not have a /home/http/mrtg folder....not sure where to go now?
You cannot run these configs standalone, you would need to run the following

Code: Select all

LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg

Re: XI 2014 Switch Problems

Posted: Thu Jun 05, 2014 11:08 am
by hudbaylicensing
Ok, i ran that command and got some errors - the errors are for other switches (some that don't actually exist anymore) but are not showing the switch that I am working with. In the pdf it says if there are no errors then you are good to go, does htis mean because the switch I am working with is not listed in the errors that I am indeed good to go?

Code: Select all

SNMP Error:
no response received
SNMPv2c_Session (remote host: "172.30.1.10" [172.30.1.10].161)
                   community: "private"
                  request ID: 2098237721
                 PDU bufsize: 8000 bytes
                     timeout: 2s
                     retries: 5
                     backoff: 1)
 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 497
SNMPGET Problem for ifHCInOctets.2 ifHCOutOctets.2 on [email protected]:::::2:                                                                                                   v4only
 at /usr/bin/mrtg line 2330
2014-06-05 11:00:51: WARNING: skipping because at least the query for ifHCInOcte                                                                                                   ts.2 on  172.30.1.10 did not succeed
2014-06-05 11:00:51: WARNING: no data for ifHCInOctets&ifHCOutOctets:private@172                                                                                                   .30.1.10. Skipping further queries for Host 172.30.1.10 in this round.
SNMP Error:
no response received
SNMPv2c_Session (remote host: "172.26.1.19" [172.26.1.19].161)
                   community: "private"
                  request ID: 1558852467
                 PDU bufsize: 8000 bytes
                     timeout: 2s
                     retries: 5
                     backoff: 1)
 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 497
SNMPGET Problem for ifHCInOctets.2 ifHCOutOctets.2 on [email protected]:::::2:v4only
 at /usr/bin/mrtg line 2330
2014-06-05 11:00:51: WARNING: skipping because at least the query for ifHCInOctets.2 on  172.26.1.19 did not succeed
2014-06-05 11:00:51: WARNING: no data for ifHCInOctets&ifHCOutOctets:[email protected]. Skipping further queries for Host 172.26.1.19 in this round.
SNMP Error:
no response received
SNMPv2c_Session (remote host: "172.25.1.4" [172.25.1.4].161)
                   community: "private"
                  request ID: 826329452
                 PDU bufsize: 8000 bytes
                     timeout: 2s
                     retries: 5
                     backoff: 1)
 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 497
SNMPGET Problem for ifHCInOctets.3 ifHCOutOctets.3 on [email protected]:::::2:v4only
 at /usr/bin/mrtg line 2330
2014-06-05 11:00:51: WARNING: skipping because at least the query for ifHCInOctets.3 on  172.25.1.4 did not succeed
2014-06-05 11:00:51: WARNING: no data for ifHCInOctets&ifHCOutOctets:[email protected]. Skipping further queries for Host 172.25.1.4 in this round.
SNMP Error:
no response received
SNMPv2c_Session (remote host: "172.24.1.10" [172.24.1.10].161)
                   community: "hbms"
                  request ID: 1272175383
                 PDU bufsize: 8000 bytes
                     timeout: 2s
                     retries: 5
                     backoff: 1)
 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 497
SNMPGET Problem for ifHCInOctets.2 ifHCOutOctets.2 on [email protected]:::::2:v4only
 at /usr/bin/mrtg line 2330
2014-06-05 11:00:51: WARNING: skipping because at least the query for ifHCInOctets.2 on  172.24.1.10 did not succeed
2014-06-05 11:00:51: WARNING: no data for ifHCInOctets&ifHCOutOctets:[email protected]. Skipping further queries for Host 172.24.1.10 in this round.
SNMP Error:
no response received
SNMPv2c_Session (remote host: "172.22.1.10" [172.22.1.10].161)
                   community: "hbms"
                  request ID: 777497509
                 PDU bufsize: 8000 bytes
                     timeout: 2s
                     retries: 5
                     backoff: 1)
 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 497
SNMPGET Problem for ifHCInOctets.2 ifHCOutOctets.2 on [email protected]:::::2:v4only
 at /usr/bin/mrtg line 2330
2014-06-05 11:00:51: WARNING: skipping because at least the query for ifHCInOctets.2 on  172.22.1.10 did not succeed
2014-06-05 11:00:51: WARNING: no data for ifHCInOctets&ifHCOutOctets:[email protected]. Skipping further queries for Host 172.22.1.10 in this round.
2014-06-05 11:01:53: ERROR: Target[172.30.1.10_2][_IN_] ' $target->[7]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.30.1.10_2][_OUT_] ' $target->[7]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.30.1.10_3][_IN_] ' $target->[8]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.30.1.10_3][_OUT_] ' $target->[8]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.30.1.10_4][_IN_] ' $target->[9]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.30.1.10_4][_OUT_] ' $target->[9]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.30.1.10_5][_IN_] ' $target->[10]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.30.1.10_5][_OUT_] ' $target->[10]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.30.1.10_6][_IN_] ' $target->[11]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.30.1.10_6][_OUT_] ' $target->[11]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.30.1.10_7][_IN_] ' $target->[12]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.30.1.10_7][_OUT_] ' $target->[12]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.30.1.10_8][_IN_] ' $target->[13]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.30.1.10_8][_OUT_] ' $target->[13]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.26.1.19_2][_IN_] ' $target->[97]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.26.1.19_2][_OUT_] ' $target->[97]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.26.1.19_3][_IN_] ' $target->[98]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.26.1.19_3][_OUT_] ' $target->[98]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.26.1.19_4][_IN_] ' $target->[99]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.26.1.19_4][_OUT_] ' $target->[99]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.26.1.19_5][_IN_] ' $target->[100]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.26.1.19_5][_OUT_] ' $target->[100]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.26.1.19_6][_IN_] ' $target->[101]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.26.1.19_6][_OUT_] ' $target->[101]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.26.1.19_7][_IN_] ' $target->[102]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.26.1.19_7][_OUT_] ' $target->[102]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.26.1.19_8][_IN_] ' $target->[103]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.26.1.19_8][_OUT_] ' $target->[103]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.25.1.4_3][_IN_] ' $target->[218]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.25.1.4_3][_OUT_] ' $target->[218]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.25.1.4_5][_IN_] ' $target->[219]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.25.1.4_5][_OUT_] ' $target->[219]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.24.1.10_2][_IN_] ' $target->[451]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.24.1.10_2][_OUT_] ' $target->[451]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.24.1.10_3][_IN_] ' $target->[452]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.24.1.10_3][_OUT_] ' $target->[452]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.24.1.10_4][_IN_] ' $target->[453]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.24.1.10_4][_OUT_] ' $target->[453]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.24.1.10_5][_IN_] ' $target->[454]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.24.1.10_5][_OUT_] ' $target->[454]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.24.1.10_6][_IN_] ' $target->[455]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.24.1.10_6][_OUT_] ' $target->[455]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.24.1.10_7][_IN_] ' $target->[456]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.24.1.10_7][_OUT_] ' $target->[456]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.24.1.10_8][_IN_] ' $target->[457]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.24.1.10_8][_OUT_] ' $target->[457]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.23.1.20_12][_IN_] ' $target->[465]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.23.1.20_12][_OUT_] ' $target->[465]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.22.1.10_2][_IN_] ' $target->[466]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.22.1.10_2][_OUT_] ' $target->[466]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.22.1.10_3][_IN_] ' $target->[467]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.22.1.10_3][_OUT_] ' $target->[467]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.22.1.10_4][_IN_] ' $target->[468]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.22.1.10_4][_OUT_] ' $target->[468]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.22.1.10_5][_IN_] ' $target->[469]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.22.1.10_5][_OUT_] ' $target->[469]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.22.1.10_6][_IN_] ' $target->[470]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.22.1.10_6][_OUT_] ' $target->[470]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.22.1.10_7][_IN_] ' $target->[471]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.22.1.10_7][_OUT_] ' $target->[471]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.22.1.10_8][_IN_] ' $target->[472]{$mode} ' did not eval into defined data
2014-06-05 11:01:53: ERROR: Target[172.22.1.10_8][_OUT_] ' $target->[472]{$mode} ' did not eval into defined data

Re: XI 2014 Switch Problems

Posted: Thu Jun 05, 2014 12:43 pm
by jomann
Well are you getting the data for your switch that you are using in XI now? Should probably end up removing the ones that are no longer used in XI just to keep it clear but it looks like it's doing an authentication check when it reads the configs and the errors are just if it fails... in theory if you don't have any errors for the switch you are trying to monitor it should be okay as long as MRTG is running.

Re: XI 2014 Switch Problems

Posted: Thu Jun 05, 2014 1:13 pm
by hudbaylicensing
it should be okay as long as MRTG is running
Ok, dumb question but how would I know if MRTG is running?

I ran "ps aux" but do not see any processes that remotely look like mrtg....

Re: XI 2014 Switch Problems

Posted: Thu Jun 05, 2014 1:36 pm
by sreinhardt
MRTG is run on a 5 minute cron job. Probably the easiest route would be to look at either the cron log, or verify that the files in /var/lib/mrtg/ are up to date, as these are the files that mrtg is storing results in.

One thing to note on your previous comments that some of the devices erroring are not in existence anymore or that you do not care to monitor them. I would highly suggest removing the configurations from /etc/mrtg/conf.d/ as those delays will eventually if not already, cause issues as you increase the number of devices that mrtg monitors.