gilles wrote:torstentfk wrote:At console->Managing->Devices after selecting one:
"Services :
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/html/cacti/plugins/manage/list.php on line 967"
which PHP and MYSQL versions ?
can you change line 957 with this one :
Code: Select all
data_local.host_id='".$_GET['id']."'";
done. no difference but the error changed:
PHP: PHP 5.1.4 (cli) (built: Jul 20 2006 14:03:08)
MYSQL: mysql-4.1.15
changed files with dos2unix to get rid of line feed.
Now changing os-type i get this.
"1
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/cacti/plugins/manage/list.php:137) in /var/www/html/cacti/plugins/manage/list.php on line 207"
saveing the type infos is working - I think this is an debug info from developing?
Code from list.php:
134 db_execute("delete from manage_alerts where idh='" . $selec ted_items[$i] . "'");
135 }
136 }elseif ($_POST["drp_action"] == "8") { //
137 print "1";
138 for ($i=0;($i<count($selected_items));$i++) {
139 input_validate_input_number($selected_items[$i]);
140
141 $sql3 = "SELECT manage FROM host where id='" . $selected_items[$i] . "'";
142 $result3 = mysql_query($sql3);
- selecting only a template without OS-type removes the type form the device.
Torsten