mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
poller output cleanups (i think we should start to put some colour in here, to make it all sexypants)
git-svn-id: http://www.observium.org/svn/observer/trunk@1649 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
+3
-3
@@ -105,9 +105,9 @@ while ($device = mysql_fetch_assoc($device_query))
|
||||
$sysDescr = trim(shell_exec($config['snmpget'] . " -m SNMPv2-MIB -O qv -" . $device['snmpver'] . " -c " . $device['community'] . " " . $device['hostname'].":".$device['port'] . " sysDescr.0"));
|
||||
$sysName = strtolower($sysName);
|
||||
|
||||
# $hrSystemUptime = snmp_get($device, ".1.3.6.1.2.1.25.1.1.0", "-Oqv", "HOST-RESOURCES-MIB");
|
||||
$hrSystemUptime = snmp_get($device, ".1.3.6.1.2.1.25.1.1.0", "-Oqv", "HOST-RESOURCES-MIB");
|
||||
|
||||
echo("UPTIMES: ".$hrSystemUptime."|".$sysUptime."]");
|
||||
# echo("UPTIMES: ".$hrSystemUptime."|".$sysUptime."]");
|
||||
|
||||
if ($hrSystemUptime != "" && !strpos($hrSystemUptime, "No"))
|
||||
{
|
||||
@@ -286,7 +286,7 @@ while ($device = mysql_fetch_assoc($device_query))
|
||||
|
||||
$device_end = utime(); $device_run = $device_end - $device_start; $device_time = substr($device_run, 0, 5);
|
||||
$poll_update .= $poll_separator . "`last_polled_timetaken` = '$device_time'";
|
||||
echo("$device_end - $device_start; $device_time $device_run");
|
||||
#echo("$device_end - $device_start; $device_time $device_run");
|
||||
echo("Polled in $device_time seconds\n");
|
||||
|
||||
$poll_update_query = "UPDATE `devices` SET ";
|
||||
|
||||
Reference in New Issue
Block a user