add eventlog on_create device

* add eventlog on_create device

* add snmpV3 vars

* styleci minor fix
This commit is contained in:
Cupid@zul
2021-10-01 20:04:42 +01:00
committed by GitHub
parent 8ffd573cf2
commit d63656c1e0
3 changed files with 48 additions and 6 deletions

View File

@@ -35,7 +35,37 @@ class Device extends BaseModel
public $timestamps = false;
protected $primaryKey = 'device_id';
protected $fillable = ['hostname', 'ip', 'status', 'status_reason', 'sysName', 'sysDescr', 'sysObjectID', 'hardware', 'version', 'features', 'serial', 'icon'];
protected $fillable = [
'hostname',
'ip',
'status',
'status_reason',
'sysName',
'sysDescr',
'sysObjectID',
'hardware',
'version',
'features',
'serial',
'icon',
'overwrite_ip',
'os',
'community',
'port',
'transport',
'snmpver',
'poller_group',
'port_association_mode',
'snmp_disable',
// ---- snmpV3 fields ----
'authlevel',
'authname',
'authpass',
'authalgo',
'cryptopass',
'cryptoalgo',
];
protected $casts = [
'last_polled' => 'datetime',
'status' => 'boolean',