Logging Updates but no graphs
Moderators: Developers, Moderators
The first thing to try is make sure the user 'cmd.php' is running as has write access to the 'rra/' directory, located under cacti's directory.
Also you may want to check and see if there are any files in that directory already?
If the permissions are ok, try executing some of the 'create' commands from the log at the command line and seeing what rrdtool spits back. Prefferably run the commands as the user that 'cmd.php' runs as to get more accurate results.
See that helps at all,
-Ian
Also you may want to check and see if there are any files in that directory already?
If the permissions are ok, try executing some of the 'create' commands from the log at the command line and seeing what rrdtool spits back. Prefferably run the commands as the user that 'cmd.php' runs as to get more accurate results.
See that helps at all,
-Ian
I seem to have a similar problem.
The sample graphs are not visible, nor a new rrd files being created. I do however get MySQL errors.
When I try to use a 'source' link for a graph, I get the following msg:
'Warning: Supplied argument is not a valid MySQL result resource in /usr/local/apache/htdocs/cacti/include/cmd_functions.php'
I have checked file perms and verfied my MySQL (v3.22.32) user/pass work (command line and via PHP script - v4.1.1).
I am using RH 7.2 - nobody (web server user) has it's shell set to 'nologin', but running the script as another user (with valid shell) still produces the same results.
SNMP seems to be working, as does the 'cron output'
Any ideas?
The sample graphs are not visible, nor a new rrd files being created. I do however get MySQL errors.
When I try to use a 'source' link for a graph, I get the following msg:
'Warning: Supplied argument is not a valid MySQL result resource in /usr/local/apache/htdocs/cacti/include/cmd_functions.php'
I have checked file perms and verfied my MySQL (v3.22.32) user/pass work (command line and via PHP script - v4.1.1).
I am using RH 7.2 - nobody (web server user) has it's shell set to 'nologin', but running the script as another user (with valid shell) still produces the same results.
SNMP seems to be working, as does the 'cron output'
Any ideas?
Hi there,
i got the same problem both the log and rra dir are writeable by the www-user.
but when om running the cronjob i get these errors:
b>Warning</b>: Supplied argument is not a valid MySQL result resource in <b>include/cmd_functions.php</b> on line <b>94</b><br>
i run the latest cacti,mysqld Ver 3.22.32
should i see any graphs in the standardinstallation ?
otherwise i can add snmp-objects and browse the site...
i got the same problem both the log and rra dir are writeable by the www-user.
but when om running the cronjob i get these errors:
b>Warning</b>: Supplied argument is not a valid MySQL result resource in <b>include/cmd_functions.php</b> on line <b>94</b><br>
i run the latest cacti,mysqld Ver 3.22.32
should i see any graphs in the standardinstallation ?
otherwise i can add snmp-objects and browse the site...
Here's the good news: I found the source of your problem. I downloaded and complied MySQL 3.22.32, and ran the query that was failing for you. Here's what I got:
ERROR 1064: You have an error in your SQL syntax near '(r.rows*r.steps)' at line 15
Guess you learn something every day. Apparently my sort method relies on this feature:
* ORDER BY and GROUP BY can be done on functions.
Which was introduced in version 3.23.2.
Now the (sort of) bad news: Not sure how I am going to redo this query. A while back I fixed a major bug that was causing major .rra problems by adding the line that is causing problems now. This is because rrdtool expects those two columns in order or the data will not be inputted correctly. Doing an 'order by r.rows, r.steps' will not work either because rrdtool wants the data from BOTH of those rows in order, not just one then the other.
Regardless, I will do my best to fix this without breaking anything else. I will also keep my installation of 3.22.32 handy for future testing. Also, I assume if it is not a problem, you could upgrade your version of MySQL to <= 3.23.2.
Hope this proves useful,
-Ian
ERROR 1064: You have an error in your SQL syntax near '(r.rows*r.steps)' at line 15
Guess you learn something every day. Apparently my sort method relies on this feature:
* ORDER BY and GROUP BY can be done on functions.
Which was introduced in version 3.23.2.
Now the (sort of) bad news: Not sure how I am going to redo this query. A while back I fixed a major bug that was causing major .rra problems by adding the line that is causing problems now. This is because rrdtool expects those two columns in order or the data will not be inputted correctly. Doing an 'order by r.rows, r.steps' will not work either because rrdtool wants the data from BOTH of those rows in order, not just one then the other.
Regardless, I will do my best to fix this without breaking anything else. I will also keep my installation of 3.22.32 handy for future testing. Also, I assume if it is not a problem, you could upgrade your version of MySQL to <= 3.23.2.
Hope this proves useful,
-Ian
OK, more good news, got the problem fixed. Download:
http://www.raxnet.net/downloads/patches ... ns.php.txt
And replace your 'include/cmd_functions.php' file with it.
Hopefully this does the trick,
-Ian
http://www.raxnet.net/downloads/patches ... ns.php.txt
And replace your 'include/cmd_functions.php' file with it.
Hopefully this does the trick,
-Ian
Who is online
Users browsing this forum: No registered users and 2 guests