Commit Graph
48 Commits
Author SHA1 Message Date
Jurrian van IerselandGitHub d61cfb5688 Added sensors for outlets on Schleifenbauer devices. (#10949)
* Added sensors for outlets on Schleifenbauer devices. Also use the outlet name when configured.

* Updated tests for Schleifenbauer

* Fixed on test for Schleifenbauer

* Optimized polling by retriving only outlets from the device with the network connection, not all devices on the data-bus.

* Fixed code styling

* Use shorthand comparisons for names

* Fix for conflicting $entPhysicalIndex
2020-04-27 00:35:00 +02:00
Tony MurrayandGitHub 217969e140 Update php-codesniffer (#11368)
* PHPCS 3.5+

* Fix newly detected style issues
2020-04-03 08:41:24 -05:00
PipoCanajaandGitHub c9ae2891dd Rewrite Microsemi Midspan Power Sensors with mib (#10959)
* rewrite with mib
* tests
2019-12-18 09:59:34 +01:00
Tobias HeisterandTony Murray 728bc5f790 Improved RARITAN PDU/PDU2 MIB (current, power) and external env. sensors (#10616)
* added support for PDU/PDU2 MIB data (current, power) and added external sensor fpr humidity and temperature on PDU MIB

* added test data of 1 PDU-MIB device and 1 PDU2-MIB device

* Create raritan-pdu.json

* forgot to do save-data on last commit
2019-10-20 21:26:40 +00:00
StackOverBufferandTony Murray fec165fb86 Add power sensor for eaton ups (#10306)
* Add power sensor for eaton ups

* removed whitespace at end of line

* add test data
2019-06-11 23:46:43 -05:00
Daniele ViganòandTony Murray e9b3e258e8 Fix power consumption detection on Dell servers (#10250) 2019-05-23 09:54:19 -05:00
Spencer ButlerandTony Murray 83522c6fef Added support for East iStars UPS (os: istars) (#10041)
* istars - Added support for East iStars UPS (os: istars)

* typo

* remove duplicate image

* refactored to use rfc1628

* added json

* update is_array to isset for bad rfc1628 implementation

* Update istars.inc.php

* revert rfc1628 changes

* update test data + PR 10240 patch

* update OIDs
2019-05-21 11:03:28 -05:00
KodApa85andTony Murray 7f104d4fd9 Advanced state sensors (#9881)
* refactor: advanced sensor states

mark create_state_index($state_name) as E_USER_DEPRECATED?

* fix: minor corrections

* fix: mib has partialSync(9) and incompatibleVersion(8)

* fix: corrected netagent2upsstate - Sleeping(5)

* fix: NetAgent2 upsThreePhaseUPSStatusInverterOperating correction

* refactor: array() be gone

* Refactoring includes/discovery/sensors/state/extendair.inc.php with arrays
And tidying up array formatting in other files

* fix: minor typo

* standardising array item names

removed redundant "if ($state_index_id !== null) {"

* workaround: procurve & serverscheck

a sensor is causing create_state_index($state) to return null.
The updated code doesn't allow for this and thus a hybrid is being used.

* standardised naming of state info. Caused a typo $state_name instead of $status_name
$state_name is the standard

* converted compas to square arrays

* Converted APC states using preg_match to new create_state_index() call

* Update boss.inc.php
2019-03-04 11:31:17 -06:00
Martijn SchmidtandTony Murray e0da083f5c New OS: Schleifenbauer, entity-physical improvements, various html page fixes (#9471)
* Fix some comment and documentation typos.

* Fix various entphysical page display issues.

- Resolve flickering during loading (missing liClosed for nested items).
- Clicking a sensor actually takes you to the matching graph now.

* Add a few nicecase() calls to clean up html page display.

* Create discover_entity_physical() function

- Add discover_entity_physical() function into includes/discovery/functions.inc.php
- This allows for an easy implementation of OS-specific entity-physical discovery.
- Update includes/discovery/entity-physical/entity-physical.inc.php to use the new function.

* Add power_consumed and power_factor sensors.

* Two new icons, make more entPhysical data visible.

* Pre-commit fix: blank line found at end of control structure.

* Add Schleifenbauer OS support.

* Now really fix the comment typo.

* Fix parsing mistakes.

* Add a generic count sensor.

* Make the Schleifenbauer discovery use count instead of state sensors.

* Don't place count sensor at the top, add sane limits for Schleifenbauer

* Finetuning the rrd_options, changing Schleifenbauer sensor names.

* Update schleifenbauer.svg

* optimize logo too

* add test data

* fix sensor value display (spaces break it)

* update entPhysicalIndex
2019-01-20 12:24:11 -06:00
TheGreatDocandNeil Lathwood a1e2222191 Fixed Total Chassis Power sensor_index for SmartAX MA5603T/MA5683T (#9115)
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`

In SmartAX MA5683T/MA5603T Starting index for Per Card power starts in '0' instead '1'. '0' was also the index for Total Chassis Power.
2018-09-02 23:48:19 +01:00
TheGreatDocandNeil Lathwood 7298c135c2 Improved SmartAX OS support. Added CPU&Temperature for each card and … (#9023)
* Improved SmartAX OS support. Added CPU&Temperature for each card and hardware detection

* Minor fixes

* Uploaded test data

* Moved to snmpwalk_array_num()

* Fixed Temperature

* Added sensor power

* Fixed Style issues and proper hardware detection

* Fixed last style issue

* Last update. Added version and serial. Added traffic and processors mini graphs
2018-08-19 13:33:17 +01:00
Tony MurrayandNeil Lathwood eeb3d58f5b Improved Logging and Debugging (#8870)
Use Log facility when Laravel is booted.
Update init.php so we can easily boot Laravel for CLI scripts. (and just Eloquent, but that may go away)
Move all debug setup into set_debug() function and use that across all scripts.
Log Laravel database queries.
Send debug output to librenms log file when enabling debug in the webui.
Allow for colorized Log CLI output. (currently will leave % tags in log file output)

** Needs testing and perhaps tweaking still.

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`
2018-07-13 23:08:00 +01:00
vivia11andTony Murray 0797d0892f Fix sensors for cimc os (#8591)
* fix OIDs for temperature sensor and add test data

* Add current values to discover sensor and test data

* Redo test data

* Split up power/current/voltage sensors to individual files and remove json data

* Whitespace fix

* Fix temperature sensors - spelling mistakes

* Code changes to voltage/power/current sensors

* Go to yaml, add mibs and json
2018-05-11 22:23:37 -05:00
Søren RosiakandTony Murray 8ec70a92af Improve Sentry4 discovery (#8407)
* feature: Improve Sentry4 discovery

* Added test data

* Updated to take into account C/F conversion

* fixed test json data
2018-03-29 00:22:17 -05:00
Neil LathwoodandTony Murray 41dbc3547d device: Added detection for Raritan KVM and EMX devices (#8279) 2018-03-23 12:26:09 -05:00
Neil LathwoodandGitHub 1f03110b20 refactor: Moved routeros sensors to yaml + fixed divisors (#7946)
* move routeros fanspeed to yaml

* moved more routeros sensors to yaml

* reverted signal migration to yaml

* added routeros test data

* re-saved test data for routeros
2018-01-17 20:25:09 +00:00
Tony MurrayandNeil Lathwood 76a35f2e14 device: Fix hpe-ipdu initial thresholds (#7694)
Convert to yaml
Set load thresholds from snmp
preserve existing indexes
2017-11-09 20:24:24 +00:00
Neil LathwoodandGitHub b2c5d069a7 fix: Updated hpe iPdu to remove power and fix load values (#7596) 2017-10-31 21:08:26 +00:00
Tony MurrayandNeil Lathwood 39804b047d refactor: rfc1628 sensor tidy up (#7341)
* refactor: rfc1628 tidy up
reduce the amount of snmp calls

* Did not finish re-writing rfc1628 load

* fix type in bypass power oid

* remove testing changes
2017-09-19 20:12:04 +01:00
Neil LathwoodandGitHub 65c6240c2a newdevice: Added additional sensor support for Sentry4 devices (#7198) 2017-08-22 20:52:27 +01:00
Lorenzo ZafraandNeil Lathwood b8398d32b0 newdevice: Added additional sensors for Microsemi PowerDsine PoE Switches (#7114)
* Added power, voltage and temperature sensors for microsemi powerdsine poe switch

* Use MIB, switch to yaml discovery

* Revert "Use MIB, switch to yaml discovery"
2017-08-04 07:47:49 +01:00
Neil LathwoodandTony Murray 19cdf8f684 newdevice: Added support for Schneider PowerLogic (#6809) 2017-06-13 16:20:12 -05:00
Neil LathwoodandTony Murray e223ec3ff2 newdevice: Added support for Geist PDU (#6646) 2017-05-16 23:39:35 -05:00
Neil LathwoodandTony Murray 3ff8b269f5 newdevice: Added support for enLogic PDUs (#6464) 2017-04-22 08:07:37 -05:00
Neil LathwoodandTony Murray 0190691061 newdevice: Added sensors + additional info for HPE iPDU (#6382)
* newdevice: Added sensors + additional info for HPE iPDU

* added trim
2017-04-07 22:19:38 -05:00
Tony MurrayandNeil Lathwood ea5a4b3586 fix: attempt to fix several bugs with sensor limits and incorrect detection (#6176) 2017-03-12 14:56:56 +00:00
Neil LathwoodandGitHub 198ec806b3 fix: Refactor ipoman cache code to use pre-cache in sensors #5881 (#5983)
* fix: Refactor ipoman cache code to use pre-cache in sensors #5881

* added missing file
2017-03-06 15:36:53 +00:00
Neil LathwoodandGitHub 59fc5ffcbf newdevice: Improved sensor support for Dell servers #5242 (#5803)
* newdevice: Improved sensor support for Dell servers #5242

* added missing files

* small update

* Update dell.inc.php
2017-02-09 08:00:23 +00:00
Neil LathwoodandTony Murray d4e8c54516 refactor: Tidy up sensor discovery (#5550)
* refactor: Tidy up sensor discovery

* more files

* removed uneeded files

* updated array check

* updates for linux/supermicro

* small changes

* Update linux.inc.php

* Add supermicro temps back to linux.inc.php

* No need for is_file on rfc1628.inc.php, it exists

* Revert rfc1628 change

* Fix whitespace...

* rebased

* fixed $valid data not being passed to new sensors() function
2017-02-03 06:39:38 -06:00
Neil LathwoodandGitHub 02bffcdde2 newdevice: Added signal support for RouterOS (#5498) 2017-01-19 23:20:03 +00:00
David BellandNeil Lathwood 3d0cf76e9b newdevice: Add more sensor detection for Mikrotik devices #5387 2017-01-13 11:34:02 +00:00
Neil LathwoodandSøren Rosiak 5e349685b3 newdevice: APC in-row coolers 2017-01-07 02:09:41 +02:00
Søren RosiakandNeil Lathwood ac790caaf0 newdevice: Added additional detection for Dell UPS (#5322) 2017-01-06 21:42:04 +00:00
Søren RosiakandTony Murray 55f0d441e6 feature: Add PoE support for CiscoSB #1746 (#4843)
* feature: Add PoE support for CiscoSB #1746

* style fix

* Update description

* Undo a little

Not sure about the Port prefix as this uses ifDescr and I don't have that on my test data, so I just the ifIndex...
2016-11-10 19:38:31 -06:00
Neil LathwoodandGitHub 81c8a7a96f newdevice: Added support for Sinetica UPS ¢4613 2016-10-17 16:55:40 +01:00
Tony Murray 28290187f9 Fix style issue 2016-10-15 08:49:41 -05:00
Tony Murray 22dca6c103 Add all the sensors 2016-10-15 00:58:19 -05:00
Neil LathwoodandSøren Rosiak 6c324cd03e refactor: Improve sensors polling for performance increase (#4725)
refactor: Improve sensors polling for performance increase
2016-10-11 19:34:09 +03:00
Aaron DanielsandNeil Lathwood a2563c5b67 feature: Added Cisco Integrated Management Console inventory and sensor support #4454 2016-10-06 01:40:37 +01:00
Tony Murray 1b4d44b2f8 Netonix switch update
New mib
Added total power consumption and dc power input (for dc switches)
Small cleanups
2016-09-26 10:34:49 -05:00
Tony MurrayandNeil Lathwood 9284bc60ff Update code in includes to be PSR-2 compliant (#4220)
refactor: Update code in /includes to be psr2 compliant #4220
2016-08-28 18:32:58 +01:00
crcro 370fab065a fix not set 2016-08-16 09:55:00 +03:00
crcro 2bf54f106b removed useless comments 2016-08-16 05:50:45 +03:00
crcro b4354b3801 rewrite to use snmp_walk against snmp_get for fewer device queries 2016-08-16 05:48:47 +03:00
crcro b201e642d8 fix: sensor id for rrd file 2016-08-13 15:42:43 +03:00
crcro ca1223cf2d added sensors for power usage and temperatures of the blade system 2016-08-13 15:10:45 +03:00
Vikram Adukia 42ffb6bf22 only output the mib if there is a match 2016-04-21 14:24:53 -07:00
laf b5d1155006 Updated discovery sensors module directory structure 2016-01-17 20:47:47 +00:00