79 Commits

Author SHA1 Message Date
Martijn Schmidt 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
Tony Murray 957ecc2441 Locations UI and editing (#9480)
* Better handling of errors
Mapquest seems to return the center of the US on error.......

* Editable locations WIP

* Change to bootgrid ajax table WIP

* Graphs working, using handlebars
update js libs
add current location button

* remove sql query, change icon

* Add the map to the device view, only when gps is expanded.
Allow edit on device page, share js code

* fix chevron rotation, improve click area

* extra warning

* fix overview layout (remove containers)

* fix style

* fix html divs, change collapse ui a bit
move css, update css/js versions

* start zoomed out on new locations

* don't double load scripts, zoom to 17

* fix php-md errors, remove unused use statement

* improve non-admin experience

* Move locations page to Laravel
More functions in Url and Html util classes
reduce code duplication

* translation buttons too

* fix whitespace

* move formatters to the frontend

* small changes

* disable traffic for locations with no devices

* change down 0 to green from gray

* missing "

* Fix paginate all

* working fix for paginate all

* allow sort by counts

* fix down sort

* a little safety

* Don't call the function twice

* btn-xs
2018-11-29 19:23:40 -06:00
Evil.2000 86c097574b Added hiding of disabled ports in graph, device overview and device ports view. (#9017)
When disabling or ignoring ports in the "Ports Settings" (http://<nms_host>/device/device=<device_id>/tab=edit/section=ports/) then the ports are still shown under the Port tab for a specific device (http://<nms_host>/device/device=<device_id>/section=ports/) and in the Overall Traffic Graph.
To keep the view and graph more clear, this change only shows the ports which are not disabled or ignored.

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.

- [y] 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-08-17 18:24:11 +01:00
Tony Murray 561846a44b fix: Fiedx issues with new config init (#8242)
* Fix non-config defaults

* update processConfig and remove file
2018-02-12 09:15:44 +00:00
FTBZ c80f9726c8 feature: Added new EER and Water Flow Rate sensors (#8104)
* Add new EER sensor

* remove bad RRD option

* add waterflow sensor

* add test data result

* added test json data
2018-01-18 20:50:19 +00:00
bergroth 84fdfdf542 Junos dwdm interface sensor support (#7714)
* Junos dwdm interface sensor support  …
  four new sensors
    Chromatic Dispersion ps/nm
    Delay s (seconds)
    Q_factor (dB)
    preFEC_BER (ratio)

  reuse of
    SNR, dbm, temperature, current

* new dwdm sensors more generic, ber and quality_factor

* new sensors updated

* renamed html graphs new sensors

*  fixed ber polling

* Change to base SI Hz and s.

* update sensor divisors to bigint

* rename sql-schema/216.sql to 218.sql

* YAML junos dwmd sensor definitions, except BER

* bigint divisor fixed

* deafult 1 divisior

* small fixes including schema change for another PR

* schema fix
2017-12-12 20:27:10 -06:00
Neil Lathwood 592e8aca4c newdevice: Added sensor detection for APC In Row RD devices (#7385)
* newdevice: Added sensor detection for APC In Row RD devices

* Update apc.yaml

* Update apc.yaml

* Update cooling.inc.php

* Update pressure.inc.php
2017-09-29 21:13:27 +01:00
Neil Lathwood d48be5f507 newdevice: Added detection for Cisco EPC devices (#6690)
* newdevice: Added detection for Cisco EPC devices

* updated test file

* added dbm support

* added snr support
2017-05-23 10:28:44 -05:00
Tony Murray 6993bd122c fix: sensors not being removed from database (#6169) 2017-03-12 00:03:04 +00:00
Neil Lathwood 5e349685b3 newdevice: APC in-row coolers 2017-01-07 02:09:41 +02:00
Aaron Daniels a2563c5b67 feature: Added Cisco Integrated Management Console inventory and sensor support #4454 2016-10-06 01:40:37 +01:00
boudreau a9a2e7e742 Update overview.inc.php 2016-09-19 11:01:29 -04:00
Tony Murray b8e9b2d917 Implement an autoloader (#4140)
* Implement an autoloader

When cleaning up classes for psr2, things got a bit unwieldy, so I implemented a class autoloader.
I created a PSR-0 compliant LibreNMS directory and moved all classes there that made sense.
Implemented LibreNMS\ClassLoader which supports adding manual class mappings

This reduces the file includes needed and only loads classes when needed.

* Add teh autoloader to graph.php

* Add a small bit of docs
Fix incomplete class in includes/discovery/functions.inc.php
2016-08-21 14:07:14 +01:00
Tony Murray 8c639aa5a4 PSR2 Cleanup: /html edition
Travis tests for code conformance. Ignore warnings for now.
Fixed all errors, left most warnings.
2016-08-18 21:29:30 -05:00
laf 2a54c096af Fixed namespace issue 2016-08-18 22:06:00 +01:00
Aaron Daniels 4545aea28d - Services widget on device overview page was still displaying legacy status
while the database has been storing nagios style status.
  Modified to: 0=Ok, 1=Unknown, 2=Critical.
2016-04-26 07:04:22 +10:00
Aaron Daniels 111a52d48c Merge branch 'master' into issue-2193 2016-04-12 07:34:40 +10:00
Paul Heinrichs a13d148fb1 Added Signal Sensor 2016-03-22 10:37:07 -04:00
Aaron Daniels 854812a457 - added rrd_pipes to check script
- renamed service_* to *_service
2016-03-22 16:40:51 +10:00
Aaron Daniels 0d6cfec589 Nagios Services
- Moved check-services.php to a poller module
    - Added performance data collection to the poller
    - Centralised DB functions to includes/services.inc.php
    - Created add/edit/delete functions off the device, services page
    - Removed legacy edit/delete interfaces.
    - Moved and modified check.inc scripts
    - Documentation Updates
    - Modified services table
2016-03-15 22:23:14 +10:00
Mike Rostermund 0cc3e1a9e2 Remove php closing tags to fix scrut issues 2015-08-04 19:29:43 +02:00
Job Snijders d8693f05ae Fix coding style part 2 2015-07-15 11:04:22 +02:00
Daniel Preussker e24442124b Merge pull request #1333 from laf/issue-1252
Added load and state to device overview
2015-06-25 09:55:26 +02:00
laf 44432c85e5 Added load and state to device overview 2015-06-24 16:53:10 +01:00
Runar Borge 308d686294 Added plugin hook to create a custom container under device->overview.
Container apears over "Overall traffic" on the left phane
2015-06-22 21:12:57 +02:00
laf b3bbf46d68 Updated ports up check to include ifAdminStatus 2015-05-11 12:42:46 +01:00
mchasteen c1c26bf831 Added new sensor - Battery Charge. Added discover and polling for APC UPSes. 2015-02-26 19:30:49 +00:00
laf 54c3b7bc14 Refreshed visually the Device overview page 2014-02-26 22:33:45 +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 613e8b1e29 syntaxer run
git-svn-id: http://www.observium.org/svn/observer/trunk@3117 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-02 22:02:30 +00:00
Tom Laermans 46b7c74e51 bring device overview info table layout in line with all other information panels
git-svn-id: http://www.observium.org/svn/observer/trunk@3081 61d68cd4-352d-0410-923a-c4978735b2b8
2012-04-22 17:13:27 +00:00
Tom Laermans 08952e40c6 show toner on device overview (beta), minor fixes
git-svn-id: http://www.observium.org/svn/observer/trunk@3014 61d68cd4-352d-0410-923a-c4978735b2b8
2012-04-09 23:00:31 +00:00
Tom Laermans a803ec4147 fix syslog link, patch by RobJE
git-svn-id: http://www.observium.org/svn/observer/trunk@2987 61d68cd4-352d-0410-923a-c4978735b2b8
2012-04-07 22:59:31 +00:00
Tom Laermans 2667649d3c syntaxer run
git-svn-id: http://www.observium.org/svn/observer/trunk@2970 61d68cd4-352d-0410-923a-c4978735b2b8
2012-04-06 13:56:23 +00:00
Tom Laermans 9585d00d0a fix evenlog link on device overview
git-svn-id: http://www.observium.org/svn/observer/trunk@2810 61d68cd4-352d-0410-923a-c4978735b2b8
2012-01-06 11:55:21 +00:00
Adam Amstrong 8cf5ae5c75 dirty bitch moron files
git-svn-id: http://www.observium.org/svn/observer/trunk@2780 61d68cd4-352d-0410-923a-c4978735b2b8
2011-12-14 10:54:35 +00:00
Tom Laermans 7bb1827628 only show syslog on device overview when enable_syslog=1
git-svn-id: http://www.observium.org/svn/observer/trunk@2727 61d68cd4-352d-0410-923a-c4978735b2b8
2011-11-16 21:05:55 +00:00
Adam Amstrong 45c6d95501 add infrastructure to collect status of cisco catalyst 6k crossbar and new state table for entity-mib
git-svn-id: http://www.observium.org/svn/observer/trunk@2723 61d68cd4-352d-0410-923a-c4978735b2b8
2011-11-14 18:28:00 +00:00
Tom Laermans a369c442eb syntaxer run
git-svn-id: http://www.observium.org/svn/observer/trunk@2643 61d68cd4-352d-0410-923a-c4978735b2b8
2011-10-04 14:38:54 +00:00
Tom Laermans 4c8e94dc3a make 'recent syslog' clickable, like the other headings on the overview page
git-svn-id: http://www.observium.org/svn/observer/trunk@2591 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-27 08:46:17 +00:00
Adam Amstrong 390d11f69c FUCK YOU, CROSSBROWSER CHROME/FIREFOX TABS. FUCK YOU AND THE HORSE YOU RODE IN ON. ADAMA WINS!
git-svn-id: http://www.observium.org/svn/observer/trunk@2568 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-23 16:52:44 +00:00
Tom Laermans ade67941ac don't show syslog header when we don't have log data
git-svn-id: http://www.observium.org/svn/observer/trunk@2564 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-23 14:36:37 +00:00
Tom Laermans fd46d7bff9 fix more broken links on device overview
git-svn-id: http://www.observium.org/svn/observer/trunk@2529 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-20 16:22:56 +00:00
Tom Laermans 6e0a89cdfc better fix than the previous one, remove base_url
git-svn-id: http://www.observium.org/svn/observer/trunk@2452 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-13 10:22:46 +00:00
Tom Laermans 43167ca3b1 small fix reported by tuv
git-svn-id: http://www.observium.org/svn/observer/trunk@2451 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-13 08:54:53 +00:00
Adam Amstrong 046833b67e updates
git-svn-id: http://www.observium.org/svn/observer/trunk@2344 61d68cd4-352d-0410-923a-c4978735b2b8
2011-05-17 22:10:23 +00:00
Adam Amstrong 131ab8ec72 fix syslog on device overview (duh, missing argument!)
git-svn-id: http://www.observium.org/svn/observer/trunk@2342 61d68cd4-352d-0410-923a-c4978735b2b8
2011-05-17 21:24:04 +00:00
Adam Amstrong d4a29c41a5 more db*
git-svn-id: http://www.observium.org/svn/observer/trunk@2324 61d68cd4-352d-0410-923a-c4978735b2b8
2011-05-15 15:29:47 +00:00
Tom Laermans 264ae72505 whoops, committed too much
git-svn-id: http://www.observium.org/svn/observer/trunk@2266 61d68cd4-352d-0410-923a-c4978735b2b8
2011-05-06 17:43:43 +00:00