170 Commits

Author SHA1 Message Date
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 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
Florian Beer f92dae6915 webui: Fix Services container alignment (#7583)
This has been bugging me for a while... ;)
The services container wasn't properly aligned with the rest of the boxes (e.g. Events, Syslog etc.). This small HTML change fixes that.
2017-10-30 12:45:58 -05: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
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
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
Aldemir Akpinar 039bf0b961 webui: Fixed Recent events card is misplaced for printer devices (#6637) 2017-05-12 13:28:21 +01:00
Neil Lathwood 1bbbaff58b refactor: Moved ifLabel -> cleanPort and updated the usage (#6288)
* refactor: Moved ifLabel -> cleanPort and updated the usage

* added list of tags allowed

* few updates as per comments from @murrant

* Added simple unit tests

* double display for javascript popover

* Remove ifNameDescr() function
Fix realtime port page

* remove accidental temp code

* Remove double display calls in ajax tables
2017-04-04 08:08:23 +01:00
Tony Murray 6993bd122c fix: sensors not being removed from database (#6169) 2017-03-12 00:03:04 +00:00
Robbie Penziol afb838bc10 webgui: Added ability to set warning percentage for CPU, mempools from device edit page (#5895) 2017-03-03 15:07:12 +00:00
Tony Murray edc1368535 webui: Port totals match the colors of the interface links below (#5968) 2017-02-21 16:29:22 +00:00
Richard Mayhew 389cf5414c Made the 2 tool icons more appropriate in the menu bar (#5701)
* Made the 2 tool icons more appropiate in the menu bar

* updated eventlog and syslog icons so they are the same

* Try #2

* Changed syslog to fa-tag instead of fa-archive which is used for packages already

* Changed Syslog icon to fa-clone
2017-02-06 10:15:38 +00:00
Neil Lathwood 6b0ed757f3 webui: Added function to shorten strings, used for storage overview display #5317 (#5678) 2017-02-01 20:15:50 +00:00
Richard Mayhew 47397d0083 webui: Updated icons to use Font Awesome (#5468) 2017-01-21 11:24:05 +00:00
Neil Lathwood 5e349685b3 newdevice: APC in-row coolers 2017-01-07 02:09:41 +02: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
Aaron Daniels a2563c5b67 feature: Added Cisco Integrated Management Console inventory and sensor support #4454 2016-10-06 01:40:37 +01:00
boudreau ae9d36175b Create runtime.inc.php 2016-09-19 11:02:15 -04: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
laf f3ee9dcc2e Fixed php short tags 2016-05-02 18:43:06 +00:00
Daniel Preussker 975ddbc517 Revert "Fixed php short tags :/" 2016-05-02 20:19:18 +02:00
laf a14ae0bc18 Fixed php short tags :/ 2016-05-02 18:09:58 +00: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
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
Aaron Daniels 111a52d48c Merge branch 'master' into issue-2193 2016-04-12 07:34:40 +10:00
Neil Lathwood f4073bd01f Merge pull request #3300 from dmelani/toner_width
Make toner overview line up with the rest
2016-03-30 08:26:14 +01:00
Daniel Melani c2a2927894 Make toner overview line up with the rest 2016-03-29 16:14:53 +02:00
Paul Heinrichs a13d148fb1 Added Signal Sensor 2016-03-22 10:37:07 -04: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
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
Louis Bailleul b40bd2f467 Rebase 2015-12-21 13:26:48 +00:00
Louis Bailleul ee75091c44 Use browser width to scale cpu and bandwidth graphs on device overview 2015-12-21 13:25:23 +00:00
Louis Bailleul a56344246a Cleanup and reorganize code
Make the average cpu the default
2015-11-23 09:37:58 +00:00
Louis Bailleul 439193c9fa Add the number of cpu between the type and percent graph 2015-11-20 15:53:02 +00:00
Louis Bailleul ee99ee89d6 Replace tab by space 2015-11-20 15:48:44 +00:00
Louis Bailleul 8921c75d1e Fix formatting 2015-11-20 15:40:57 +00:00
Louis Bailleul a2bc1a4513 Add possibility to merge all cpu in one graph in the device overview 2015-11-20 15:33:56 +00:00
Mike Rostermund 868e4d0920 Device overview: all headers are now bold and elements within are not. 2015-10-08 19:38:34 +02:00