mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
feature: Basic Draytek Support (#5625)
This commit is contained in:
committed by
Neil Lathwood
parent
2f1095cb8d
commit
98ddc28f39
@@ -1 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1" height="77.72" width="324.762"><defs><clipPath id="a"><path d="M-9-9h614v860H-9V-9z" clip-rule="evenodd"/></clipPath></defs><g clip-path="url(#a)" transform="matrix(1.25 0 0 -1.25 -218.662 295.715)"><g fill="#ed1c24" fill-rule="evenodd"><path d="M298.77 174.396l-12.507.284 13.455 19.52-10.2 27.496 12.886.19c1.706-4.927 3.663-11.01 5.463-16.033.19 0 .379-.094.663-.189l10.106 16.032h12.601m101.186-32.897c-2.937.094-5.874-.05-8.811-.05l-9.908 14.925-.757.095-3.032-15.16h-9.465l8.802 43.111-5.022.19.283 2.084 15.256 1.422-5.591-26.246 1.374-.11 7.912 7.406c5.306 5.306 3.885 4.737 11.276 5.021l-.664-2.801c-4.738-1.99-11.655-5.82-14.402-10.18 6.917-9.948 6.917-9.948 12.696-17.528.096-1.327.527-1.327.053-2.18m-257.493.569h19.234c0-.285-19.234-.285-19.234 0m45.196 0h11.655c0-.285-11.655-.285-11.655 0m50.219 0h11.939c0-.285-11.939-.285-11.939 0m-50.219 0l6.254 32.12h8.528c.474 0 1.8.144 2.274.144l-.955-5.025c2.085 4.548 7.967 4.692 12.325 5.166-.569-3.79-1.137-7.58-1.706-11.465-13.834 6.917-13.738-12.791-15.065-20.94"/><path d="M272.998 220.256c.569-.569 1.232-1.137 1.895-1.706l.569 3.146h11.75l-4.928-32.33h-12.227c0 .76.288 1.422.382 2.085a184.56 184.56 0 0 1-4.358-2.274c-28.348-6.298-19.793 41.368 6.917 31.079zm-6.76-8.182c4.094 0 7.433-3.223 7.433-7.177 0-3.952-3.34-7.176-7.433-7.176s-7.433 3.224-7.433 7.176c0 3.954 3.34 7.177 7.433 7.177m-91.308-22.707l7.011 47.205 11.07-.46c17.179-.715 30.283-10.396 24.305-28.168-3.403-10.116-11.518-15.992-23.152-18.577H174.93zm14.023 10.896l3.696 24.73c22.047-1.14 15.413-26.67-3.696-24.73m190.262 16.677c11.861 11.058 24.896-.229 14.556-8.539-4.722-3.794-8.306-3.197-13.988-3.4-2.057-12.641 4.7-13.146 14.213-7.675.758-1.137.758-1.137.853-1.8-21.66-16.738-33.811 4.312-15.634 21.414zm1.327-9.665c.278 1.373.725 2.629 1.246 3.849 1.18 2.762 2.226 4.622 4.668 6.484 5.739 4.376 6.061-3.092 2.223-7.54-2.453-2.844-4.732-2.393-8.137-2.793m-37.238 22.361c-3.222-1.99-3.79-3.316-5.401-6.633h-2.274l2.085 9.95 40.459.189-1.422-10.233c-.947.094-1.895.094-2.842.094-.38 3.411-.474 4.643-3.127 6.633h-9.002c-.481-1.286-4.916-25.33-6.484-32.84-.51-2.446-1.429-4.86 2.24-4.981l2.35-.08-.19-2.842h-21.508l.378 2.675 2.45.148c3.643.22 3.898 2.753 4.497 5.65a3731.322 3731.322 0 0 0 6.792 32.27h-9"/></g></g></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="331.76" height="84.72" version="1"><defs><clipPath id="a"><path d="M-9-9h614v860H-9V-9z" clip-rule="evenodd"/></clipPath></defs><g clip-path="url(#a)" transform="matrix(1.25 0 0 -1.25 -214.66 299.71)"><g fill="#ed1c24" fill-rule="evenodd"><path d="M298.77 174.396l-12.507.284 13.455 19.52-10.2 27.496 12.886.19c1.706-4.927 3.663-11.01 5.463-16.033.19 0 .38-.094.663-.19l10.106 16.033h12.6M432.423 188.8c-2.937.093-5.874-.05-8.81-.05l-9.91 14.924-.756.095-3.032-15.16h-9.465l8.802 43.11-5.022.19.283 2.084 15.256 1.422-5.592-26.246 1.374-.11 7.912 7.406c5.306 5.306 3.885 4.737 11.276 5.02l-.664-2.8c-4.738-1.99-11.655-5.82-14.402-10.18 6.917-9.948 6.917-9.948 12.696-17.528.096-1.327.527-1.327.053-2.18M174.93 189.367h19.234c0-.285-19.234-.285-19.234 0M220.126 189.367h11.655c0-.285-11.654-.285-11.654 0M270.345 189.367h11.94c0-.285-11.94-.285-11.94 0M220.126 189.367l6.254 32.12h8.528c.474 0 1.8.144 2.274.144l-.955-5.024c2.085 4.548 7.967 4.692 12.325 5.166-.57-3.79-1.137-7.58-1.706-11.465-13.834 6.917-13.738-12.79-15.065-20.94"/><path d="M272.998 220.256c.57-.57 1.232-1.137 1.895-1.706l.57 3.146h11.748l-4.926-32.33h-12.227c0 .76.288 1.422.382 2.085-1.516-.757-2.938-1.514-4.36-2.273-28.347-6.298-19.792 41.368 6.918 31.08zm-6.76-8.182c4.094 0 7.433-3.223 7.433-7.177 0-3.952-3.338-7.176-7.432-7.176-4.093 0-7.433 3.225-7.433 7.177 0 3.954 3.34 7.177 7.433 7.177M174.93 189.367l7.01 47.205 11.07-.46c17.18-.715 30.284-10.396 24.306-28.168-3.403-10.116-11.518-15.992-23.152-18.577H174.93zm14.023 10.896l3.696 24.73c22.046-1.14 15.412-26.67-3.697-24.73M379.215 216.94c11.86 11.058 24.896-.23 14.556-8.54-4.72-3.793-8.305-3.196-13.987-3.4-2.057-12.64 4.7-13.145 14.213-7.674.758-1.137.758-1.137.853-1.8-21.66-16.738-33.812 4.312-15.635 21.414zm1.327-9.665c.278 1.373.725 2.63 1.246 3.85 1.18 2.76 2.226 4.62 4.668 6.483 5.74 4.376 6.06-3.092 2.223-7.54-2.454-2.844-4.733-2.393-8.138-2.793M343.304 229.636c-3.222-1.99-3.79-3.316-5.4-6.633h-2.275l2.084 9.95 40.46.19-1.423-10.234c-.946.093-1.894.093-2.84.093-.38 3.41-.475 4.643-3.128 6.633h-9.002c-.48-1.286-4.916-25.33-6.484-32.84-.51-2.446-1.43-4.86 2.24-4.98l2.35-.08-.19-2.843h-21.508l.378 2.675 2.45.148c3.643.22 3.898 2.753 4.497 5.65 2.233 10.803 4.474 21.536 6.792 32.27h-9"/></g></g></svg>
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.2 KiB |
12
includes/definitions/draytek.yaml
Normal file
12
includes/definitions/draytek.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
os: draytek
|
||||
text: 'DrayTek'
|
||||
type: network
|
||||
icon: draytek
|
||||
over:
|
||||
- { graph: device_bits, text: 'Device Traffic' }
|
||||
- { graph: device_processor, text: 'CPU Usage' }
|
||||
- { graph: device_mempool, text: 'Memory Usage' }
|
||||
|
||||
discovery:
|
||||
- sysObjectId:
|
||||
- .1.3.6.1.4.1.7367
|
@@ -499,6 +499,11 @@ class DiscoveryTest extends \PHPUnit_Framework_TestCase
|
||||
$this->checkOS('drac', 'drac2');
|
||||
}
|
||||
|
||||
public function testDraytek()
|
||||
{
|
||||
$this->checkOS('draytek');
|
||||
}
|
||||
|
||||
public function testDsm()
|
||||
{
|
||||
$this->checkOS('dsm');
|
||||
|
2
tests/snmpsim/draytek.snmprec
Normal file
2
tests/snmpsim/draytek.snmprec
Normal file
@@ -0,0 +1,2 @@
|
||||
1.3.6.1.2.1.1.1.0|4|DrayTek Corporation
|
||||
1.3.6.1.2.1.1.2.0|6|.1.3.6.1.4.1.7367
|
Reference in New Issue
Block a user