cacti 0.8 Status

Important information about Cacti developments that all users should be interested in.

Moderators: Developers, Moderators

Goofball

Post by Goofball »

I was messing with 0.8 CVS the other day and noticed that it was inserting single quotes (') around the MD5 password hash in the database when I used the admin page to change the password for anything. I was unable to log in with these present. After removing the single quotes it was letting me in fine. I wonder if this might be related?
m

Post by m »

actually it had to do with my version of PHP. i upgraded to the newest version and everything works grand now.

matt
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

Goofball wrote:I was messing with 0.8 CVS the other day and noticed that it was inserting single quotes (') around the MD5 password hash in the database when I used the admin page to change the password for anything. I was unable to log in with these present. After removing the single quotes it was letting me in fine. I wonder if this might be related?
I noticed the same thing, and posted it to http://bugzilla.raxnet.net/show_bug.cgi?id=4
User avatar
drub
Cacti User
Posts: 59
Joined: Thu Jan 31, 2002 7:00 pm
Location: Las Vegas
Contact:

OK I got it working 0.8

Post by drub »

I had posted a couple weeks ago about not getting 0.8 working, I upgraded PHP and it works. Actually I tried it on another machine that is running a little later version than the first, its only running 4.1.1
the older one is running 4.0.x but I cannot upgrade it right now with too many critical items on it :-( so it works with at least as low a version as 4.1.1
User avatar
drub
Cacti User
Posts: 59
Joined: Thu Jan 31, 2002 7:00 pm
Location: Las Vegas
Contact:

Cannot Collapse Graph Trees

Post by drub »

Get an error that the graph does not exist heres the errors when I click the (-) for a tree:



Warning: Undefined index: rra_id in /home/httpd/html/cacti-0.8/graph.php on line 31

Warning: Undefined index: rra_id in /home/httpd/html/cacti-0.8/graph.php on line 34

Warning: Undefined index: local_graph_id in /home/httpd/html/cacti-0.8/graph.php on line 40

Warning: Undefined index: local_graph_id in /home/httpd/html/cacti-0.8/graph.php on line 56
GRAPH DOES NOT EXIST
User avatar
drub
Cacti User
Posts: 59
Joined: Thu Jan 31, 2002 7:00 pm
Location: Las Vegas
Contact:

Cannot change CDEF to bytes to bits graphs break

Post by drub »

If I change Bytes to bits(change graph template on a graph) The graph is broken if I paste the source into a command line I get an error, If I change it back to no CDEF the graph reappears.

ERROR: invalid rpn expression 'a,*,8'

I'm guessing there is somthing wrong with these lines
> CDEF:cdefa=a,*,8 \
> CDEF:cdefe=b,*,8 \

or maybe my version of rrdtool needs updating, I will try that now and let you know.

Example:

[root@mrtg cacti-0.8]# /usr/local/rrdtool-1.0.33/bin/rrdtool graph - \
> --imgformat=PNG \
> --start=-86400 \
> --title="RDNMTCA - Traffic - ds1/0" \
> --rigid \
> --base=1000 \
> --height=120 \
> --width=500 \
> --alt-autoscale-max \
> --lower-limit=0 \
> --vertical-label="bits per second" \
> DEF:a="/home/httpd/html/cacti-0.8/rra/rdnmtca_traffic_in_1.rrd":traffic_in:AVERAGE \
> DEF:b="/home/httpd/html/cacti-0.8/rra/rdnmtca_traffic_out_6.rrd":traffic_out:AVERAGE \
> CDEF:cdefa=a,*,8 \
> CDEF:cdefe=b,*,8 \
> AREA:cdefa#00CF00:"Inbound" \
> GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
> GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
> GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
> LINE1:cdefe#002A97:"Outbound" \
> GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
> GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
> GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s"
ERROR: invalid rpn expression 'a,*,8'
User avatar
drub
Cacti User
Posts: 59
Joined: Thu Jan 31, 2002 7:00 pm
Location: Las Vegas
Contact:

Cannot change CDEF to bytes to bits graphs break

Post by drub »

Same results after upgrading to 1.0.41 of rrdtool
anyone else have this issue, even if I try creating all brand new graphs and set them to bits before polling they still dont show up, change back to no CDEF fixes them, But I need to see graphs in bits.
User avatar
drub
Cacti User
Posts: 59
Joined: Thu Jan 31, 2002 7:00 pm
Location: Las Vegas
Contact:

Cannot change CDEF to bytes to bits graphs break

Post by drub »

Oh I think I found it the rpn expression should be

CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \

instead of

CDEF:cdefa=a,*,8 \
CDEF:cdefe=b,*,8 \

wierd, guess I'll try rebuilding the CDEF and see if I can reverse the order of those two.

OK just moving the "8" up one level above "*" in the CDEF fixed it. :-)

Happy, Happy, Joy, Joy

Drub
User avatar
drub
Cacti User
Posts: 59
Joined: Thu Jan 31, 2002 7:00 pm
Location: Las Vegas
Contact:

Cannot Collapse Graph Trees 0.8

Post by drub »

This is the only problem I am having at this time, does anyone know about this problem in 0.8 my previous post show the errors, its about 4 posts up :-)

Thanks in Advance
User avatar
drub
Cacti User
Posts: 59
Joined: Thu Jan 31, 2002 7:00 pm
Location: Las Vegas
Contact:

IDEA! URL Link in Graph Tree for multiple Cacti Servers...

Post by drub »

I think it would be cool to make an option so when you add a new graph tree that you can make it a URL link instead of a tree per say. I have 3 Cacti boxes running and what I did was change a little code so that it shows the drop down list even if there is only one graph tree, then I added my own \<option> links to cacti server 2 & 3 and named them "Page 2" and "Page 3" etc..., and so I can see 1-15 Graph Tree items on server 1 and the last items say "Page 2" and "Page 3" if I click one, I now go to server 2 and the drop down shows items 16-30 and "Page 1" and "Page 3" etc... this is cool for multi cacti pollers. and easily linking them.

I Also added a timeout for the snmpgets in the snmp_functions.php so I can poll many more devices even if an interface goes down it does not bog down the polling, I poll over 800 interfaces in about 25 seconds now.

:-)

Drub
User avatar
drub
Cacti User
Posts: 59
Joined: Thu Jan 31, 2002 7:00 pm
Location: Las Vegas
Contact:

User Managment checkbox for User Has Rights to View Tree

Post by drub »

The third item under "User Has Rights to View"
says "Tree Mode" but should say "Preview Mode"

:-)

Drub
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Re: OK I got it working 0.8

Post by raX »

drub wrote:I had posted a couple weeks ago about not getting 0.8 working, I upgraded PHP and it works. Actually I tried it on another machine that is running a little later version than the first, its only running 4.1.1
the older one is running 4.0.x but I cannot upgrade it right now with too many critical items on it :-( so it works with at least as low a version as 4.1.1
Just a note about requisite PHP versions, 0.8 requires at least PHP 4.1 or higher. The reason for this is its use of superglobals such as $_POST and $_GET.

-Ian
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Re: Cannot change CDEF to bytes to bits graphs break

Post by raX »

drub wrote:Oh I think I found it the rpn expression should be

CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \

instead of

CDEF:cdefa=a,*,8 \
CDEF:cdefe=b,*,8 \

wierd, guess I'll try rebuilding the CDEF and see if I can reverse the order of those two.

OK just moving the "8" up one level above "*" in the CDEF fixed it. :-)

Happy, Happy, Joy, Joy

Drub
I guess someone else noticed this as well and created a bug for it:

http://bugzilla.raxnet.net/show_bug.cgi?id=9

Anyhow, this is now fixed in the latest CVS/pre-release version.

-Ian
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Re: User Managment checkbox for User Has Rights to View Tree

Post by raX »

drub wrote:The third item under "User Has Rights to View"
says "Tree Mode" but should say "Preview Mode"

:-)

Drub
Fixed :D
User avatar
drub
Cacti User
Posts: 59
Joined: Thu Jan 31, 2002 7:00 pm
Location: Las Vegas
Contact:

Sounds Good!

Post by drub »

Rax, Are the Collapse and Expand Trees, not yet working in 0.8?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest