mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 00:24:21 +02:00
Fixed SQL statement so things don't go broke.
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
// FIXME - dbFacile and fewer SNMP_GETs
|
// FIXME - dbFacile and fewer SNMP_GETs
|
||||||
|
|
||||||
if (dbFetchCell("SELECT COUNT(*) FROM `sensors` WHERE `device_id` = ? AND `sensor_class` = 'temperature' AND (`sensor_type` = 'cisco-entity-sensor' OR `sensor_type` = 'entity-sensor'",array($device['device_id'])) == "0" && ($device['os_group'] == "cisco"))
|
if (dbFetchCell("SELECT COUNT(*) FROM `sensors` WHERE `device_id` = ? AND `sensor_class` = 'temperature' AND (`sensor_type` = 'cisco-entity-sensor' OR `sensor_type` = 'entity-sensor')",array($device['device_id'])) == "0" && ($device['os_group'] == "cisco"))
|
||||||
{
|
{
|
||||||
echo("CISCO-ENVMON-MIB: ");
|
echo("CISCO-ENVMON-MIB: ");
|
||||||
$oids = snmp_walk($device, ".1.3.6.1.4.1.9.9.13.1.3.1.2", "-Osqn", "CISCO-ENVMON-MIB");
|
$oids = snmp_walk($device, ".1.3.6.1.4.1.9.9.13.1.3.1.2", "-Osqn", "CISCO-ENVMON-MIB");
|
||||||
|
|||||||
Reference in New Issue
Block a user