mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
show toner on device overview (beta), minor fixes
git-svn-id: http://www.observium.org/svn/observer/trunk@3014 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -159,13 +159,14 @@ function delete_device($id)
|
||||
$device_tables = array('entPhysical', 'devices_attribs', 'devices_perms', 'bgpPeers', 'vlans', 'vrfs', 'storage', 'alerts', 'eventlog',
|
||||
'syslog', 'ports', 'services', 'alerts', 'toner', 'frequency', 'current', 'sensors');
|
||||
|
||||
foreach ($device_tables as $table) {
|
||||
foreach ($device_tables as $table)
|
||||
{
|
||||
dbDelete($table, "`device_id` = ?", array($id));
|
||||
}
|
||||
|
||||
shell_exec("rm -rf ".trim($config['rrd_dir'])."/$host");
|
||||
|
||||
$ret = "Removed Device $host\n";
|
||||
$ret = "Removed device $host\n";
|
||||
return $ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user