mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 10:28:13 +00:00
parent
26d3404bbc
commit
c025c55a03
@ -25,6 +25,7 @@ use App\Observers\ModuleModelObserver;
|
||||
use Illuminate\Support\Collection;
|
||||
use Illuminate\Support\Str;
|
||||
use LibreNMS\DB\SyncsModels;
|
||||
use LibreNMS\Enum\Alert;
|
||||
use LibreNMS\Interfaces\Module;
|
||||
use LibreNMS\OS;
|
||||
use LibreNMS\RRD\RrdDefinition;
|
||||
@ -83,12 +84,24 @@ class PrinterSupplies implements Module
|
||||
|
||||
// Log empty supplies (but only once)
|
||||
if ($tonerperc == 0 && $toner['supply_current'] > 0) {
|
||||
Log::event('Toner ' . $toner['supply_descr'] . ' is empty', $device, 'toner', 5, $toner['supply_id']);
|
||||
Log::event(
|
||||
'Toner ' . $toner['supply_descr'] . ' is empty',
|
||||
$os->getDevice(),
|
||||
'toner',
|
||||
Alert::ERROR,
|
||||
$toner['supply_id']
|
||||
);
|
||||
}
|
||||
|
||||
// Log toner swap
|
||||
if ($tonerperc > $toner['supply_current']) {
|
||||
Log::event('Toner ' . $toner['supply_descr'] . ' was replaced (new level: ' . $tonerperc . '%)', $device, 'toner', 3, $toner['supply_id']);
|
||||
Log::event(
|
||||
'Toner ' . $toner['supply_descr'] . ' was replaced (new level: ' . $tonerperc . '%)',
|
||||
$os->getDevice(),
|
||||
'toner',
|
||||
Alert::NOTICE,
|
||||
$toner['supply_id']
|
||||
);
|
||||
}
|
||||
|
||||
$toner->supply_current = $tonerperc;
|
||||
|
1019
tests/data/brother_hl5370dw.json
Normal file
1019
tests/data/brother_hl5370dw.json
Normal file
File diff suppressed because it is too large
Load Diff
216
tests/snmpsim/brother_hl5370dw.snmprec
Normal file
216
tests/snmpsim/brother_hl5370dw.snmprec
Normal file
@ -0,0 +1,216 @@
|
||||
1.3.6.1.2.1.1.1.0|4|Brother NC-6800h, Firmware Ver.1.01 (08.12.12),MID 84UB05
|
||||
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.2435.2.3.9.1
|
||||
1.3.6.1.2.1.1.3.0|67|33604185
|
||||
1.3.6.1.2.1.1.4.0|4|<private>
|
||||
1.3.6.1.2.1.1.5.0|4|<private>
|
||||
1.3.6.1.2.1.1.6.0|4|<private>
|
||||
1.3.6.1.2.1.2.2.1.1.1|2|1
|
||||
1.3.6.1.2.1.2.2.1.1.2|2|2
|
||||
1.3.6.1.2.1.2.2.1.1.3|2|3
|
||||
1.3.6.1.2.1.2.2.1.2.1|4|NC-6800h
|
||||
1.3.6.1.2.1.2.2.1.2.2|4|NC-7600w
|
||||
1.3.6.1.2.1.2.2.1.2.3|4|SoftwareLoopBack
|
||||
1.3.6.1.2.1.2.2.1.3.1|2|7
|
||||
1.3.6.1.2.1.2.2.1.3.2|2|7
|
||||
1.3.6.1.2.1.2.2.1.3.3|2|24
|
||||
1.3.6.1.2.1.2.2.1.4.1|2|1500
|
||||
1.3.6.1.2.1.2.2.1.4.2|2|1500
|
||||
1.3.6.1.2.1.2.2.1.4.3|2|1500
|
||||
1.3.6.1.2.1.2.2.1.5.1|66|100000000
|
||||
1.3.6.1.2.1.2.2.1.5.2|66|54000000
|
||||
1.3.6.1.2.1.2.2.1.5.3|66|0
|
||||
1.3.6.1.2.1.2.2.1.6.1|4x|001BA90BA752
|
||||
1.3.6.1.2.1.2.2.1.6.2|4x|00234ECDD8F9
|
||||
1.3.6.1.2.1.2.2.1.6.3|4|
|
||||
1.3.6.1.2.1.2.2.1.7.1|2|1
|
||||
1.3.6.1.2.1.2.2.1.7.2|2|2
|
||||
1.3.6.1.2.1.2.2.1.7.3|2|1
|
||||
1.3.6.1.2.1.2.2.1.8.1|2|1
|
||||
1.3.6.1.2.1.2.2.1.8.2|2|2
|
||||
1.3.6.1.2.1.2.2.1.8.3|2|1
|
||||
1.3.6.1.2.1.2.2.1.9.1|67|1505
|
||||
1.3.6.1.2.1.2.2.1.9.2|67|0
|
||||
1.3.6.1.2.1.2.2.1.9.3|67|0
|
||||
1.3.6.1.2.1.2.2.1.10.1|65|144509317
|
||||
1.3.6.1.2.1.2.2.1.10.2|65|0
|
||||
1.3.6.1.2.1.2.2.1.10.3|65|0
|
||||
1.3.6.1.2.1.2.2.1.11.1|65|429175
|
||||
1.3.6.1.2.1.2.2.1.11.2|65|0
|
||||
1.3.6.1.2.1.2.2.1.11.3|65|0
|
||||
1.3.6.1.2.1.2.2.1.12.1|65|761632
|
||||
1.3.6.1.2.1.2.2.1.12.2|65|0
|
||||
1.3.6.1.2.1.2.2.1.12.3|65|0
|
||||
1.3.6.1.2.1.2.2.1.13.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.13.2|65|0
|
||||
1.3.6.1.2.1.2.2.1.13.3|65|0
|
||||
1.3.6.1.2.1.2.2.1.14.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.14.2|65|0
|
||||
1.3.6.1.2.1.2.2.1.14.3|65|0
|
||||
1.3.6.1.2.1.2.2.1.15.1|65|6888
|
||||
1.3.6.1.2.1.2.2.1.15.2|65|0
|
||||
1.3.6.1.2.1.2.2.1.15.3|65|0
|
||||
1.3.6.1.2.1.2.2.1.16.1|65|49977842
|
||||
1.3.6.1.2.1.2.2.1.16.2|65|0
|
||||
1.3.6.1.2.1.2.2.1.16.3|65|0
|
||||
1.3.6.1.2.1.2.2.1.17.1|65|433419
|
||||
1.3.6.1.2.1.2.2.1.17.2|65|0
|
||||
1.3.6.1.2.1.2.2.1.17.3|65|0
|
||||
1.3.6.1.2.1.2.2.1.18.1|65|216461
|
||||
1.3.6.1.2.1.2.2.1.18.2|65|0
|
||||
1.3.6.1.2.1.2.2.1.18.3|65|0
|
||||
1.3.6.1.2.1.2.2.1.19.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.19.2|65|0
|
||||
1.3.6.1.2.1.2.2.1.19.3|65|0
|
||||
1.3.6.1.2.1.2.2.1.20.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.20.2|65|0
|
||||
1.3.6.1.2.1.2.2.1.20.3|65|0
|
||||
1.3.6.1.2.1.2.2.1.21.1|66|0
|
||||
1.3.6.1.2.1.2.2.1.21.2|66|0
|
||||
1.3.6.1.2.1.2.2.1.21.3|66|0
|
||||
1.3.6.1.2.1.2.2.1.22.1|6|0.0
|
||||
1.3.6.1.2.1.2.2.1.22.2|6|0.0
|
||||
1.3.6.1.2.1.2.2.1.22.3|6|0.0
|
||||
1.3.6.1.2.1.4.3.0|65|696740
|
||||
1.3.6.1.2.1.4.4.0|65|0
|
||||
1.3.6.1.2.1.4.5.0|65|195
|
||||
1.3.6.1.2.1.4.6.0|65|0
|
||||
1.3.6.1.2.1.4.7.0|65|0
|
||||
1.3.6.1.2.1.4.8.0|65|0
|
||||
1.3.6.1.2.1.4.9.0|65|696543
|
||||
1.3.6.1.2.1.4.10.0|65|432858
|
||||
1.3.6.1.2.1.4.11.0|65|0
|
||||
1.3.6.1.2.1.4.12.0|65|0
|
||||
1.3.6.1.2.1.4.14.0|65|12
|
||||
1.3.6.1.2.1.4.15.0|65|4
|
||||
1.3.6.1.2.1.4.16.0|65|0
|
||||
1.3.6.1.2.1.4.17.0|65|0
|
||||
1.3.6.1.2.1.4.18.0|65|0
|
||||
1.3.6.1.2.1.4.19.0|65|0
|
||||
1.3.6.1.2.1.4.20.1.2.10.0.0.146|2|1
|
||||
1.3.6.1.2.1.4.20.1.3.10.0.0.146|64|255.255.255.0
|
||||
1.3.6.1.2.1.4.22.1.2.2.10.0.0.1|4x|0025907CF25E
|
||||
1.3.6.1.2.1.4.22.1.2.2.10.0.0.70|4x|F40F2429E454
|
||||
1.3.6.1.2.1.5.1.0|65|8074
|
||||
1.3.6.1.2.1.5.2.0|65|0
|
||||
1.3.6.1.2.1.5.3.0|65|109
|
||||
1.3.6.1.2.1.5.4.0|65|0
|
||||
1.3.6.1.2.1.5.5.0|65|0
|
||||
1.3.6.1.2.1.5.6.0|65|0
|
||||
1.3.6.1.2.1.5.7.0|65|0
|
||||
1.3.6.1.2.1.5.8.0|65|7965
|
||||
1.3.6.1.2.1.5.9.0|65|0
|
||||
1.3.6.1.2.1.5.10.0|65|0
|
||||
1.3.6.1.2.1.5.11.0|65|0
|
||||
1.3.6.1.2.1.5.12.0|65|0
|
||||
1.3.6.1.2.1.5.13.0|65|0
|
||||
1.3.6.1.2.1.5.14.0|65|7968
|
||||
1.3.6.1.2.1.5.15.0|65|0
|
||||
1.3.6.1.2.1.5.16.0|65|3
|
||||
1.3.6.1.2.1.5.17.0|65|0
|
||||
1.3.6.1.2.1.5.18.0|65|0
|
||||
1.3.6.1.2.1.5.19.0|65|0
|
||||
1.3.6.1.2.1.5.20.0|65|0
|
||||
1.3.6.1.2.1.5.21.0|65|0
|
||||
1.3.6.1.2.1.5.22.0|65|7965
|
||||
1.3.6.1.2.1.5.23.0|65|0
|
||||
1.3.6.1.2.1.5.24.0|65|0
|
||||
1.3.6.1.2.1.5.25.0|65|0
|
||||
1.3.6.1.2.1.5.26.0|65|0
|
||||
1.3.6.1.2.1.6.5.0|65|24
|
||||
1.3.6.1.2.1.6.6.0|65|289
|
||||
1.3.6.1.2.1.6.7.0|65|0
|
||||
1.3.6.1.2.1.6.8.0|65|0
|
||||
1.3.6.1.2.1.6.9.0|66|0
|
||||
1.3.6.1.2.1.6.10.0|65|7294
|
||||
1.3.6.1.2.1.6.11.0|65|1805
|
||||
1.3.6.1.2.1.6.12.0|65|16
|
||||
1.3.6.1.2.1.6.14.0|65|0
|
||||
1.3.6.1.2.1.6.15.0|65|0
|
||||
1.3.6.1.2.1.7.1.0|65|589002
|
||||
1.3.6.1.2.1.7.2.0|65|92298
|
||||
1.3.6.1.2.1.7.3.0|65|0
|
||||
1.3.6.1.2.1.7.4.0|65|420693
|
||||
1.3.6.1.2.1.11.1.0|65|416941
|
||||
1.3.6.1.2.1.11.2.0|65|416941
|
||||
1.3.6.1.2.1.11.3.0|65|0
|
||||
1.3.6.1.2.1.11.4.0|65|0
|
||||
1.3.6.1.2.1.11.5.0|65|5219
|
||||
1.3.6.1.2.1.11.6.0|65|0
|
||||
1.3.6.1.2.1.11.8.0|65|0
|
||||
1.3.6.1.2.1.11.9.0|65|0
|
||||
1.3.6.1.2.1.11.10.0|65|0
|
||||
1.3.6.1.2.1.11.11.0|65|0
|
||||
1.3.6.1.2.1.11.12.0|65|0
|
||||
1.3.6.1.2.1.11.13.0|65|596365
|
||||
1.3.6.1.2.1.11.14.0|65|0
|
||||
1.3.6.1.2.1.11.15.0|65|95306
|
||||
1.3.6.1.2.1.11.16.0|65|305555
|
||||
1.3.6.1.2.1.11.17.0|65|0
|
||||
1.3.6.1.2.1.11.18.0|65|0
|
||||
1.3.6.1.2.1.11.19.0|65|0
|
||||
1.3.6.1.2.1.11.20.0|65|0
|
||||
1.3.6.1.2.1.11.21.0|65|5219
|
||||
1.3.6.1.2.1.11.22.0|65|0
|
||||
1.3.6.1.2.1.11.24.0|65|0
|
||||
1.3.6.1.2.1.11.25.0|65|0
|
||||
1.3.6.1.2.1.11.26.0|65|0
|
||||
1.3.6.1.2.1.11.27.0|65|0
|
||||
1.3.6.1.2.1.11.28.0|65|416965
|
||||
1.3.6.1.2.1.11.29.0|65|0
|
||||
1.3.6.1.2.1.11.30.0|2|1
|
||||
1.3.6.1.2.1.11.31.0|65|0
|
||||
1.3.6.1.2.1.11.32.0|65|0
|
||||
1.3.6.1.2.1.25.1.1.0|67|33375443
|
||||
1.3.6.1.2.1.25.1.5.0|66|1
|
||||
1.3.6.1.2.1.25.1.6.0|66|1
|
||||
1.3.6.1.2.1.25.2.2.0|2|32768
|
||||
1.3.6.1.2.1.25.2.3.1.1.1|2|1
|
||||
1.3.6.1.2.1.25.2.3.1.2.1|6|1.3.6.1.2.1.25.2.1.2
|
||||
1.3.6.1.2.1.25.2.3.1.3.1|4|Random Access Memory
|
||||
1.3.6.1.2.1.25.2.3.1.4.1|2|1
|
||||
1.3.6.1.2.1.25.2.3.1.5.1|2|33554432
|
||||
1.3.6.1.2.1.25.2.3.1.6.1|2|33554432
|
||||
1.3.6.1.2.1.25.2.3.1.7.1|65|0
|
||||
1.3.6.1.2.1.25.3.2.1.1.1|2|1
|
||||
1.3.6.1.2.1.25.3.2.1.2.1|6|1.3.6.1.2.1.25.3.1.5
|
||||
1.3.6.1.2.1.25.3.2.1.3.1|4|Brother HL-5370DW series
|
||||
1.3.6.1.2.1.25.3.2.1.4.1|6|0.0
|
||||
1.3.6.1.2.1.25.3.2.1.5.1|2|2
|
||||
1.3.6.1.2.1.25.3.2.1.6.1|65|0
|
||||
1.3.6.1.2.1.25.3.5.1.2.1|4x|00
|
||||
1.3.6.1.2.1.43.8.2.1.9.1.1|2|50
|
||||
1.3.6.1.2.1.43.8.2.1.9.1.2|2|250
|
||||
1.3.6.1.2.1.43.8.2.1.10.1.1|2|0
|
||||
1.3.6.1.2.1.43.8.2.1.10.1.2|2|-3
|
||||
1.3.6.1.2.1.43.8.2.1.13.1.1|4|MP TRAY
|
||||
1.3.6.1.2.1.43.8.2.1.13.1.2|4|TRAY1
|
||||
1.3.6.1.2.1.43.10.2.1.2.1.1|2|4
|
||||
1.3.6.1.2.1.43.10.2.1.3.1.1|2|7
|
||||
1.3.6.1.2.1.43.10.2.1.4.1.1|65|7792
|
||||
1.3.6.1.2.1.43.10.2.1.5.1.1|65|33
|
||||
1.3.6.1.2.1.43.10.2.1.6.1.1|2|1
|
||||
1.3.6.1.2.1.43.10.2.1.7.1.1|2|0
|
||||
1.3.6.1.2.1.43.10.2.1.8.1.1|2|4
|
||||
1.3.6.1.2.1.43.10.2.1.9.1.1|2|600
|
||||
1.3.6.1.2.1.43.10.2.1.10.1.1|2|600
|
||||
1.3.6.1.2.1.43.10.2.1.11.1.1|2|2217
|
||||
1.3.6.1.2.1.43.10.2.1.12.1.1|2|2217
|
||||
1.3.6.1.2.1.43.10.2.1.13.1.1|2|2217
|
||||
1.3.6.1.2.1.43.10.2.1.14.1.1|2|2217
|
||||
1.3.6.1.2.1.43.10.2.1.15.1.1|2|0
|
||||
1.3.6.1.2.1.43.11.1.1.5.1.1|2|3
|
||||
1.3.6.1.2.1.43.11.1.1.5.1.2|2|3
|
||||
1.3.6.1.2.1.43.11.1.1.5.1.3|2|9
|
||||
1.3.6.1.2.1.43.11.1.1.6.1.1|4|Black Toner Cartridge
|
||||
1.3.6.1.2.1.43.11.1.1.6.1.2|4|Black Toner Cartridge
|
||||
1.3.6.1.2.1.43.11.1.1.6.1.3|4|Drum Unit
|
||||
1.3.6.1.2.1.43.11.1.1.8.1.1|2|-2
|
||||
1.3.6.1.2.1.43.11.1.1.8.1.2|2|-2
|
||||
1.3.6.1.2.1.43.11.1.1.8.1.3|2|25000
|
||||
1.3.6.1.2.1.43.11.1.1.9.1.1|2|0
|
||||
1.3.6.1.2.1.43.11.1.1.9.1.2|2|-3
|
||||
1.3.6.1.2.1.43.11.1.1.9.1.3|2|17208
|
||||
1.3.6.1.4.1.2435.2.3.9.1.1.7.0|4|MFG:Brother;CMD:PJL,PCL,PCLXL,POSTSCRIPT;MDL:HL-5370DW series;CLS:PRINTER;
|
||||
1.3.6.1.4.1.2435.2.3.9.4.2.1.5.5.1.0|4|B9J154306
|
||||
1.3.6.1.4.1.2435.2.4.3.1240.6.5.0|4|Firmware Ver.1.01 (08.12.12)
|
||||
1.3.6.1.4.1.2435.2.4.3.2435.5.13.3.0|4|Brother HL-5370DW series [001ba90ba752]
|
Loading…
Reference in New Issue
Block a user