Skip to content

Commit

Permalink
Added Basic Support for Allworx VoIP Systems (#9057)
Browse files Browse the repository at this point in the history
DO NOT DELETE THIS TEXT

#### Please note

> Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting.

- [x] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/)

#### Testers

If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
  • Loading branch information
VanillaNinjaD authored and laf committed Aug 24, 2018
1 parent f632521 commit af300f7
Show file tree
Hide file tree
Showing 5 changed files with 990 additions and 0 deletions.
3 changes: 3 additions & 0 deletions html/images/os/allworx.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions includes/definitions/allworx_voip.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
os: allworx_voip
text: 'Allworx VoIP'
type: appliance
icon: allworx
over:
- { graph: device_bits, text: 'Device Traffic' }
- { graph: device_mempool, text: 'Memory Usage' }
discovery:
- sysObjectID:
- .1.3.6.1.4.1.38516.2.
23 changes: 23 additions & 0 deletions includes/polling/os/allworx_voip.inc.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php
/**
* allworx.inc.php
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

$data = snmp_get_multi_oid($device, '.1.3.6.1.2.1.1.1.0 .1.3.6.1.2.1.27.1.1.4.1 .1.3.6.1.2.1.1.5.0');

$hardware = $data['.1.3.6.1.2.1.1.1.0'];
$version = $data['.1.3.6.1.2.1.27.1.1.4.1'];
$serial = $data['.1.3.6.1.2.1.1.5.0'];
Loading

0 comments on commit af300f7

Please sign in to comment.