mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Draw graphs for avtech switch state.
This commit is contained in:
@ -781,8 +781,8 @@ function avtech_add_sensor($device, $sensor) {
|
|||||||
//Create State Translation
|
//Create State Translation
|
||||||
if (isset($state_index_id)) {
|
if (isset($state_index_id)) {
|
||||||
$states = array(
|
$states = array(
|
||||||
array($state_index_id,'Off',0,0,-1),
|
array($state_index_id,'Off',1,0,-1),
|
||||||
array($state_index_id,'On',0,1,0),
|
array($state_index_id,'On',1,1,0),
|
||||||
);
|
);
|
||||||
foreach($states as $value){
|
foreach($states as $value){
|
||||||
$insert = array(
|
$insert = array(
|
||||||
|
Reference in New Issue
Block a user