mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
woo
git-svn-id: http://www.observium.org/svn/observer/trunk@85 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
+2
-1
@@ -9,6 +9,7 @@ while ($device = mysql_fetch_array($device_query)) {
|
||||
|
||||
unset($update); unset($update_query); unset($seperator); unset($version); unset($uptime); unset($features);
|
||||
unset($location); unset($hardware);
|
||||
|
||||
$pingable = isPingable($device['hostname']);
|
||||
$snmpable = FALSE;
|
||||
|
||||
@@ -16,7 +17,7 @@ while ($device = mysql_fetch_array($device_query)) {
|
||||
$snmpable = isSNMPable($device['hostname'], $device['community'], $device['snmpver']);
|
||||
}
|
||||
|
||||
if ($pingable !== FALSE && $snmpable !== FALSE ) {
|
||||
if ($pingable && $snmpable) {
|
||||
$status = '1';
|
||||
if($device['os'] == "FreeBSD" || $device['os'] == "OpenBSD" || $device['os'] == "Linux" || $device['os'] == "Windows") {
|
||||
$uptimeoid = ".1.3.6.1.2.1.25.1.1.0";
|
||||
|
||||
Reference in New Issue
Block a user