Bandwidth usage graphs

This support forum board is for support questions relating to Nagios Network Analyzer, our network traffic and bandwidth analysis solution.
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

Re: Bandwidth usage graphs

Post by raamardhani7 »

tgriep wrote:Can you login to the NNA server and run the following as root and post the output?

Code: Select all

find /usr/local -name py_rrd*
ls -l /usr/local
ls -l /usr/local/nagiosna/var/
yum list installed |grep rrdtool
Hi Tom,

Please find the update.

Code: Select all

find /usr/local -name py_rrd*
/usr/local/lib64/python2.6/site-packages_backup/py_rrdtool-0.2.2-py2.6.egg-info
/usr/local/lib64/python2.6/site-packages/py_rrdtool-0.2.2-py2.6.egg-info

Code: Select all

ls -l /usr/local
total 56
drwxr-xr-x. 2 root   root   4096 Jul 28 11:07 bin
drwxr-xr-x. 2 root   root   4096 Jun 28  2011 etc
drwxr-xr-x. 2 root   root   4096 Jun 28  2011 games
drwxr-xr-x. 3 root   root   4096 Jul 27 22:01 include
drwxr-xr-x. 3 root   root   4096 Jul 27 22:01 lib
drwxr-xr-x. 3 root   root   4096 May 10 05:07 lib64
drwxr-xr-x. 2 root   root   4096 Jun 28  2011 libexec
drwx------. 3 root   root   4096 Jun  3 01:57 man
drwxr-xr-x. 8 nagios nagios 4096 Jul 25  2015 nagios
drwsrwsr-t. 7 nna    nnacmd 4096 May 10 05:07 nagiosna
drwxr-xr-x. 2 root   root   4096 Jun  3 01:57 sbin
drwxr-xr-x. 7 root   root   4096 May 10 05:07 share
drwxr-xr-x. 3 root   root   4096 Jul 15 17:20 src
drwxr-xr-x. 3 root   root   4096 Jul 15  2013 tripwire

Code: Select all

ls -l /usr/local/nagiosna/var/
total 7204
drwxr-sr-x+ 3 nna nnacmd    4096 Aug  4 04:45 ASA172.22.249.254
-rw-rw-r--+ 1 nna nnacmd 1015181 Aug  4 07:50 backend.log
-rwxr-xr-x+ 1 nna nnacmd 1048534 Aug  1 19:30 backend.log.1
-rwxr-xr-x+ 1 nna nnacmd 1048533 Jul 29 07:45 backend.log.2
-rwxr-xr-x+ 1 nna nnacmd 1048545 Jul 25 15:35 backend.log.3
-rwxr-xr-x+ 1 nna nnacmd 1048542 Jul 21 14:05 backend.log.4
-rwxr-xr-x+ 1 nna nnacmd 1048501 Jun 26 05:10 backend.log.5
-rwxr-xr-x+ 1 nna nnacmd 1048543 Jun 18 01:40 backend.log.6
-rwxr-xr-x+ 1 nna nnacmd     499 Aug  4 07:54 cmdsubsys.log
drwxrwsr-x+ 3 nna nnacmd    4096 Aug  4 04:45 Misfit_FW_10.40.193.10
drwxr-sr-x+ 3 nna nnacmd    4096 Aug  4 04:45 NagiosFusionRCD83_98
drwxr-sr-x+ 3 nna users     4096 Aug  4 04:45 NY_FW_10.40.129.10
drwxr-sr-x+ 3 nna nnacmd    4096 Aug  4 04:45 VPN_Firewall_10_10_130_8

Code: Select all

 yum list installed |grep rrdtool
rrdtool.x86_64                     1.3.8-7.el6             @rhel-x86_64-server-6
rrdtool-python.x86_64              1.3.8-7.el6             @rhel-x86_64-server-optional-6
I have configured few other devices too, still I am facing the same issue of not having graphs updated.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Bandwidth usage graphs

Post by tgriep »

Can you run this as root on the server and post the output?

Code: Select all

rrdcreate
Then, lets reinstall python rrd module by running the following to install the python-pip installer and then reinstalling the rrdtool.

Code: Select all

yum install -y python-pip
pip install rrdtool
Then run the following to see if the bandwidth.rrd are created.

Code: Select all

/usr/local/nagiosna/bin/initialize_source.py --directory /usr/local/nagiosna/var/ASA172.22.249.254 --port 9996
/usr/local/nagiosna/bin/initialize_source.py --directory /usr/local/nagiosna/var/NagiosFusionRCD83_98 --port 9995
/usr/local/nagiosna/bin/initialize_source.py --directory /usr/local/nagiosna/var/VPN_Firewall_10_10_130_8 --port 9998
Check the following folders to see if the rrdfiles are there.

Code: Select all

/usr/local/nagiosna/var/ASA172.22.249.254
/usr/local/nagiosna/var/NagiosFusionRCD83_98
/usr/local/nagiosna/var/VPN_Firewall_10_10_130_8
Be sure to check out our Knowledgebase for helpful articles and solutions!
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

Re: Bandwidth usage graphs

Post by raamardhani7 »

tgriep wrote:Can you run this as root on the server and post the output?

Code: Select all

rrdcreate
Then, lets reinstall python rrd module by running the following to install the python-pip installer and then reinstalling the rrdtool.

Code: Select all

yum install -y python-pip
pip install rrdtool
Then run the following to see if the bandwidth.rrd are created.

Code: Select all

/usr/local/nagiosna/bin/initialize_source.py --directory /usr/local/nagiosna/var/ASA172.22.249.254 --port 9996
/usr/local/nagiosna/bin/initialize_source.py --directory /usr/local/nagiosna/var/NagiosFusionRCD83_98 --port 9995
/usr/local/nagiosna/bin/initialize_source.py --directory /usr/local/nagiosna/var/VPN_Firewall_10_10_130_8 --port 9998
Check the following folders to see if the rrdfiles are there.

Code: Select all

/usr/local/nagiosna/var/ASA172.22.249.254
/usr/local/nagiosna/var/NagiosFusionRCD83_98
/usr/local/nagiosna/var/VPN_Firewall_10_10_130_8
Hi Tom,

Please find the updates.

Code: Select all

rrdcreate
RRDtool 1.4.9  Copyright by Tobi Oetiker, 1997-2010

Usage: rrdcreate <filename>
                        [--start|-b start time]
                        [--step|-s step]
                        [--no-overwrite]
                        [DS:ds-name:DST:dst arguments]
                        [RRA:CF:cf arguments]

ERROR: need name of an rrd file to create

Code: Select all

yum install -y python-pip
Loaded plugins: changelog, product-id, rhnplugin, security, subscription-manager

This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Install Process
No package python-pip available.
Error: Nothing to do

Code: Select all

easy_install pip
Searching for pip
Reading http://pypi.python.org/simple/pip/
Best match: pip 8.1.2
Downloading https://pypi.python.org/packages/e7/a8/7556133689add8d1a54c0b14aeff0acb03c64707ce100ecd53934da1aa13/pip-8.1.2.tar.gz#md5=87083c0b9867963b29f7aba3613e8f4a
Processing pip-8.1.2.tar.gz
Running pip-8.1.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-_KhzC0/pip-8.1.2/egg-dist-tmp-XkwPR5
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.mailmap'
warning: no previously-included files found matching '.travis.yml'
warning: no previously-included files found matching '.landscape.yml'
warning: no previously-included files found matching 'pip/_vendor/Makefile'
warning: no previously-included files found matching 'tox.ini'
warning: no previously-included files found matching 'dev-requirements.txt'
warning: no previously-included files found matching 'appveyor.yml'
no previously-included directories found matching '.github'
no previously-included directories found matching '.travis'
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'contrib'
no previously-included directories found matching 'tasks'
no previously-included directories found matching 'tests'
Adding pip 8.1.2 to easy-install.pth file
Installing pip script to /usr/bin
Installing pip2.6 script to /usr/bin
Installing pip2 script to /usr/bin

Installed /usr/lib/python2.6/site-packages/pip-8.1.2-py2.6.egg
Processing dependencies for pip

Code: Select all

pip install rrdtool
DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
Collecting rrdtool
/usr/lib/python2.6/site-packages/pip-8.1.2-py2.6.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
/usr/lib/python2.6/site-packages/pip-8.1.2-py2.6.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Downloading rrdtool-0.1.4.tar.gz
Installing collected packages: rrdtool
  Running setup.py install for rrdtool ... done
Successfully installed rrdtool-0.1.4
/usr/lib/python2.6/site-packages/pip-8.1.2-py2.6.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning

Code: Select all

[root@lussvpnagiosdb00 ~]# /usr/local/nagiosna/bin/initialize_source.py --directory /usr/local/nagiosna/var/ASA172.22.249.254 --port 9996
Traceback (most recent call last):
  File "/usr/local/nagiosna/bin/initialize_source.py", line 16, in <module>
    import rrdtool
ImportError: /usr/lib64/python2.6/site-packages/rrdtool.so: undefined symbol: rrd_flushcached
[root@lussvpnagiosdb00 ~]# service nagiosna restart
NagiosNA backend stopped.
NagiosNA backend started...
[root@lussvpnagiosdb00 ~]# python
Python 2.6.6 (r266:84292, May 22 2015, 08:34:51)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-15)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import rrdtool
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: /usr/lib64/python2.6/site-packages/rrdtool.so: undefined symbol: rrd_flushcached
>>>

Code: Select all

ll /usr/local/nagiosna/bin/
total 108
-rwsrwsr-t. 1 nna  nnacmd  3221 May 10 05:07 capd.py
-rwSr-Sr-T. 1 root nnacmd  2966 May 10 05:07 capd.pyc
-rwsrwsr-t. 1 nna  nnacmd  2127 May 10 05:07 config.py
-rwSr-Sr-T. 1 root nnacmd  3007 May 10 05:07 config.pyc
-rwsrwsr-t. 1 nna  nnacmd  3608 May 10 05:07 get_square_matrix.py
-rwsrwsr-t. 1 nna  nnacmd  5140 May 10 05:07 get_square_matrix_query.py
-rwsrwsr-t. 1 nna  nnacmd  4093 May 10 05:07 initialize_source.py
-rw-r-Sr-T. 1 nna  nnacmd  5003 Jun  9 22:30 initialize_source.pyc
-rwsrwsr-t. 1 nna  nnacmd     0 May 10 05:07 __init__.py
-rwsrwsr-t. 1 nna  nnacmd  2154 May 10 05:07 nagiosna
-rwsrwsr-t. 1 nna  nnacmd  7782 May 10 05:07 netflow_checks.py
-rw-r-Sr-T. 1 nna  nnacmd  8867 Jun  9 22:30 netflow_checks.pyc
-rwsrwsr-t. 1 nna  nnacmd 10907 May 10 05:07 nfdump.py
-rwsrwsr-t. 1 nna  nnacmd  6277 May 10 05:07 notify.py
-rw-r-Sr-T. 1 nna  nnacmd  6816 Jun  9 22:30 notify.pyc
-rwsrwsr-t. 1 nna  nnacmd  4359 May 10 05:07 rc.py
-rwsrwsr-t. 1 nna  nnacmd  4861 May 10 05:07 reap_files.py

Code: Select all

ls -ltr | grep rrd*
[root@lussvpnagiosdb00 site-packages]# ls -ltr | grep rrd
-rw-r--r--.  1 root root    238 Feb 20  2014 py_rrdtool-0.2.1-py2.6.egg-info
-rwxr-xr-x.  1 root root  17832 Feb 20  2014 rrdtoolmodule.so
-rwxr-xr-x   1 root root  55466 Aug  5 01:01 rrdtool.so
drwxr-xr-x   2 root root   4096 Aug  5 01:01 rrdtool-0.1.4-py2.6.egg-info
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Bandwidth usage graphs

Post by bwallace »

A few posts earlier, your ls -l output of /usr/local indicates you have Nagios core installed on this server:

drwxr-xr-x. 8 nagios nagios 4096 Jul 25 2015 nagios

To rule out any type of aberration, on a default core install here, I ran 'ls -l /usr/local' and see:
drwxr-xr-x 9 nagios nagios 4096 Dec 30 2015 nagios


If this is the case we are spinning our wheels here. Each Nagios product must reside on a dedicated server. While one can get them installed on a server together, problems will eventually arise.
Are you able to start over with a brand new install of NNA on a fresh server?

From the 'Installation Prerequisites' section of our manual installation doc:
Nagios Enterprises highly recommends and will only support installing Nagios Network Analyzer on a newly installed,
“clean” system (a bare minimal install with nothing else installed or configured).
Attempting to install Nagios Network Analyzer on a pre-existing system with other applications already installed can cause the Nagios
Network Analyzer installation process to fail, critical system components and settings (e.g. database servers) to be modified in a way
that negatively affects other applications, and previously installed applications to be automatically upgraded or
removed. While installing Network Analyzer on a system with other applications is possible, it is not recommended due to the possible interactions and
complexity of multiple components that are required for Nagios Network Analyzer to function. If you choose to ignore these warnings,
you do so at your own risk
https://assets.nagios.com/downloads/nag ... 1456514247
Be sure to check out the Knowledgebase for helpful articles and solutions!