Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


SNMP v3?
Goto page Previous  1, 2, 3, 4, 5, 6  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Feature Requests
Author Message
rony
Developer/Forum Admin


Joined: 17 Nov 2003
Posts: 5448
Location: Wisconsin, USA

PostPosted: Thu Jan 27, 2005 8:05 am    Post subject: Reply with quote

While I love people testing CVS, please check out the following annoucement.

http://forums.cacti.net/viewtopic.php?t=6002
Back to top
knitterb



Joined: 27 Jan 2005
Posts: 24

PostPosted: Thu Jan 27, 2005 11:13 am    Post subject: Reply with quote

rony wrote:
While I love people testing CVS, please check out the following annoucement.

http://forums.cacti.net/viewtopic.php?t=6002


Hmm, I couldn't get it to do much for me yesterday!

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!
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9671
Location: MI, USA

PostPosted: Thu Jan 27, 2005 11:18 am    Post subject: Reply with quote

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
Back to top
knitterb



Joined: 27 Jan 2005
Posts: 24

PostPosted: Thu Jan 27, 2005 11:44 am    Post subject: Reply with quote

Hello to Michigan and Wisconsin (I grew up in Milwaukee).

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.


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".

I might have some spare CPU cycles to help out with this!
Back to top
rony
Developer/Forum Admin


Joined: 17 Nov 2003
Posts: 5448
Location: Wisconsin, USA

PostPosted: Thu Jan 27, 2005 12:37 pm    Post subject: Reply with quote

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..
Back to top
knitterb



Joined: 27 Jan 2005
Posts: 24

PostPosted: Thu Jan 27, 2005 12:51 pm    Post subject: Reply with quote

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..


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.

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!
Back to top
rony
Developer/Forum Admin


Joined: 17 Nov 2003
Posts: 5448
Location: Wisconsin, USA

PostPosted: Thu Jan 27, 2005 1:08 pm    Post subject: Reply with quote

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.
Back to top
knitterb



Joined: 27 Jan 2005
Posts: 24

PostPosted: Thu Jan 27, 2005 1:40 pm    Post subject: Reply with quote

rony wrote:
I will talk to the other developers about it.


Thanks!

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.


Ahhh, there we go. New graph with "None" and "None" and start adding in datasources. Thanks! That should work!

Quote:

That would be a corner case, IMO, and we typically don't like to code a solution in, if one already exists proceeduraly.


Yup, fair enough, sounds like it would be a PITA to maintain. The above solution works just fine for me.
Back to top
knitterb



Joined: 27 Jan 2005
Posts: 24

PostPosted: Sat Jan 29, 2005 5:31 pm    Post subject: Reply with quote

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.


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.

[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
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9671
Location: MI, USA

PostPosted: Sat Jan 29, 2005 6:03 pm    Post subject: Reply with quote

Thanks for the catch. Fixed in CVS.

Larry
Back to top
knitterb



Joined: 27 Jan 2005
Posts: 24

PostPosted: Sat Jan 29, 2005 6:39 pm    Post subject: Reply with quote

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.
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9671
Location: MI, USA

PostPosted: Sat Jan 29, 2005 6:41 pm    Post subject: Reply with quote

Give me a few to research. I am working through a formatting issue. Will update you soon.

Larry
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9671
Location: MI, USA

PostPosted: Sat Jan 29, 2005 6:50 pm    Post subject: Reply with quote

Update CVS and try again. Reinstall. If you have an IM program, it might be easier to communicate.

Larry
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9671
Location: MI, USA

PostPosted: Sat Jan 29, 2005 6:52 pm    Post subject: Reply with quote

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
Back to top
knitterb



Joined: 27 Jan 2005
Posts: 24

PostPosted: Sat Jan 29, 2005 7:30 pm    Post subject: Reply with quote

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.


I tried you on IM, didn't get a response. I updated my pofile. Feel free to ping me.

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]$
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Feature Requests All times are GMT - 5 Hours
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Page 4 of 6

 



Powered by phpBB © 2001, 2005 phpBB Group