Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add (very) simple Toshiba TEC (printer) support #5792

Merged
merged 4 commits into from
Feb 6, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions html/images/logos/toshiba.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions html/images/os/toshiba.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions includes/definitions/toshiba-tec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
os: toshiba-tec
group: printer
text: 'Toshiba Printer'
ifname: 1
type: printer
logo: toshiba
over:
- { graph: device_toner, text: Toner }
discovery:
- sysObjectId:
- .1.3.6.1.4.1.1129.1.2.
discovery_modules:
toner: 1
poller_modules:
toner: 1
7 changes: 7 additions & 0 deletions tests/OSDiscoveryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1481,6 +1481,13 @@ public function testTomato()
$this->checkOS('tomato');
}

public function testToshibaTec()
{
$this->checkOS('toshiba-tec', 'toshiba-tec-ev4');
$this->checkOS('toshiba-tec', 'toshiba-tec-fv4');
$this->checkOS('toshiba-tec', 'toshiba-tec-sx5t');
}

public function testTpconductor()
{
$this->checkOS('tpconductor');
Expand Down
2 changes: 2 additions & 0 deletions tests/snmpsim/toshiba-tec-ev4.snmprec
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
1.3.6.1.2.1.1.1.0|4|TOSHIBA TEC B-EV4
1.3.6.1.2.1.1.2.0|6|.1.3.6.1.4.1.1129.1.2.1
2 changes: 2 additions & 0 deletions tests/snmpsim/toshiba-tec-fv4.snmprec
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
1.3.6.1.2.1.1.1.0|4|TOSHIBA TEC B-FV4
1.3.6.1.2.1.1.2.0|6|.1.3.6.1.4.1.1129.1.2.1
2 changes: 2 additions & 0 deletions tests/snmpsim/toshiba-tec-sx5t.snmprec
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
1.3.6.1.2.1.1.1.0|4|TOSHIBA TEC B-SX5T
1.3.6.1.2.1.1.2.0|6|.1.3.6.1.4.1.1129.1.2.1