95 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
bonzai86 9350b54464 feature: Added dynamic graphs with RrdGraphJS by oetiker (#9087)
* feature: Added dynamic graphs with RrdGraphJS by oetiker (https://github.com/oetiker/RrdGraphJS)

* fixed DragCursor.cur

* refactoring, only js when needed

* doc: added use of dynamic graphs switch in Configuration.md

* Updated to use Config, schema + example gif

* Rename 261.sql to 262.sql
2018-08-29 08:25:16 -05:00
KOMEDA Shinji d6c54af9e1 Collectd graph bug fix (#8855)
- fix graph color handling bug
- fix graph listing when metagraph exists
- show collectd metric name (plugin and type) in title

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-07 14:27:46 +01:00
Richard Mayhew 99b6dff73e webui: Removed unwanted panel graph header (#8304)
* New event log severity model

* Revert "New event log severity model"

This reverts commit 0783527af8.

* Removed Wrong Graph Header

* Removed the route end()
2018-02-27 16:47:36 +00:00
yac01 38cf424417 webui: Added ability for users to configure selectable times for graphs (#7193)
* feat:add links for librenms graph

* added widescreen config
2017-08-25 20:11:01 +01:00
Tony Murray 50d31ad00b fix: Restore access to existing wireless graphs (#6593) 2017-05-05 19:39:23 +01:00
Tony Murray 4c0412b14d feature: Wireless Sensors Overhaul (#6471)
* feature: Wireless Sensors
Includes client counts for ios and unifi
Graphing could use some improvement.
Alerting and threshold ui not implemented

WIP: starting OO based wireless sensors.

Class based functionality working
remove old functional files
add schema file

discovery needs to be enabled, not polling

fix up schema

fix Unifi discovery not returning an array

Add some debug when discovering a sensor.
Fix style.

Add missing semicolin

Add a null object (Generic) for OS.
Fill out some phpdocs

Re-organized code
Each sensor type now has it's own discovery and polling interface
Custom polling tested with Unifi CCQ

Left to do:
Implement UI (Graphs and Custom thresholds)
Alerting
Testing

Fix event message text

Remove runDiscovery and runPolling from OS, they are unused and don't belong there.

Cleanups/docs

Missed this file.

Remove the requirement to fetch the current value to check validity.
Do that automatically if current is not specified
A few cleanups here and there

First pass at graphing.
device_ and wireless_ graphs added.

Add RouterOS support

Singleton OS instance isn't required right now.
Remove that to allow some memory to be freed.

Add wireless to the device list metrics.
Make all metrics clickable

Tweak graphs a bit

Implement limit configuration page.
Use sensors page as common code instead of duplicating.
Clean up some javascript interactions:  Allow enter on values to save. Cancel if update is not needed. Enable the clear custom button after setting a custom value.
Add some wireless alert rules to the library.

Add documentation.

Add unifi client counts by ssid in addition to radio.
Optimize Sensor polling a bit.

Add HP MSM clients support (for full controller)
Fix function accessibility

Formalize the discovery and poller interfaces.

Add Xirrus clients and noise floor
move module interfaces to a more appropriate place.
push caching code up to os, unsure about this do to the limitations

No point in selectively enabling wireless discovery.  We only discover if the device supports something.

Add RSSI, Power, and Rate.
Add these sensors for Ubnt Airos.
Clean up some copyrights.

Reduce the amount of files need to add new types.
Leave graph files for consistency and to allow customization.

Remove the old wifi clients graph completely.
ciscowlc should have improved counts (total and per-ssid)

Schema didn't get added.

Impelement the rest of the AirOS sensors
Reformat and re-organize the Airos.php class.

Add several UBNT AirFiber sensors

A few fixes add links to the section headers

Add HP MSM mibs.

* Schema file got dropped in rebase.

* Add wireless menu to view sensors across all devices.
Icons in the menu need help :/

* Add HeliOS, Mimosa, and Siklu support
Sensors added SNR + Noise

* Add power and utilization to Unifi

* Update polling to prefetch all sensor data in a few snmp requests as possible

* Add Extendair: tx+rx power, aggregate rate, frequency

* Add a check for duplicate sensors in discovery.  Just print an error for now.

* Add Bit Error Ratio (named error-ratio to allow for bit error rate to be added if needed)
Fix an incorrect link in the wireless sensors table

* Add error rate and change all bps and Hz to use si units

* Fixes to limits and frequency display

* Fix overview graph frequency display
A few decimal place tweaks

* Don't allow switching sensor and wireless-sensor graphs, it doesn't work.
Change individual distance graphs to use si units

* Go through the OS and make sure I got all the sensors I can (probably missed some still)
Because pollWirelessChannelAsFrequency() is generic and a little complex, so pull it up to OS.
Message to help developers adding supports that don't return an array from discover functions.

* Fix some issues

* Remove noise and signal for now at least
A couple more fixes
Add a notification

* Oopsie

* Bonus AirFiber sensors
2017-05-01 23:49:11 -05:00
Richard Mayhew 47397d0083 webui: Updated icons to use Font Awesome (#5468) 2017-01-21 11:24:05 +00: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
pblasquez 2c57979011 forgot to add back max() 2016-04-26 16:07:20 -07:00
pblasquez 8e8315dbcd Move config to WebUI 2016-04-26 12:56:58 -07:00
pblasquez 8d4c65b8e8 Revert "Make minimum height configurable"
This reverts commit 292fe5901b.
2016-04-26 12:43:49 -07:00
pblasquez 292fe5901b Make minimum height configurable 2016-04-21 22:20:53 -07:00
Paul Gear e38c2f6885 Show only relevant MIB graphs
This reduces noise in the drop-down by only displaying MIB graphs defined for the device.
2016-01-17 15:00:15 +10:00
Louis Bailleul ccfc9450ae Add media query to cahnge the size of the thumbnails
This prevent the scrollbar on graph.inc.php
Tweaked the graphs sizing to fit better on the screen
2015-11-26 17:31:35 +00:00
Louis Bailleul 961a9fff4b Make graph page use session variable to compute graph size 2015-11-26 17:29:17 +00:00
Louis Bailleul 8f2ddb243d Add media query to cahnge the size of the thumbnails
This prevent the scrollbar on graph.inc.php
Tweaked the graphs sizing to fit better on the screen
2015-11-26 17:15:54 +00:00
Louis Bailleul 9ad6763c86 Make graph page use session variable to compute graph size 2015-11-26 17:13:59 +00:00
laf e9deae1315 Centralised the date selector for graphs for re-use 2015-10-20 21:35:08 +00:00
Arjit Chaudhary d5259cbdec Fix fonts
Screenshot: http://i.imgur.com/Ga0AUxP.png
2015-10-01 17:01:33 +05:30
Arjit Chaudhary 72b9ee2669 Cleanup/Change UI a bit. 2015-08-23 16:37:21 +05:30
Arjit Chaudhary f5ad4665cd Center the graph displayed. 2015-08-22 17:58:10 +05:30
Clint Armstrong b5e8998c70 apply lazyload patch 2015-07-16 12:42:58 -04:00
Job Snijders d8693f05ae Fix coding style part 2 2015-07-15 11:04:22 +02:00
Travis Hegner 6314aaddd4 removing commented code 2015-07-02 15:12:42 -04:00
Travis Hegner 6878e380b3 using moment.js since we have it anyway 2015-07-02 15:10:49 -04:00
Travis Hegner d3aea6757b trying a more universal (perhaps not standard) format 2015-07-02 15:05:05 -04:00
Travis Hegner 01e4a6650e putting the T back with Z this time 2015-07-02 14:59:11 -04:00
Travis Hegner 0ab00ba0fb debug output 2015-07-02 14:55:42 -04:00
Travis Hegner 0fbcc0d1b6 ff failing to parse 2015-07-02 14:54:36 -04:00
Travis Hegner 29244a49dc js syntax error 2015-07-02 14:39:28 -04:00
Travis Hegner a9fa366415 js syntax error 2015-07-02 14:34:40 -04:00
Travis Hegner 054022346e prevent form submission from converting to UTC 2015-07-02 14:33:19 -04:00
Travis Hegner f11262eb9d formatting date with javascript, so it auto converts to localtime 2015-07-02 14:30:43 -04:00
Travis Hegner 9a99af06c8 debug output 2015-07-02 14:24:37 -04:00
Travis Hegner 4655143167 debug output 2015-07-02 14:23:03 -04:00
Travis Hegner 48a380ff7e debug output 2015-07-02 14:21:10 -04:00
Travis Hegner 2a7eb47437 debug output 2015-07-02 14:12:33 -04:00
Travis Hegner 5ac243f731 debug output 2015-07-02 14:10:16 -04:00
Travis Hegner abeb015e33 debug output 2015-07-02 14:09:23 -04:00
Travis Hegner a2e248cf4b trying to set the date from js 2015-07-02 14:06:02 -04:00
Travis Hegner dbb256d431 change the order to see if it shows date immediatly 2015-07-02 13:56:28 -04:00
Travis Hegner f2fe24c602 use js to convert 2015-07-02 13:54:27 -04:00
Travis Hegner 8d49395b10 test static TZ parse 2015-07-02 13:41:54 -04:00
Paul Gear 7dbb670638 Factor out getting the list of subtypes; add MIB types which were loaded from database 2015-06-16 08:27:57 +10:00
laf ee4aaf1749 Tidied up web interface to use standard dateformats 2015-05-22 14:05:09 +01:00
laf 18b4dcb136 More work on maintenance 2015-04-13 17:48:49 +01:00
laf 082ac6cc66 Final tidy up of the date search box for graphs 2015-03-01 11:57:35 +00:00
Paul Gear 414735c183 Vertically compact controls on main graph screen
I'm still not entirely happy with the layout, but this should be a
little more streamlined.  Feedback appreciated.
2015-02-22 21:55:56 +10:00
Paul Gear f7821198da Updated graphs page to use bootstrap datetimepicker PR#306
- Separated from removal of jqplot code
- Merge remote-tracking branch 'laf/issue-laf-52'

Conflicts:
	html/index.php
2014-10-28 08:37:49 +10:00