51 Commits
Author SHA1 Message Date
Tony Murray 0fbd60416f snmpwalk_cache_oid() handle multiline strings (#12254)
* snmpwalk_cache_oid handle multiline strings

* remove useless function

* some output has no space after equals

* airos-af-ltu use hr processors

* don't try to append with empty strings

* fix changed test data due to fix

* revert smartax

* better regex
additional check
2020-10-24 22:56:01 -05:00
Jellyfrog 29f45ca352 Apply fixes from StyleCI (#12124) 2020-09-21 15:59:34 +02:00
Jellyfrog 82f43cb98d Apply fixes from StyleCI (#12120) 2020-09-21 15:40:17 +02:00
Tony Murray 1c08c11a77 Remove Laravel helpers (#11428)
* Remove Laravel helpers

* Replace qualifier with import
2020-04-18 00:37:56 +02:00
Tony Murray 7bbf30bbe9 Fix printer discovery level (#9917)
* Fix printer discovery level
When the printer knows there is "some" paper left.

* update test data
2019-03-07 19:51:39 -06:00
tarik e3e3de1442 Printer paper tray status and error states (#9859)
* adding paper tray status and error states

* adding paper tray test data

* Create jetdirect_papertray.json

* Store printer supply type

* Update json data

* fix style
2019-03-06 18:58:14 -06:00
Neil Lathwood f38b87b499 fix: Fix toner snmpwalk passing an empty array 2018-04-05 21:20:33 +01:00
Neil Lathwood 07ee21b04d fix: Fixed and improved toner discovery (#8428)
* fix: Fixed and improved toner discovery

* Update konica data
xerox tries to insert too long of descriptions.  Lets remove the part and serial number, they are ugly to look at in the ui.
2018-03-28 22:13:45 -05:00
Neil Lathwood 4390347508 fix: Ignore toners with values -2 which is unknown #5637 (#5654) 2017-01-31 08:07:50 +00:00
Neil Lathwood 7d27b4ec9a fix: Fix toner detection discovery #5391 (#5410)
* fix: Fix toner detection

* final fix for toner detection

* update $sql variable
2017-01-13 09:30:39 -06:00
Tony Murray 74f89978fc refactor: toner support (#4795) 2016-10-15 00:14:18 +01:00
Tony Murray b9c4132967 fix: Samsun ML typo, remove need for hex_string translation (#4788) 2016-10-13 11:57:12 -05:00
crcro e7bbde6b52 newdevice: samsung printer ml series (#4781)
* initial support

* added os test

* workaround toner level samsung ml

* snmpsim sysobject oid added
2016-10-13 09:35:29 -05:00
crcro 5c761eb1c7 Updated toner discovery (#4637) 2016-10-03 17:49:23 +01:00
crcro 184715c324 fix: brother toner levels (#4526) 2016-09-21 13:14:16 -05:00
crcro af9f4fb8df fix for spaces 2016-09-18 17:20:34 +03:00
crcro 7ee585b3e3 remove newlines, alphanumeric and hippen accepted 2016-09-18 17:04:08 +03:00
crcro 2e44aac06e accept only alphanumeric chars 2016-09-18 17:02:13 +03:00
crcro 1d73fd3f93 fix 4464 2016-09-17 02:10:55 +03:00
crcro 1110de3ab3 fix: toner nrg os capacity (#4177)
fix: ricoh/nrg toner levels #4177
2016-09-04 16:20:41 +01:00
Michael Van Delft e531253e42 Add Lanier printers
Lanier printers are rebadged richo so I've copied the settings for ricoh
printers
2016-08-30 12:14:56 +08:00
crcro d333aafa79 fix: NRG Toner detection #4250
fix: NRG Toner detection #4250
2016-08-29 20:11:42 +01:00
Neil Lathwood 1055003d3f Remove requirement for ['enable_printers'] (#4192) 2016-08-24 12:42:06 -05:00
crcro 6b2ac09be6 ricoh devices returning garbage as toner level (#4180)
* ricoh devices returning garbage as toner level

* ricoh toner extra check

* more ricoh rules
2016-08-24 17:47:06 +01:00
laf 558dfb2344 Pretty up the discovery process output 2016-06-21 00:59:43 +01:00
Mark Schouten 677a4f3f5f Remove all unneeded if($debug)-statements and replace them with d_echo . discovery dir.. 2015-08-21 16:10:01 +02:00
Job Snijders d8693f05ae Fix coding style part 2 2015-07-15 11:04:22 +02:00
laf 02792176fa Updated most files to use dbFacile 2014-03-12 22:21:33 +00:00
Adam Amstrong b273e04241 /// -> //
git-svn-id: http://www.observium.org/svn/observer/trunk@3240 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-25 12:24:34 +00:00
Adam Amstrong cacf913a55 # -> / for phpdoc
git-svn-id: http://www.observium.org/svn/observer/trunk@3239 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-25 11:29:53 +00:00
Tom Laermans 56b2b49089 allow multiple icons to be defined per OS, let user select one in the device settings
git-svn-id: http://www.observium.org/svn/observer/trunk@3146 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-07 15:39:48 +00:00
Tom Laermans baa4f44c4e make sure capacity oid actually ends up in database for already existing toner
git-svn-id: http://www.observium.org/svn/observer/trunk@3140 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-06 20:07:03 +00:00
Tom Laermans 8df5bb8f8b repoll toner capacity
git-svn-id: http://www.observium.org/svn/observer/trunk@3138 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-06 19:56:06 +00:00
Tom Laermans f55a30f744 some formatting cleanups, introduce some more FIXMEs to look at, plus replace mysql_fetch_array by mysql_fetch_assoc, for great justice
git-svn-id: http://www.observium.org/svn/observer/trunk@2029 61d68cd4-352d-0410-923a-c4978735b2b8
2011-04-06 13:54:50 +00:00
Tom Laermans 2c300b5bf4 cleanups, extend ports.port_descr_type length to 255, maybe break billing, remove and add some FIXMEs, poll toner with snmp_get
git-svn-id: http://www.observium.org/svn/observer/trunk@1985 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-28 20:29:34 +00:00
Adam Amstrong 0c4e6b5dfc fix toner detection. sid3windr failure count decremented by 1.
git-svn-id: http://www.observium.org/svn/observer/trunk@1956 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-22 13:58:04 +00:00
Tom Laermans cfc7fad568 add toner discovery for more hp models, patch by Paul Gear
git-svn-id: http://www.observium.org/svn/observer/trunk@1949 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-22 08:13:18 +00:00
Tom Laermans 31b2092041 more trailing spaces hunted down and shot, then shot again
git-svn-id: http://www.observium.org/svn/observer/trunk@1880 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-16 17:53:20 +00:00
Tom Laermans e43eaf7461 More cleanups and reindents, half way there
git-svn-id: http://www.observium.org/svn/observer/trunk@1838 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-15 10:54:59 +00:00
Tom Laermans e10e6dfa98 code and formatting cleanups/small fixes
git-svn-id: http://www.observium.org/svn/observer/trunk@1771 61d68cd4-352d-0410-923a-c4978735b2b8
2010-12-26 21:57:21 +00:00
Tom Laermans 30bdd952ee Minor fixes, some cleanups, and standardising on echo("x") instead of echo "x"
git-svn-id: http://www.observium.org/svn/observer/trunk@1728 61d68cd4-352d-0410-923a-c4978735b2b8
2010-11-20 14:04:07 +00:00
Tom Laermans 67b9345005 more hardware detection - discovering the internets :)
git-svn-id: http://www.observium.org/svn/observer/trunk@1382 61d68cd4-352d-0410-923a-c4978735b2b8
2010-07-17 17:26:47 +00:00
Tom Laermans 28ea10483f APC UPS and older Masterswitch identification, both tested on AP9606 controller card
git-svn-id: http://www.observium.org/svn/observer/trunk@1342 61d68cd4-352d-0410-923a-c4978735b2b8
2010-07-11 15:27:42 +00:00
Tom Laermans 722e89f12e only discover toner if it actually exists - HP LJ 4100 has 4 indexes but only one toner; should fix FS#46
git-svn-id: http://www.observium.org/svn/observer/trunk@1341 61d68cd4-352d-0410-923a-c4978735b2b8
2010-07-11 14:36:30 +00:00
Tom Laermans 9851b77203 add functions to identify and decode snmp hex strings, add hex string support to jetdirect for toners
git-svn-id: http://www.observium.org/svn/observer/trunk@1298 61d68cd4-352d-0410-923a-c4978735b2b8
2010-07-05 15:27:01 +00:00
Tom Laermans b991efa9a6 add jetdirect support, fix automatic type assignment
git-svn-id: http://www.observium.org/svn/observer/trunk@1283 61d68cd4-352d-0410-923a-c4978735b2b8
2010-07-02 16:11:59 +00:00
Tom Laermans 0bcea700cc fix the last discovery function to use the by-reference array, toner
git-svn-id: http://www.observium.org/svn/observer/trunk@1198 61d68cd4-352d-0410-923a-c4978735b2b8
2010-06-17 14:26:30 +00:00
Tom Laermans 564e9fdc07 MGE UPS support, various fixes
git-svn-id: http://www.observium.org/svn/observer/trunk@1093 61d68cd4-352d-0410-923a-c4978735b2b8
2010-06-03 09:12:07 +00:00
Tom Laermans 7087782cdb toner graphing
git-svn-id: http://www.observium.org/svn/observer/trunk@1016 61d68cd4-352d-0410-923a-c4978735b2b8
2010-03-12 18:13:30 +00:00
Tom Laermans 116f846470 change show_printers to enable_printers, add printer tab (still empty) to printer devices and fix syntax error
git-svn-id: http://www.observium.org/svn/observer/trunk@1015 61d68cd4-352d-0410-923a-c4978735b2b8
2010-03-12 17:46:25 +00:00