SNMP v3?
Moderators: Developers, Moderators
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
While I love people testing CVS, please check out the following annoucement.
http://forums.cacti.net/viewtopic.php?t=6002
http://forums.cacti.net/viewtopic.php?t=6002
[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]
[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]
Hmm, I couldn't get it to do much for me yesterday!rony wrote:While I love people testing CVS, please check out the following annoucement.
http://forums.cacti.net/viewtopic.php?t=6002
Does anyone produce nitely builds that we can all comment on?
Does the CVS version require any sort of bootstrapping?
Where do I send patches/questions (I don't see a Cacti-Dev mailing list)?
I'm more than pleased to test!
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Perldork,
There is a known issue with the 0.8.7 snmpV3 that I have open right now. May get time to fix this weekend. So therefore, there is no use testing yet.
Larry
There is a known issue with the 0.8.7 snmpV3 that I have open right now. May get time to fix this weekend. So therefore, there is no use testing yet.
Larry
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?
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?
Hello to Michigan and Wisconsin (I grew up in Milwaukee).
I might have some spare CPU cycles to help out with this!
When this is done, is anyone producing a "nitely build" site where people can check out builds represented on a nitely (say 2am PST) basis? I've found this has helped developers when people say "cacti-20050125 worked, but now it's broken with cacti-20050126".TheWitness wrote:Perldork,
There is a known issue with the 0.8.7 snmpV3 that I have open right now. May get time to fix this weekend. So therefore, there is no use testing yet.
I might have some spare CPU cycles to help out with this!
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
We turned off nightly builds, because we have major changes being added to cacti in this month and next.
What is broken today, might not be broken next week, but might be broken or non existing the following week..
What is broken today, might not be broken next week, but might be broken or non existing the following week..
[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]
[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]
That makes sense, I totally understand that. BUT...with that in mind (:)) how can I help test? I'm assuming it's more of a developer communications thing. I would love to be on a mailing list which says "Try now....try now....." so that I can test out the lastest and greatest features, and offer back patches and such.rony wrote:We turned off nightly builds, because we have major changes being added to cacti in this month and next.
What is broken today, might not be broken next week, but might be broken or non existing the following week..
I'm a developer (more Java than PHP, but I know Perl so PHP is easy enough to pick up), and I would love to contribute.
Another feature I would like to add (perhaps we can start another thread) is to overlap different data soruces between devices. For instance, I want to be able to overlay the Load statistics between all of our machines in a cluster, I don't see a way to do that in 0.8.6, so I'm willing to write something.
Any suggestions? Want me to start a new thread? Is there a different forum I should be bringing this up in.
Basically, SNMPv3 is my motivator, but since I'll be getting that, I feel obligated to give something back.
Thanks guys!
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
I will talk to the other developers about it.
Concerning the "overlapping", you can do it. You have to make a custom graph that contains all the Datasources and I would suggest either lines or stacking the sources.
That would be a corner case, IMO, and we typically don't like to code a solution in, if one already exists proceeduraly.
Concerning the "overlapping", you can do it. You have to make a custom graph that contains all the Datasources and I would suggest either lines or stacking the sources.
That would be a corner case, IMO, and we typically don't like to code a solution in, if one already exists proceeduraly.
[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]
[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]
Thanks!rony wrote:I will talk to the other developers about it.
Ahhh, there we go. New graph with "None" and "None" and start adding in datasources. Thanks! That should work!rony wrote:Concerning the "overlapping", you can do it. You have to make a custom graph that contains all the Datasources and I would suggest either lines or stacking the sources.
Yup, fair enough, sounds like it would be a PITA to maintain. The above solution works just fine for me.That would be a corner case, IMO, and we typically don't like to code a solution in, if one already exists proceeduraly.
I found a misspelling. This diff against CVS. If there is a dev mailing list I should send these to instead, please let me know.TheWitness wrote:There is a known issue with the 0.8.7 snmpV3 that I have open right now. May get time to fix this weekend. So therefore, there is no use testing yet.
[bknitter@lame cacti-cvs]$ cvs diff lib/snmp.php
Index: lib/snmp.php
===================================================================
RCS file: /cvsroot/cacti/cacti/lib/snmp.php,v
retrieving revision 1.70
diff -r1.70 snmp.php
39c39
< function cacti_snmp_get($hostname, $community, $oid, $version, $v3username, $v3password, $v3authproto, $v3privpassphrase, $v3privptoto, $port = 161, $timeout = 500, $environ = SNMP_POLLER) {
---
> function cacti_snmp_get($hostname, $community, $oid, $version, $v3username, $v3password, $v3authproto, $v3privpassphrase, $v3privproto, $port = 161, $timeout = 500, $environ = SNMP_POLLER) {
95c95
< function cacti_snmp_walk($hostname, $community, $oid, $version, $v3username, $v3password, $v3authproto, $v3privpassphrase, $v3privptoto, $port = 161, $timeout = 500, $environ = SNMP_POLLER) {
---
> function cacti_snmp_walk($hostname, $community, $oid, $version, $v3username, $v3password, $v3authproto, $v3privpassphrase, $v3privproto, $port = 161, $timeout = 500, $environ = SNMP_POLLER) {
0.010u 0.000s 0:00.68 1.4% 0+0k 0+0io 277pf+0w
[bknitter@lame cacti-cvs]$
Note: $v3privp<b>t</b>oto is misspelled, should be $v3privp<b>r</b>oto
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Thanks for the catch. Fixed in CVS.
Larry
Larry
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?
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?
I'm also having issues with getting Cacti CVS to work on my server.
Missing path_cactilog:
[bknitter@lame cacti-cvs]$ cvs diff include/config_settings.php
Index: include/config_settings.php
===================================================================
RCS file: /cvsroot/cacti/cacti/include/config_settings.php,v
retrieving revision 1.98
diff -r1.98 config_settings.php
69a70,75
> "path_cactilog" => array(
> "friendly_name" => "Path To Cacti Log",
> "description" => "The path to the cacti log.",
> "method" => "textbox",
> "max_length" => "255"
> ),
853c859
< ?>
\ No newline at end of file
---
> ?>
0.000u 0.010s 0:01.29 0.7% 0+0k 0+0io 277pf+0w
[bknitter@lame cacti-cvs]$
And I'm also getting a error when viewing a host/device:
Notice: Undefined variable: snmp_value in /home/bknitter/public_html/cacti-cvs/lib/snmp.php on line 87
Warning: implode(): Bad arguments. in /home/bknitter/public_html/cacti-cvs/lib/snmp.php on line 87
SNMP error
Does the CVS version require PHP 5? I only have PHP 4 on this machine.
Missing path_cactilog:
[bknitter@lame cacti-cvs]$ cvs diff include/config_settings.php
Index: include/config_settings.php
===================================================================
RCS file: /cvsroot/cacti/cacti/include/config_settings.php,v
retrieving revision 1.98
diff -r1.98 config_settings.php
69a70,75
> "path_cactilog" => array(
> "friendly_name" => "Path To Cacti Log",
> "description" => "The path to the cacti log.",
> "method" => "textbox",
> "max_length" => "255"
> ),
853c859
< ?>
\ No newline at end of file
---
> ?>
0.000u 0.010s 0:01.29 0.7% 0+0k 0+0io 277pf+0w
[bknitter@lame cacti-cvs]$
And I'm also getting a error when viewing a host/device:
Notice: Undefined variable: snmp_value in /home/bknitter/public_html/cacti-cvs/lib/snmp.php on line 87
Warning: implode(): Bad arguments. in /home/bknitter/public_html/cacti-cvs/lib/snmp.php on line 87
SNMP error
Does the CVS version require PHP 5? I only have PHP 4 on this machine.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Give me a few to research. I am working through a formatting issue. Will update you soon.
Larry
Larry
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?
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?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Update CVS and try again. Reinstall. If you have an IM program, it might be easier to communicate.
Larry
Larry
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?
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?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Also, the builtin SNMPv3 support was rolled into PHP a few releases ago and is totally undocumented. If you are still getting errors after you update CVS, I will be very interested in working things out with you.
Larry
Larry
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?
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?
I tried you on IM, didn't get a response. I updated my pofile. Feel free to ping me.TheWitness wrote:Also, the builtin SNMPv3 support was rolled into PHP a few releases ago and is totally undocumented. If you are still getting errors after you update CVS, I will be very interested in working things out with you.
It appears that lib/snmp.php (version 1.71) at line 88, $snmp_value is empty now. I figured out what happened, it's checking for the snmp version, and it's not "ucd-snmp" or "net-snmp", mine says "net-snmp-52".
Here's the way I would fix it!
[bknitter@lame cacti-cvs]$ cvs diff lib/snmp.php
Index: lib/snmp.php
===================================================================
RCS file: /cvsroot/cacti/cacti/lib/snmp.php,v
retrieving revision 1.71
diff -r1.71 snmp.php
83a84,87
> }elseif (read_config_option("snmp_version") == "net-snmp-52") {
> exec(read_config_option("path_snmpget") . " -O vt $snmp_auth -v $version -t $timeout -r $retries $hostname:$port $oid", $snmp_value);
> }else {
> die("Cannot determine snmp type from: ".read_config_option("snmp_version"));
142a147,150
> }elseif (read_config_option("snmp_version") == "net-snmp-52") {
> $temp_array = exec_into_array(read_config_option("path_snmpwalk") . " $snmp_auth -v $version -t $timeout -r $retries $hostname:$port $oid");
> }else {
> die("Cannot determine snmp type from: ".read_config_option("snmp_version"));
224c232
< ?>
\ No newline at end of file
---
> ?>
0.000u 0.000s 0:00.65 0.0% 0+0k 0+0io 277pf+0w
[bknitter@lame cacti-cvs]$
Who is online
Users browsing this forum: No registered users and 0 guests