Page 4 of 5
Re: SNMP Password limitation
Posted: Mon Feb 16, 2015 12:31 pm
by JohnFLi
Code: Select all
[root@G1VPNAG03 mrtg]# service crond status
crond (pid 1760) is running...
[root@G1VPNAG03 mrtg]# ls -la /etc/cron.d/mrtg
-rw-r--r-- 1 root root 139 Nov 12 2012 /etc/cron.d/mrtg
[root@G1VPNAG03 mrtg]# cat /etc/cron.d/mrtg
*/5 * * * * root LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lock/mrtg/mrtg_l --confcache-file /var/lib/mrtg/mrtg.ok
[root@G1VPNAG03 mrtg]#
Re: SNMP Password limitation
Posted: Mon Feb 16, 2015 1:56 pm
by lmiltchev
Can you run the following commands and show us the output?
Code: Select all
uname -a
cat /etc/*release
rrdtool --version
ll -d /var/lib/mrtg
ll /var/lib/mrtg/
Re: SNMP Password limitation
Posted: Mon Feb 16, 2015 4:04 pm
by JohnFLi
Code: Select all
[root@G1VPNAG03 mrtg]# uname -a
Linux G1VPNAG03.firemountain.local 2.6.32-504.8.1.el6.x86_64 #1 SMP Wed Jan 28 21:11:36 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
[root@G1VPNAG03 mrtg]# cat /etc/*release
CentOS release 6.6 (Final)
LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
CentOS release 6.6 (Final)
CentOS release 6.6 (Final)
[root@G1VPNAG03 mrtg]# rrdtool --version
RRDtool 1.3.8 Copyright 1997-2009 by Tobias Oetiker <[email protected]>
Compiled Apr 3 2014 13:07:03
Usage: rrdtool [options] command command_options
Valid commands: create, update, updatev, graph, graphv, dump, restore,
last, lastupdate, first, info, fetch, tune,
resize, xport
RRDtool is distributed under the Terms of the GNU General
Public License Version 2. (www.gnu.org/copyleft/gpl.html)
For more information read the RRD manpages
[root@G1VPNAG03 mrtg]# ll -d /var/lib/mrtg
drwxr-xr-x 2 root root 4096 Feb 16 08:30 /var/lib/mrtg
[root@G1VPNAG03 mrtg]# ll /var/lib/mrtg/
total 5408
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s1_16797696.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s1_16801792.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s1_16805888.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s1_16809984.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s1_16814080.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s1_16818176.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s1_16822272.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s1_16826368.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s1_16830464.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s1_16834560.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s1_16838656.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s1_16842752.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s1_16846848.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s1_16879616.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s1_16883712.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s1_16887808.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s1_16891904.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s1_16896000.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s1_16900096.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s1_16904192.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s1_16908288.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s1_16916480.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s1_16920576.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s1_16965632.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s1_16969728.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s1_83886080.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s2_16797696.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s2_16801792.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s2_16805888.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s2_16809984.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s2_16814080.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s2_16818176.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s2_16822272.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s2_16826368.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s2_16830464.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s2_16834560.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s2_16838656.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s2_16842752.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s2_16846848.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s2_16879616.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s2_16883712.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s2_16887808.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s2_16891904.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s2_16896000.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s2_16900096.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s2_16904192.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s2_16908288.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s2_16916480.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s2_16920576.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s2_16965632.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s2_16969728.rrd
-rw-r--r-- 1 root root 105312 Feb 16 13:00 dc-n5k-s2_83886080.rrd
-rw-r--r-- 1 root root 0 Feb 16 13:00 mrtg.ok
[root@G1VPNAG03 mrtg]#
Re: SNMP Password limitation
Posted: Mon Feb 16, 2015 6:04 pm
by Box293
Can you upgrade RRDTool and see if that solves the problem:
Code: Select all
cd /tmp
wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.4.tar.gz
tar -xzf rrdtool-1.4.4.tar.gz
cd /tmp/rrdtool-1.4.4
./configure --bindir=/usr/bin
make clean
make install
service restart npcd
Re: SNMP Password limitation
Posted: Mon Feb 16, 2015 7:16 pm
by JohnFLi
when running ./configure --bindir=/usr/bin
Code: Select all
Find 3rd-Party Libraries
checking for libdbi... no
checking for cairo_font_options_create in -lcairo... no
checking for pkg-config... pkg-config
configure: WARNING:
----------------------------------------------------------------------------
* I found a copy of pkgconfig, but there is no cairo-png.pc file around.
You may want to set the PKG_CONFIG_PATH variable to point to its
location.
----------------------------------------------------------------------------
configure: WARNING:
----------------------------------------------------------------------------
* I could not find a working copy of cairo-png. Check config.log for hints on why
this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
so that compiler and the linker can find libcairo and its header files. If
you have not installed cairo-png, you can get it either from its original home on
http://cairographics.org/releases/
You can find also find an archive copy on
http://oss.oetiker.ch/rrdtool/pub/libs
The last tested version of cairo-png is 1.4.6.
LIBS=-lm
LDFLAGS=
CPPFLAGS=
----------------------------------------------------------------------------
checking for cairo_svg_surface_create in -lcairo... no
checking for pkg-config... (cached) pkg-config
configure: WARNING:
----------------------------------------------------------------------------
* I found a copy of pkgconfig, but there is no cairo-svg.pc file around.
You may want to set the PKG_CONFIG_PATH variable to point to its
location.
----------------------------------------------------------------------------
configure: WARNING:
----------------------------------------------------------------------------
* I could not find a working copy of cairo-svg. Check config.log for hints on why
this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
so that compiler and the linker can find libcairo and its header files. If
you have not installed cairo-svg, you can get it either from its original home on
http://cairographics.org/releases/
You can find also find an archive copy on
http://oss.oetiker.ch/rrdtool/pub/libs
The last tested version of cairo-svg is 1.4.6.
LIBS=-lm
LDFLAGS=
CPPFLAGS=
----------------------------------------------------------------------------
checking for cairo_pdf_surface_create in -lcairo... no
checking for pkg-config... (cached) pkg-config
configure: WARNING:
----------------------------------------------------------------------------
* I found a copy of pkgconfig, but there is no cairo-pdf.pc file around.
You may want to set the PKG_CONFIG_PATH variable to point to its
location.
----------------------------------------------------------------------------
configure: WARNING:
----------------------------------------------------------------------------
* I could not find a working copy of cairo-pdf. Check config.log for hints on why
this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
so that compiler and the linker can find libcairo and its header files. If
you have not installed cairo-pdf, you can get it either from its original home on
http://cairographics.org/releases/
You can find also find an archive copy on
http://oss.oetiker.ch/rrdtool/pub/libs
The last tested version of cairo-pdf is 1.4.6.
LIBS=-lm
LDFLAGS=
CPPFLAGS=
----------------------------------------------------------------------------
checking for cairo_ps_surface_create in -lcairo... no
checking for pkg-config... (cached) pkg-config
configure: WARNING:
----------------------------------------------------------------------------
* I found a copy of pkgconfig, but there is no cairo-ps.pc file around.
You may want to set the PKG_CONFIG_PATH variable to point to its
location.
----------------------------------------------------------------------------
configure: WARNING:
----------------------------------------------------------------------------
* I could not find a working copy of cairo-ps. Check config.log for hints on why
this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
so that compiler and the linker can find libcairo and its header files. If
you have not installed cairo-ps, you can get it either from its original home on
http://cairographics.org/releases/
You can find also find an archive copy on
http://oss.oetiker.ch/rrdtool/pub/libs
The last tested version of cairo-ps is 1.4.6.
LIBS=-lm
LDFLAGS=
CPPFLAGS=
----------------------------------------------------------------------------
checking for glib_check_version in -lglib-2.0... no
checking for pkg-config... (cached) pkg-config
configure: WARNING:
----------------------------------------------------------------------------
* I found a copy of pkgconfig, but there is no glib-2.0.pc file around.
You may want to set the PKG_CONFIG_PATH variable to point to its
location.
----------------------------------------------------------------------------
configure: WARNING:
----------------------------------------------------------------------------
* I could not find a working copy of glib-2.0. Check config.log for hints on why
this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
so that compiler and the linker can find libglib-2.0 and its header files. If
you have not installed glib-2.0, you can get it either from its original home on
ftp://ftp.gtk.org/pub/glib/2.12/
You can find also find an archive copy on
http://oss.oetiker.ch/rrdtool/pub/libs
The last tested version of glib-2.0 is 2.12.12.
LIBS=-lm
LDFLAGS=
CPPFLAGS=
----------------------------------------------------------------------------
checking for pango_cairo_context_set_font_options in -lpangocairo-1.0... no
checking for pkg-config... (cached) pkg-config
configure: WARNING:
----------------------------------------------------------------------------
* I found a copy of pkgconfig, but there is no pangocairo.pc file around.
You may want to set the PKG_CONFIG_PATH variable to point to its
location.
----------------------------------------------------------------------------
configure: WARNING:
----------------------------------------------------------------------------
* I could not find a working copy of pangocairo. Check config.log for hints on why
this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
so that compiler and the linker can find libpangocairo-1.0 and its header files. If
you have not installed pangocairo, you can get it either from its original home on
http://ftp.gnome.org/pub/GNOME/sources/pango/1.17
You can find also find an archive copy on
http://oss.oetiker.ch/rrdtool/pub/libs
The last tested version of pangocairo is 1.17.
LIBS=-lm
LDFLAGS=
CPPFLAGS=
----------------------------------------------------------------------------
checking for xmlParseFile in -lxml2... no
checking for pkg-config... (cached) pkg-config
configure: WARNING:
----------------------------------------------------------------------------
* I found a copy of pkgconfig, but there is no libxml-2.0.pc file around.
You may want to set the PKG_CONFIG_PATH variable to point to its
location.
----------------------------------------------------------------------------
configure: WARNING:
----------------------------------------------------------------------------
* I could not find a working copy of libxml-2.0. Check config.log for hints on why
this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
so that compiler and the linker can find libxml2 and its header files. If
you have not installed libxml-2.0, you can get it either from its original home on
http://xmlsoft.org/downloads.html
You can find also find an archive copy on
http://oss.oetiker.ch/rrdtool/pub/libs
The last tested version of libxml-2.0 is 2.6.31.
LIBS=-lm
LDFLAGS=
CPPFLAGS= -I/usr/include/libxml2
----------------------------------------------------------------------------
configure: error: Please fix the library issues listed above and try again.
[root@localhost rrdtool-1.4.4]#
Re: SNMP Password limitation
Posted: Mon Feb 16, 2015 8:04 pm
by Box293
I think I might be going down the wrong troubleshooting path here. I think upgrading rrdtool is only necessary when rrdcached is also used.
Re: SNMP Password limitation
Posted: Tue Feb 17, 2015 11:47 am
by JohnFLi
here is a little somethign that I did discover. for a bit (under bandwidth) it was saying
Code: Select all
/var/lib/mrtg/DC-N5K-S2_16883712.rrd does not exist.
When I went through the wizard, I used the switch name in all uppercase, hence the DC-N5K-S2 being in upper case. The error message technically was correct.
The reason it was 'technically' correct is becasue on the nagios server, it made the rrd files in all lower case. dc-n5k-s2_16883712.rrd is the file that was made in that directory, not DC-N5K-S2_16883712.rrd
To fix that, I went into the service for the bandwidths, and changed $ARG1$ to be in lowercase (for all of them) After applying, things started working better
Code: Select all
fc1/47 Bandwidth Ok 19m 1s 1/5 02/17/2015 08:41:11 OK - Current BW in: .19Gbps Out: .11Gbps
not sure how accurate those numbers as though..
Also, I see 5 ports that do not have a bandwidth service attached to it.
Re: SNMP Password limitation
Posted: Tue Feb 17, 2015 5:08 pm
by tmcdonald
JohnFLi wrote:Also, I see 5 ports that do not have a bandwidth service attached to it.
Can you list the 5 ports' names?
Re: SNMP Password limitation
Posted: Wed Feb 18, 2015 2:40 pm
by JohnFLi
My mistake.....
I discovered if the switch port is administatively down, it doesn't add a check for it. Makes sense I suppose, but I would actually rather have it add the down ports, just have the wizard de-activate them.
Re: SNMP Password limitation
Posted: Wed Feb 18, 2015 4:26 pm
by abrist
No problem, do you have further topically relevant issues that need resolution, or should we lock it up?