- added rrd_pipes to check script

- renamed service_* to *_service
This commit is contained in:
Aaron Daniels
2016-03-22 07:35:39 +10:00
parent 870d3aee56
commit 854812a457
10 changed files with 51 additions and 40 deletions

View File

@@ -5,7 +5,7 @@ if (is_admin() === true || is_read() === true) {
if ($_SESSION['userlevel'] >= '10') {
$updated = '1';
$service_id = service_add($vars['device'], $vars['type'], $vars['descr'], $vars['ip'], $vars['params'], 0);
$service_id = add_service($vars['device'], $vars['type'], $vars['descr'], $vars['ip'], $vars['params'], 0);
if ($service_id) {
$message .= $message_break.'Service added ('.$service_id.')!';
$message_break .= '<br />';

View File

@@ -7,7 +7,7 @@ $ports['up'] = dbFetchCell("SELECT COUNT(*) FROM `ports` WHERE device_id =
$ports['down'] = dbFetchCell("SELECT COUNT(*) FROM `ports` WHERE device_id = ? AND `ifOperStatus` = 'down' AND `ifAdminStatus` = 'up'", array($device['device_id']));
$ports['disabled'] = dbFetchCell("SELECT COUNT(*) FROM `ports` WHERE device_id = ? AND `ifAdminStatus` = 'down'", array($device['device_id']));
$services = service_status($device['device_id']);
$services = get_service_status($device['device_id']);
$services['total'] = array_sum($services);
if ($services[0]) {