Search found 8 matches

by justruss
Wed Jul 23, 2014 10:16 am
Forum: Help: General
Topic: Cacti - Validation error on new graph
Replies: 28
Views: 13887

Re: Cacti - Validation error on new graph

You can try looking for every call in graphs.php to the function input_validate_input_number and comment it out. Then verify if it works, and through the process of elimination, start uncommenting them and see which one breaks it. This approach is a bit hamfisted but will get it working if you're de...
by justruss
Wed Jul 23, 2014 9:39 am
Forum: Help: General
Topic: Update old graphs after maximum value being changed
Replies: 1
Views: 716

Re: Update old graphs after maximum value being changed

After changing the value inside the web interface you will need to run 'rrdtool tune' on the RRD file associated with the graph manually. The reason your new graph works is because when the graph was created it had the new maximum setting defined in the RRD file. The existing RRD file doesn't get up...
by justruss
Wed Jul 23, 2014 9:30 am
Forum: Help: General
Topic: Multiple graphs from one data source
Replies: 7
Views: 5345

Re: Multiple graphs from one data source

Not in an automated way through a template. You have to create your data template / data source to store the data (the graph values). Then create graphs manually (via a graph template if you'd like) and point the various graph item fields at the same data source (different data source items). It's a...
by justruss
Wed Jul 23, 2014 9:20 am
Forum: Help: General
Topic: Cacti - Validation error on new graph
Replies: 28
Views: 13887

Re: Cacti - Validation error on new graph

Well the good new is you're running into the same issue I described, the bad news is you should have been all set by commenting out that bit I referred to earlier.

Can you paste the first 100 lines or so from the function form_actions() inside /usr/share/cacti/site/graphs.php?
by justruss
Fri Jul 18, 2014 4:35 pm
Forum: Help: General
Topic: Cacti - Validation error on new graph
Replies: 28
Views: 13887

Re: Cacti - Validation error on new graph

You must have a typo, it's blank screening because PHP found a syntax error.

Try running the php from the command line like:

php /usr/share/cacti/site/lib/html_validate.php

Look for missing semi-colons, unclosed brackets, etc.
by justruss
Thu Jul 17, 2014 3:23 pm
Forum: Help: General
Topic: Cacti - Validation error on new graph
Replies: 28
Views: 13887

Re: Cacti - Validation error on new graph

Try going into /usr/share/cacti/site/lib/html_validate.php In there you'll see a few small functions for validation, each of them ends with: die_html_input_error(); Prior to that line add a couple debug lines like this: function input_validate_input_number($value) { if ((!is_numeric($value)) &&a...
by justruss
Thu Jul 17, 2014 2:51 pm
Forum: Help: General
Topic: Cacti - Validation error on new graph
Replies: 28
Views: 13887

Re: Cacti - Validation error on new graph

This is the bit I commented out in graphs.php: function form_actions() { global $colors, $graph_actions; /* ================= input validation ================= */ //input_validate_input_number(get_request_var_post('drp_action')); /* ==================================================== */
by justruss
Thu Jul 17, 2014 2:44 pm
Forum: Help: General
Topic: Cacti - Validation error on new graph
Replies: 28
Views: 13887

Re: Cacti - Validation error on new graph

I ran into this same exact message. It happened on an older Debian 6.0.9 box I have. I read through the code. The problem is that when you do the form execute to add a graph to the tree, it calls a function in graphs.php, called "form_actions". Inside that function, one of the first things...