57 Commits

Author SHA1 Message Date
Tony Murray 28ea91d7d9 Eltek Valere more sensors (#9713)
* Eltek Valere more sensors

* Fix runtime, temperature and format runtime

* remove "runtime" sensor

* Don't need the pre-cache

* Parenthesis

* match previous indentation
2019-01-22 17:06:27 -06:00
Tony Murray 45e0e5e19a count sensor cleanups (#9707) 2019-01-20 13:37:08 -06:00
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 63c85429ae Added support for grouping sensors (#9606)
Improves visual identification for sensors

 - [x] Docs

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`
After you are done testing, you can remove the changes with `./scripts/github-remove`.  If there are schema changes, you can ask on discord how to revert.
2019-01-11 22:42:56 +00: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
Arjit Chaudhary 9a5ac514a5 order by sensor_descr aswell (#9478)
Sort sensors by sensor_descr
2018-11-27 21:30:08 -06:00
Neil Lathwood 38be66993f webui: Updated sensors overview header to be consistent with others (#7761)
* webui: Updated sensors overview header to be consistent with others

* added line break
2017-11-18 10:26:12 +00:00
Tony Murray 20b08cf595 refactor: finish logic and definition separation (#6883)
Clean up rewrites to only have function definitions
Move authentication initialization into a function
2017-07-03 15:38:58 -05:00
Richard Mayhew 47397d0083 webui: Updated icons to use Font Awesome (#5468) 2017-01-21 11:24:05 +00:00
Neil Lathwood e7d0d1dd7d fix: Fix state_indexes for state overview sensors (#5191) 2016-12-18 21:55:25 +02:00
Neil Lathwood 355c7407aa fix: Changed sql query for state sensors on device overview page to ignore null sensor_id (#5180) 2016-12-16 08:26:12 -06:00
Tony Murray a83e126b40 refactor: Remove inappropriate usages of truncate() (#5028)
Where truncate() is used as substr(), replace with substr()
2016-11-20 11:12:25 +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
crcro 96ed9c072c run rename only for ipmi type sensors, added the power usage sensors, updated rewrite for known hosts 2016-08-10 04:55:30 +03:00
crcro d5b499bae3 ipmi sensors rewrite based on known hardware id 2016-08-10 00:20:51 +03:00
Tony Murray 8f00f49b79 Group sensors of the same type together, then order by index, oid 2016-07-22 18:36:10 -05:00
Tony Murray 46a0bbfc82 Add PoE state to Netonix devices
Allow for non-numeric states.  state_descr must match what is returned by the device.
2016-04-23 20:56:21 -05:00
Rosiak eff7e18d4e Align tables
Something that bugged me for a while..
2016-02-28 02:29:51 +01:00
Rosiak 74db415404 Fixup 2016-02-28 01:27:23 +01:00
Rosiak f298ccb30f Scrut fix 2016-02-27 19:12:13 +01:00
Rosiak 6923a32dbd A few things
ucwords = happy ocd

Basic state page

Allign order = happy ocd
2016-02-27 02:35:28 +01:00
Rosiak ebe9154934 Added more sensors 2016-02-27 01:56:50 +01:00
Rosiak 928fd70ced Proper State Monitoring 2016-02-26 23:40:34 +01:00
Tony Murray e3ec42c06d Deal with 0 value for sensor data better.
Issue #2883
2016-02-09 14:20:36 -06:00
Mike Rostermund ac572e1558 Sort sensors by OID to more logically group sensors on device overview 2016-01-30 23:02:09 +01:00
Mike Rostermund 868e4d0920 Device overview: all headers are now bold and elements within are not. 2015-10-08 19:38:34 +02:00
Daniel Preussker 7832868dd6 Added generic memcached support to dbFacile.*
Remove now obsolete memcached code in:
  html/ajax_rulesuggest.php

Remove all the broken memcached code in:
  html/pages/device/health/mempool.inc.php
  html/pages/device/overview/generic/sensor.inc.php
  html/pages/device/overview/mempools.inc.php
  html/pages/device/port.inc.php
  html/pages/device/ports.inc.php
  html/pages/health/sensors.inc.php
  includes/polling/functions.inc.php
  includes/polling/mempools.inc.php
  includes/polling/ports.inc.php
  includes/polling/storage.inc.php
2015-09-27 19:33:17 +00:00
Daniel Preussker 6efe5b086c Merge pull request #1370 from travishegner/lazyload
Lazyload
2015-07-18 22:02:13 +02:00
laf f98dce4f61 Shorten descriptions with interface names in 2015-07-18 18:55:24 +01:00
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
laf 6e84535031 Dynamic config system 2015-05-14 21:54:33 +01:00
mchasteen 4013ca3a5a Fixed some formatting for generic sensors. 2015-03-03 17:06:49 -07: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
Adam Amstrong 5a9422d2ba fix health/sensors
git-svn-id: http://www.observium.org/svn/observer/trunk@3231 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-23 15:27:25 +00:00
Tom Laermans f2be2f33d2 add agent sensor capacity, hddtemp script in agent-local as demo, possibly needs a little more work
git-svn-id: http://www.observium.org/svn/observer/trunk@3213 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-20 18:23:40 +00:00
Tom Laermans 8df2b9b3f5 remove legacy variables, hopefully i didn't mess anything up
git-svn-id: http://www.observium.org/svn/observer/trunk@3134 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-06 18:38:11 +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
Adam Amstrong 0376427943 more memcached
git-svn-id: http://www.observium.org/svn/observer/trunk@3114 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-02 15:06:12 +00:00
Adam Amstrong a12c71df4e quadgraphs -> graphrow
git-svn-id: http://www.observium.org/svn/observer/trunk@3093 61d68cd4-352d-0410-923a-c4978735b2b8
2012-04-26 16:49:38 +00:00
Tom Laermans ebc03a87b2 change more tables to css colouring, some more to do but not for now...
git-svn-id: http://www.observium.org/svn/observer/trunk@3020 61d68cd4-352d-0410-923a-c4978735b2b8
2012-04-10 17:21:49 +00:00
Adam Amstrong 98630a84c4 overview improvements and smoe other fixes
git-svn-id: http://www.observium.org/svn/observer/trunk@2736 61d68cd4-352d-0410-923a-c4978735b2b8
2011-11-24 15:45:49 +00:00
Tom Laermans b6e7b4ef7a remove almost all base_url
git-svn-id: http://www.observium.org/svn/observer/trunk@2648 61d68cd4-352d-0410-923a-c4978735b2b8
2011-10-05 10:55:10 +00:00
Tom Laermans 71f05c1d95 minigraphs of sensors should be of the last day
git-svn-id: http://www.observium.org/svn/observer/trunk@2566 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-23 15:04:04 +00:00
Adam Amstrong dc2eb1a261 shorter interface names on graphs. shorter host names on graphs.
git-svn-id: http://www.observium.org/svn/observer/trunk@2543 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-22 15:54:16 +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 9a1bee1458 more code cleanup (last commit for now)
git-svn-id: http://www.observium.org/svn/observer/trunk@2520 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-20 14:37:54 +00:00
Adam Amstrong 95a287baa7 migrate towards new URL format. slowly.
git-svn-id: http://www.observium.org/svn/observer/trunk@2491 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-17 19:14:44 +00:00