Fixed snmptraps. (#8898)

* Fixed snmptraps.

* Fixed space

* Added bgp down/up and authentication failure

* Fixed typo

* Fixed some typos, arrays, astext and format_hostname

* Updated documentation

* Moved code to a function

* Some refactor

* Minor fixes

* Minor fixes 2

* More minor fixes

* Changes requested by Tony

* Minor fixes

* Moved include to snmptrap.php

* Refactor traps to use object oriented code.

Should trigger events too/instead, but we'll leave that.
Testing todo

* Add tests and fix things so they actually work
Not checking events yet.

* Fixed typo and severity level

* Update composer deps, I think the lock file wasn't right.
add json and mbstring extension deps while I'm at it.

* Fix several issues with phpunit fixtures
This commit is contained in:
TheGreatDoc
2018-08-11 23:37:45 +02:00
committed by Tony Murray
parent dea988ab79
commit 9940c884f5
30 changed files with 1237 additions and 176 deletions

View File

@@ -117,11 +117,11 @@ class Port extends BaseModel
public function ipv4()
{
return $this->hasMany('App\Models\General\IPv4', 'port_id');
return $this->hasMany('App\Models\Ipv4Address', 'port_id');
}
public function ipv6()
{
return $this->hasMany('App\Models\General\IPv6', 'port_id');
return $this->hasMany('App\Models\Ipv6Address', 'port_id');
}
}