SNMP V3 Nagios

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
User avatar
sgalliani
Posts: 2
Joined: Wed Oct 09, 2013 2:45 am

SNMP V3 Nagios

Post by sgalliani »

Hi!, I'm a student in telecommunication and network, i am currently working on a project to install EyesofNetwork. EyesofNetwork is kind of like FAN with different monitoring modules. Nagios was working fine until my supervisor demanded that i change the version of snmp to version 3 for security reasons.

So i did a bit of research, first they said that i should add it in nagios ressources to implement it to the commands
Image

in Ressources USER2 is where is added the public community before, the same in the snmp file and the snmptrapd file. Even though i had now install snmp v3 on the server which i added in USER8.

I tested it with an snmpwalk and it works just fine but when i tried the nagios plugins on a linux server with only snmp v3, it won't be able to get any information. It must have something to do with the plugins or the commands. I am not experienced enough though and can't seem to find much on the subject of snmp v3 nagios.

Image

This is one of the commands to check the partitions.
Anyhow forgive me for the bad english, i'm still learning, if you need any other details i would gladly oblige.

Since i wrote the article i have discovered a few more things that kind of helped me but i'm still blocked. I understand now how to partially execute plugins with the snmp v3, except i'm specifically trying to do it on switch procurves. I went to the manubulon website to get more information but my command still doesn't work. I tried looking online for specific procurve plugins but i'm lost http://nagios.manubulon.com/snmp_int.html
"Les peuples ne devraient pas avoir peur de leurs gouvernements. Les gouvernements devraient avoir peur du peuple"
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: SNMP V3 Nagios

Post by sreinhardt »

It seems like you've jumbled a couple possibly related issues together in one thread here, so let's start by clearing up exactly what is happening and what you are looking for.

1) You had snmp v1 or v2 working previously, with the check_snmp_storage plugin, but after attempting to switch v3 it does not appear to be working with the plugin.

Have you verified via the snmpwalk that the oid for storage devices is the same from the previous version to the current version of snmp that you are using? I know that especially from 1-2 or 1-3 there are definitely changes that may be present.

2) You are having issues with procurve switches?

Also a side note, normally we do not support things such as FAN or the other product you are using, as they do not install in standard directories, have different or modified plugins, and generally control things in alternative ways. We will try to help, as a fair warning, at some point we may ask that you check with the respective community that this project is from.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
sgalliani
Posts: 2
Joined: Wed Oct 09, 2013 2:45 am

Re: SNMP V3 Nagios

Post by sgalliani »

sreinhardt wrote:It seems like you've jumbled a couple possibly related issues together in one thread here, so let's start by clearing up exactly what is happening and what you are looking for.

1) You had snmp v1 or v2 working previously, with the check_snmp_storage plugin, but after attempting to switch v3 it does not appear to be working with the plugin.

Have you verified via the snmpwalk that the oid for storage devices is the same from the previous version to the current version of snmp that you are using? I know that especially from 1-2 or 1-3 there are definitely changes that may be present.

2) You are having issues with procurve switches?

Also a side note, normally we do not support things such as FAN or the other product you are using, as they do not install in standard directories, have different or modified plugins, and generally control things in alternative ways. We will try to help, as a fair warning, at some point we may ask that you check with the respective community that this project is from.
I understand for the support of the respective community, this is why i'm mainly trying to focus on the Nagios Part and avoid any talk on the other product,
.The problem is i did go to the right community and no one has done snmp v3 before on this particular program.

That's the thing i am not sure i understand the concept of OIDs completely, i know that they are the leaves of snmp, they contain important information from the manufacturers of the product and the rfc reference, but i'm not sure i understand their use in plugins for nagios. (Forgive me again, i'm still a student).

I did however find the information on the plugin, as depicted in the image below
Image

But i do not understand why it would change when i installed snmp v3, i thought that i simply had to change the syntax of my commands.
However i do realized that base on the nagios.manubulon website that the check_storage command is not necessarily supported by procurve switches.

So i tried a simple command like ./check_snmp_int.pl . First when i was in snmp v1, i would have a command like "./check_snmp_int.pl -H 127.0.0.1 -C public" and it would list me the interfaces but when i try it with the snmp v3 syntax "./check_snmp_int.pl -H 127.0.0.1 -user -x AUTH-PASS -X ENCRYPT-PASS -L md5,aes".

Should i indeed check inside the plugin and get more information on the changes that might of happened?, has anyone sucesfully monitor procurve switches with snmp v3?
The rest i know i have to find myself as a student, i am not asking for you guys to do my learning, just point me in the right direction. Thank you again



UPDATE : Doing a little of research i found out there a few commands which are not supported by snmp v3 on HP procurve, at least it's what i seem to have understood.

So i decide to go back to snmp v2c and configure it on restricted for better security.
Thank you for the hint about OID. I found some commands compatible with HP Procurve, I am now getting data correctly.

This is the website where i found the commands : http://exchange.nagios.org/directory/Pl ... ve/details

This is an example of one of my switches, i know i still have to fix some things but it's already a good start.

Image

Again thank you for the hints, i try to find most of the information by myself, even if it's hard but sometimes it's not so bad to ask more experienced users
"Les peuples ne devraient pas avoir peur de leurs gouvernements. Les gouvernements devraient avoir peur du peuple"
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: SNMP V3 Nagios

Post by abrist »

You will find various issues surrounding snmp v3, sha/aes, and certain nagios plugins. The plugins have become better about v3 support though in the past 6 months. The current version of check_snmp in the nagios-plugins package does support v3. If you end up needing to check v3 devices in the future, you could always fall back to checking the oid with check_snmp.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked