IP SLA monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

IP SLA monitoring

Post by RIDS_I2MP »

Hi Team,

We want to monitor IP SLA for out switches and Routers.
Could you please let us know if it can be achieved through Nagios and also provide us the process to implement it.
Thanks & Regards,
I2MP Team.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: IP SLA monitoring

Post by ssax »

We don't have any official plugins for this, if you're able to get the SNMP OID you could use the SNMP or SNMP Walk wizards in Configure > Configuration Wizards but more than likely you'll need to find a plugin that will do what you want:

Here is a plugin I found:

https://exchange.nagios.org/directory/P ... ck/details

Or this one:

https://exchange.nagios.org/directory/P ... la/details

You can see other Cisco plugins here:

https://exchange.nagios.org/directory/P ... Gear/Cisco

For adding to XI you can follow this guide:

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

As we do not have any IP SLA devices you will need to test out the plugins you find to make sure they meet your needs.

Let us know if you have any questions.
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: IP SLA monitoring

Post by RIDS_I2MP »

Hello,

As per you suggestion, I installed the check_cisco_ip_sla.py plugin.

While testing the same, we are getting below error:
[root@HO1-NAGIOSXI libexec]# /usr/local/nagios/libexec/check_cisco_ip_sla.py -H 10.19.0.254 -C 'mrtg#429monitor' -p 443
Traceback (most recent call last):
File "/usr/local/nagios/libexec/check_cisco_ip_sla.py", line 16, in <module>
from easysnmp import Session
ModuleNotFoundError: No module named 'easysnmp'
[root@HO1-NAGIOSXI libexec]#


When we are trying to install “easysnmp” module, we are getting some error and we are not able to install it. PFA the pip version, python version details and error message for the same.

Could you please provide a way to install the required module?
Also, we are good to use other plugins as well if there is any to monitor IP SLA. Please suggest!
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
I2MP Team.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: IP SLA monitoring

Post by ssax »

I think you need to install net-snmp-devel first:

Code: Select all

yum install net-snmp-devel -y
pip3 install easysnmp
Then run the command again and send fresh output.
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: IP SLA monitoring

Post by RIDS_I2MP »

Hello,

Below error we are getting:

[root@HO1-NAGIOSXI ~]# yum install net-snmp-devel -y
Last metadata expiration check: 2:03:58 ago on Wed 22 Jul 2020 06:21:56 PM +04.
Dependencies resolved.
========================================================================================================================================================================
Package Architecture Version Repository Size
========================================================================================================================================================================
Installing:
net-snmp-devel x86_64 1:5.8-7.el8.2 nagiosxi-deps 271 k
Upgrading:
elfutils x86_64 0.178-7.el8 BaseOS 540 k
elfutils-libelf x86_64 0.178-7.el8 BaseOS 212 k
elfutils-libs x86_64 0.178-7.el8 BaseOS 292 k
lm_sensors-libs x86_64 3.4.0-21.20180522git70f7e08.el8 BaseOS 59 k
Installing dependencies:
elfutils-devel x86_64 0.178-7.el8 BaseOS 86 k
elfutils-libelf-devel x86_64 0.178-7.el8 BaseOS 58 k
libzstd-devel x86_64 1.4.2-2.el8 BaseOS 43 k
lm_sensors-devel x86_64 3.4.0-21.20180522git70f7e08.el8 BaseOS 33 k
popt-devel x86_64 1.16-14.el8 BaseOS 30 k
rpm-devel x86_64 4.14.2-37.el8 BaseOS 140 k
xz-devel x86_64 5.2.4-3.el8 BaseOS 62 k
Installing weak dependencies:
elfutils-debuginfod-client x86_64 0.178-7.el8 AppStream 62 k
elfutils-debuginfod-client-devel x86_64 0.178-7.el8 AppStream 53 k

Transaction Summary
========================================================================================================================================================================
Install 10 Packages
Upgrade 4 Packages

Total size: 1.9 M
Downloading Packages:
[SKIPPED] elfutils-debuginfod-client-0.178-7.el8.x86_64.rpm: Already downloaded
[SKIPPED] elfutils-debuginfod-client-devel-0.178-7.el8.x86_64.rpm: Already downloaded
[SKIPPED] elfutils-devel-0.178-7.el8.x86_64.rpm: Already downloaded
[SKIPPED] elfutils-libelf-devel-0.178-7.el8.x86_64.rpm: Already downloaded
[SKIPPED] libzstd-devel-1.4.2-2.el8.x86_64.rpm: Already downloaded
[SKIPPED] lm_sensors-devel-3.4.0-21.20180522git70f7e08.el8.x86_64.rpm: Already downloaded
[SKIPPED] popt-devel-1.16-14.el8.x86_64.rpm: Already downloaded
[SKIPPED] rpm-devel-4.14.2-37.el8.x86_64.rpm: Already downloaded
[SKIPPED] xz-devel-5.2.4-3.el8.x86_64.rpm: Already downloaded
[SKIPPED] net-snmp-devel-5.8-7.el8.2.x86_64.rpm: Already downloaded
[SKIPPED] elfutils-0.178-7.el8.x86_64.rpm: Already downloaded
[SKIPPED] elfutils-libelf-0.178-7.el8.x86_64.rpm: Already downloaded
[SKIPPED] elfutils-libs-0.178-7.el8.x86_64.rpm: Already downloaded
[SKIPPED] lm_sensors-libs-3.4.0-21.20180522git70f7e08.el8.x86_64.rpm: Already downloaded
warning: /var/cache/dnf/nagiosxi-deps-9e4a431b9d4d402a/packages/net-snmp-devel-5.8-7.el8.2.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID ac25decd: NOKEY
Nagios XI Dependencies 158 kB/s | 3.0 kB 00:00
GPG key at file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NAGIOS-V2 (0xC62934A0) is already installed
The GPG keys listed for the "Nagios XI Dependencies" repository are already installed but they are not correct for this package.
Check that the correct key URLs are configured for this repository.. Failing package is: net-snmp-devel-1:5.8-7.el8.2.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NAGIOS-V2
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'yum clean packages'.
Error: GPG check FAILED
[root@HO1-NAGIOSXI ~]#
[root@HO1-NAGIOSXI ~]#
[root@HO1-NAGIOSXI ~]# pip3 install easysnmp
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Collecting easysnmp
Using cached https://files.pythonhosted.org/packages ... 2.5.tar.gz
Installing collected packages: easysnmp
Running setup.py install for easysnmp ... error
Complete output from command /usr/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-3892e_gd/easysnmp/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-950x10rz-record/install-record.txt --single-version-externally-managed --compile:
/bin/sh: net-snmp-config: command not found
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/easysnmp
copying easysnmp/helpers.py -> build/lib.linux-x86_64-3.6/easysnmp
copying easysnmp/compat.py -> build/lib.linux-x86_64-3.6/easysnmp
copying easysnmp/session.py -> build/lib.linux-x86_64-3.6/easysnmp
copying easysnmp/exceptions.py -> build/lib.linux-x86_64-3.6/easysnmp
copying easysnmp/variables.py -> build/lib.linux-x86_64-3.6/easysnmp
copying easysnmp/easy.py -> build/lib.linux-x86_64-3.6/easysnmp
copying easysnmp/__init__.py -> build/lib.linux-x86_64-3.6/easysnmp
copying easysnmp/utils.py -> build/lib.linux-x86_64-3.6/easysnmp
running build_ext
building 'easysnmp.interface' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/easysnmp
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python3.6m -c easysnmp/interface.c -o build/temp.linux-x86_64-3.6/easysnmp/interface.o -Wno-unused-function
easysnmp/interface.c:24:10: fatal error: net-snmp/net-snmp-config.h: No such file or directory
#include <net-snmp/net-snmp-config.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1

----------------------------------------
Command "/usr/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-3892e_gd/easysnmp/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-950x10rz-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-3892e_gd/easysnmp/
[root@HO1-NAGIOSXI ~]#


Please help us on the same.

Thanks for your support!!
Thanks & Regards,
I2MP Team.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: IP SLA monitoring

Post by ssax »

I'm labbing this up and will post an update shortly.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: IP SLA monitoring

Post by ssax »

Please edit your /etc/yum.repos.d/nagios-8.repo file and under the [nagiosxi-deps] section, change gpgcheck=1 to gpgcheck=0.

Then try again:

Code: Select all

yum install net-snmp-devel -y
pip3 install easysnmp
I have reported this to the developers, they will need to update the repo to re-sign the package with our key.
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: IP SLA monitoring

Post by RIDS_I2MP »

Hello,

I was able to monitor IP SLA, thanks for your help!!
Please keep this thread open for a few more days so that we can get back to you if we face any issues.
Thanks & Regards,
I2MP Team.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: IP SLA monitoring

Post by ssax »

That's great to hear! We'll leave it open.
Locked