mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
move temperatures to sensors table - please run discovery immediately after svn up
git-svn-id: http://www.observium.org/svn/observer/trunk@1269 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -290,7 +290,6 @@ function delete_device($id)
|
||||
mysql_query("DELETE FROM `devices_attribs` WHERE `device_id` = '$id'");
|
||||
mysql_query("DELETE FROM `devices_perms` WHERE `device_id` = '$id'");
|
||||
mysql_query("DELETE FROM `bgpPeers` WHERE `device_id` = '$id'");
|
||||
mysql_query("DELETE FROM `temperature` WHERE `device_id` = '$id'");
|
||||
mysql_query("DELETE FROM `vlans` WHERE `device_id` = '$id'");
|
||||
mysql_query("DELETE FROM `vrfs` WHERE `device_id` = '$id'");
|
||||
mysql_query("DELETE FROM `storage` WHERE `device_id` = '$id'");
|
||||
@@ -305,6 +304,7 @@ function delete_device($id)
|
||||
mysql_query("DELETE FROM `toner` WHERE `device_id` = '$id'");
|
||||
mysql_query("DELETE FROM `frequency` WHERE `device_id` = '$id'");
|
||||
mysql_query("DELETE FROM `current` WHERE `device_id` = '$id'");
|
||||
mysql_query("DELETE FROM `sensors` WHERE `device_id` = '$id'");
|
||||
shell_exec("rm -rf ".$config['rrd_dir']."/$host");
|
||||
return $ret . "Removed device $host\n";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user