SNMP v3?

Anything that you think should be in Cacti.

Moderators: Developers, Moderators

perldork
Cacti User
Posts: 69
Joined: Fri Nov 05, 2004 9:06 am
Contact:

Post by perldork »

TheWitness wrote:Are you suggesting that there are two possible usernames?
Ack, no :). That was a mistake. Fixed. Sorry.
I like the interface. I don't beleive that this is supportable in native PHP. However, we can get close or possibly integrate the Javascript right in the hosts page. Let's keep it up.
Yes, the javascript would have to be integrated into the <head> of the page.
[url=http://www.semintelligent.com/blog]Max Schubert a.k.a perldork[/url]
[url=http://wwd-hosting.net/ensim/]Ensim scripts and utilities (GPL)[/url] - [url=http://nmap-scanner.sf.net]Perform nmap scans with perl (GPL)[/url]
[url=http://lmf.sf.net]Perl-based log monitoring framework(GPL)[/url]
perldork
Cacti User
Posts: 69
Joined: Fri Nov 05, 2004 9:06 am
Contact:

Post by perldork »

TheWitness wrote:Also, if there is no authentication or privacy protocol, is the device just open to users to poll?
TheWitness
Good question! I found out I misread the net-snmp docs .. I will have to look at RFCs to see if this is true in all cases, but for Net-SNMP the choices look to be:
* User authentication, no privacy protocol, no privacy passphrase
* User authentication, privacy protocol, no privacy passphrase
* User authentication, privacy protocol, privacy passphrase

So it appears that while no auth no priv is a valid state, it isn't useful from a client perspective.

I tried to use that state with the SNMPv3 php functions and it won't allow it

So, the No Authentication, No Privacy appears to be useless for our needs :) .. authentication is required always.

Updated the mockup to reflect this.
[url=http://www.semintelligent.com/blog]Max Schubert a.k.a perldork[/url]
[url=http://wwd-hosting.net/ensim/]Ensim scripts and utilities (GPL)[/url] - [url=http://nmap-scanner.sf.net]Perform nmap scans with perl (GPL)[/url]
[url=http://lmf.sf.net]Perl-based log monitoring framework(GPL)[/url]
perldork
Cacti User
Posts: 69
Joined: Fri Nov 05, 2004 9:06 am
Contact:

Post by perldork »

UI looks good .. :) .. no javascript just means you will have to validate the selections server-side, which you would have to do anyway :p.

Make sure to add 'None' as a privacy protocol as that is a valid choice!

I would also put some kind of note to let the user know that the user authentication files are required and all the privacy fields are optional.

Nice job :).
[url=http://www.semintelligent.com/blog]Max Schubert a.k.a perldork[/url]
[url=http://wwd-hosting.net/ensim/]Ensim scripts and utilities (GPL)[/url] - [url=http://nmap-scanner.sf.net]Perform nmap scans with perl (GPL)[/url]
[url=http://lmf.sf.net]Perl-based log monitoring framework(GPL)[/url]
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Where would the authentication files go?

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Would this be a correct mapping for security level?

"authNoPriv" => "User authentication, no privacy protocol, no privacy passphrase",
"authPriv" => "User authentication, privacy protocol, no privacy passphrase ",
"authPriv" => "User authentication, privacy protocol, privacy passphrase");
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
perldork
Cacti User
Posts: 69
Joined: Fri Nov 05, 2004 9:06 am
Contact:

Post by perldork »

Updated snmpv3 class to reflect latest changes:

http://ensim.webscorpion.com/scripts/ca ... class.phps
Last edited by perldork on Sun Nov 07, 2004 11:18 pm, edited 1 time in total.
[url=http://www.semintelligent.com/blog]Max Schubert a.k.a perldork[/url]
[url=http://wwd-hosting.net/ensim/]Ensim scripts and utilities (GPL)[/url] - [url=http://nmap-scanner.sf.net]Perform nmap scans with perl (GPL)[/url]
[url=http://lmf.sf.net]Perl-based log monitoring framework(GPL)[/url]
perldork
Cacti User
Posts: 69
Joined: Fri Nov 05, 2004 9:06 am
Contact:

Post by perldork »

TheWitness wrote:Where would the authentication files go?

TheWitness
More mistyping .. I meant 'fields' not files. Sorry.
[url=http://www.semintelligent.com/blog]Max Schubert a.k.a perldork[/url]
[url=http://wwd-hosting.net/ensim/]Ensim scripts and utilities (GPL)[/url] - [url=http://nmap-scanner.sf.net]Perform nmap scans with perl (GPL)[/url]
[url=http://lmf.sf.net]Perl-based log monitoring framework(GPL)[/url]
perldork
Cacti User
Posts: 69
Joined: Fri Nov 05, 2004 9:06 am
Contact:

Post by perldork »

TheWitness wrote:Would this be a correct mapping for security level?

"authNoPriv" => "User authentication, no privacy protocol, no privacy passphrase",
"authPriv" => "User authentication, privacy protocol, no privacy passphrase ",
"authPriv" => "User authentication, privacy protocol, privacy passphrase");
Actually, as far as the UI goes, just need two choices:

'authNoPriv' => 'User authentication, no privacy',
'authPriv' => 'User authentication, privacy';

The privacy field choices are:
* No protocol, no passphrase
* Protocol, no passphrase
* Protocol, passphrase

So having a privacy passphrase with no protocol is illegal, but the reverse isn't :).
[url=http://www.semintelligent.com/blog]Max Schubert a.k.a perldork[/url]
[url=http://wwd-hosting.net/ensim/]Ensim scripts and utilities (GPL)[/url] - [url=http://nmap-scanner.sf.net]Perform nmap scans with perl (GPL)[/url]
[url=http://lmf.sf.net]Perl-based log monitoring framework(GPL)[/url]
perldork
Cacti User
Posts: 69
Joined: Fri Nov 05, 2004 9:06 am
Contact:

Post by perldork »

updated mockup to reflect rule that privacy protocol must be selected in order to use a passphrase.
Last edited by perldork on Sun Nov 07, 2004 10:05 pm, edited 1 time in total.
[url=http://www.semintelligent.com/blog]Max Schubert a.k.a perldork[/url]
[url=http://wwd-hosting.net/ensim/]Ensim scripts and utilities (GPL)[/url] - [url=http://nmap-scanner.sf.net]Perform nmap scans with perl (GPL)[/url]
[url=http://lmf.sf.net]Perl-based log monitoring framework(GPL)[/url]
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I have sent a note to Ian to review your code. I have posted most of the menuing to the 0.8.7 CVS for now. Before going any futher, I have asked him to review the possible inclusion of the Java hooks in the menuing system that he has put in place.

Great work!!!

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
perldork
Cacti User
Posts: 69
Joined: Fri Nov 05, 2004 9:06 am
Contact:

Post by perldork »

Hey, thanks for letting me help with this, I have really enjoyed it :); we knocked this one out pretty quickly if you ask me. I would love to help out with this project further if there is need ..

Do you have a bug list posted anywhere? A developer mailing list? Maybe I could help with some bug fixing? Or testing? I have used this project over the course of several years and would really enjoy being able to contribute work to it.
[url=http://www.semintelligent.com/blog]Max Schubert a.k.a perldork[/url]
[url=http://wwd-hosting.net/ensim/]Ensim scripts and utilities (GPL)[/url] - [url=http://nmap-scanner.sf.net]Perform nmap scans with perl (GPL)[/url]
[url=http://lmf.sf.net]Perl-based log monitoring framework(GPL)[/url]
perldork
Cacti User
Posts: 69
Joined: Fri Nov 05, 2004 9:06 am
Contact:

Post by perldork »

Nevermind, found the bug tracking system. My bad.
[url=http://www.semintelligent.com/blog]Max Schubert a.k.a perldork[/url]
[url=http://wwd-hosting.net/ensim/]Ensim scripts and utilities (GPL)[/url] - [url=http://nmap-scanner.sf.net]Perform nmap scans with perl (GPL)[/url]
[url=http://lmf.sf.net]Perl-based log monitoring framework(GPL)[/url]
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Larry,

I would suggest adding "V3 " on the Authenication and Privacy headers so there is no confusion that they are only used in SNMPv3.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Perldork,

SNMPv3 is in CVS for 0.8.7. Do not overwrite your production system. Only cmd.php should work right now. Since I don't have any snmpv3 devices, I need testers. If there is anything you don't like about the interface, shout. Also, I am not currently conducting host pre-verification, so I know that there is a possibility of a segfault. Just use known values for now.

The method that you will use is to dump you production database, move it to a separate instance, and then upgrade that instance. New installs will not work right now.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
perldork
Cacti User
Posts: 69
Joined: Fri Nov 05, 2004 9:06 am
Contact:

Post by perldork »

Hi Witness,

Cool. I will test the CVS version this week and let you know how it goes :).
[url=http://www.semintelligent.com/blog]Max Schubert a.k.a perldork[/url]
[url=http://wwd-hosting.net/ensim/]Ensim scripts and utilities (GPL)[/url] - [url=http://nmap-scanner.sf.net]Perform nmap scans with perl (GPL)[/url]
[url=http://lmf.sf.net]Perl-based log monitoring framework(GPL)[/url]
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests