cacti 0.8 Status
Moderators: Developers, Moderators
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=4Goofball 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?
OK I got it working 0.8
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
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
Cannot Collapse Graph Trees
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
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
Cannot change CDEF to bytes to bits graphs break
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'
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'
Cannot change CDEF to bytes to bits graphs break
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.
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.
Cannot change CDEF to bytes to bits graphs break
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
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
Cannot Collapse Graph Trees 0.8
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
Thanks in Advance
IDEA! URL Link in Graph Tree for multiple Cacti Servers...
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
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 Managment checkbox for User Has Rights to View Tree
The third item under "User Has Rights to View"
says "Tree Mode" but should say "Preview Mode"
Drub
says "Tree Mode" but should say "Preview Mode"
Drub
Re: OK I got it working 0.8
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.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
-Ian
Re: Cannot change CDEF to bytes to bits graphs break
I guess someone else noticed this as well and created a bug for it: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
http://bugzilla.raxnet.net/show_bug.cgi?id=9
Anyhow, this is now fixed in the latest CVS/pre-release version.
-Ian
Re: User Managment checkbox for User Has Rights to View Tree
Fixeddrub wrote:The third item under "User Has Rights to View"
says "Tree Mode" but should say "Preview Mode"
Drub
Sounds Good!
Rax, Are the Collapse and Expand Trees, not yet working in 0.8?
Who is online
Users browsing this forum: No registered users and 1 guest