50 Commits
Author SHA1 Message Date
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
crcroandTony Murray c14acfd410 webui: ports pages cleanup (#8040)
* ports pages cleanup

* removed useless html span tag
2018-01-08 13:54:21 -06:00
crcroandNeil Lathwood 3f0ad0360e webui: Ports table refresh (#7827)
* initial release

* removed duplicate div tag

* deleted ports reworks

* more header optimizations, added status entries

* more header optimizations, added status entries

* added purge all, testing needed, try once again to fix overflowing filtering bar

* fix purge all, another try to break option bar in two for longer inputs

* fix indentation
2017-12-24 19:58:59 +00:00
Neil LathwoodandGitHub 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
Richard MayhewandNeil Lathwood 6a1fd3ec05 webui: Additional Font Awesome icons (#5572) 2017-01-25 17:42:26 +00:00
Neil LathwoodandGitHub 9b9c10e204 fix: Cleanup printing ifAlias (#4874) 2016-12-12 14:25:48 +00:00
Neil LathwoodandGitHub 9d5fd2b4cf webui: standardised all rowCount parameters for tables (#5067) 2016-11-26 20:57:12 +00:00
Tony Murray 299f4d91d3 feature: Add last changed, connected, and mtu to all ports data
Thanks to sysvival on reddit for the idea and help with the calculations
2016-09-21 13:19:52 -05:00
Tony Murray e0cc8dfb48 Disable refreshing on window resize when $no_refresh is set. 2016-09-20 10:16:22 -05:00
Tony MurrayandNeil Lathwood d1ae83a378 webui: Paginate the all ports pages (#4401)
* feature: Paginate the all ports pages
fixes: #2705

* Stopped ports not belonging to any devices from showing up

* phpcs fix
2016-09-11 16:23:16 +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
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
Job Snijders ebd0f6fc35 Apply "Squiz" code style on old (pre-2014) files 2015-07-11 16:12:35 +02:00
laf c1ef9b6808 Resolved a large number index issues and update Console_Color to V2 2015-03-01 18:04:57 +00:00
laf bb7708cd03 Updated queries for non-admin users to filter devices 2014-06-25 14:51:50 +01:00
laf c26ec396cb Updated port search box and port table list 2014-06-15 19:16:06 +01:00
Adam Amstrong ba28732c3b ports sort done in php
git-svn-id: http://www.observium.org/svn/observer/trunk@3238 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-25 10:34:01 +00:00
Adam Amstrong 4db1454e92 move from port_id to interface_id. make ports discovery only discover. add some cleaner functions. add a tiny bit of alerting infrastructure.
git-svn-id: http://www.observium.org/svn/observer/trunk@3195 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-16 13:25:50 +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 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
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
Adam Amstrong 6a6ee9cb7f fixes to graph widths
git-svn-id: http://www.observium.org/svn/observer/trunk@2874 61d68cd4-352d-0410-923a-c4978735b2b8
2012-02-17 00:19:18 +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
Adam Amstrong 3fcf837511 turn ifSpeed into bigint(20). add more sort options to /ports/
git-svn-id: http://www.observium.org/svn/observer/trunk@2702 61d68cd4-352d-0410-923a-c4978735b2b8
2011-10-27 09:23:12 +00:00
Tom Laermans d641d8f7b0 fix php shorttag
git-svn-id: http://www.observium.org/svn/observer/trunk@2692 61d68cd4-352d-0410-923a-c4978735b2b8
2011-10-18 15:03:09 +00:00
Adam Amstrong 7ca62bbe04 changes (though i remember not what)
git-svn-id: http://www.observium.org/svn/observer/trunk@2687 61d68cd4-352d-0410-923a-c4978735b2b8
2011-10-17 10:33:06 +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 6b8cba3d24 syntaxer run
git-svn-id: http://www.observium.org/svn/observer/trunk@2580 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-26 16:06:18 +00:00
Adam Amstrong e394048ee4 css changes. fixes to graph browser.
git-svn-id: http://www.observium.org/svn/observer/trunk@2573 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-26 12:16:05 +00:00
Adam Amstrong 619b6c98fd fix some stuff with the ports/graph page.
git-svn-id: http://www.observium.org/svn/observer/trunk@2544 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-22 16:44:58 +00:00
Adam Amstrong daa24154d4 update ports page and some other things
git-svn-id: http://www.observium.org/svn/observer/trunk@2506 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-19 11:15:01 +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
Adam Amstrong 0e378161ec fixes to web if
git-svn-id: http://www.observium.org/svn/observer/trunk@2474 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-15 23:05:06 +00:00
Adam Amstrong 4da0e1f479 fix purge-ports. improve some other things in devices/ports
git-svn-id: http://www.observium.org/svn/observer/trunk@2458 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-14 14:58:49 +00:00
Adam Amstrong 9e680b33a6 change how we draw error graphs (do it in rrd so they fit!). improvements to new devices/ports
git-svn-id: http://www.observium.org/svn/observer/trunk@2457 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-14 14:28:42 +00:00
Adam Amstrong e9f14f8f85 many lovely GUI changes.
git-svn-id: http://www.observium.org/svn/observer/trunk@2454 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-14 13:38:01 +00:00
Adam Amstrong 27117e2c25 fixes to layout. fix netstats icmp/snmp poller (specify mib name)
git-svn-id: http://www.observium.org/svn/observer/trunk@2444 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-12 02:35:58 +00:00
Adam Amstrong 90dfbfa141 fix some things
git-svn-id: http://www.observium.org/svn/observer/trunk@2351 61d68cd4-352d-0410-923a-c4978735b2b8
2011-05-20 14:27:53 +00:00
Adam Amstrong 6c0d7a9c9a more db*
git-svn-id: http://www.observium.org/svn/observer/trunk@2329 61d68cd4-352d-0410-923a-c4978735b2b8
2011-05-16 09:38:44 +00:00
Tom Laermans f55a30f744 some formatting cleanups, introduce some more FIXMEs to look at, plus replace mysql_fetch_array by mysql_fetch_assoc, for great justice
git-svn-id: http://www.observium.org/svn/observer/trunk@2029 61d68cd4-352d-0410-923a-c4978735b2b8
2011-04-06 13:54:50 +00:00
Tom Laermans 7ffefc0d57 move authenticate to a little later, update CHANGELOG for VMware support, minor cleanups, prettify message- and errorboxes
git-svn-id: http://www.observium.org/svn/observer/trunk@1979 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-26 19:28:39 +00:00
Tom Laermans dac063c0f6 clean up all known sql injection
git-svn-id: http://www.observium.org/svn/observer/trunk@1975 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-25 15:47:42 +00:00
Geert Hauwaerts 0e9023d009 - Made tables sortable. For example storage, sort by disk utilization.
- To use add 'sortable' in the <table> class property.


git-svn-id: http://www.observium.org/svn/observer/trunk@1931 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-19 01:43:13 +00:00
Tom Laermans 5d1e5f9592 minor cleanups, also don't send png mime header when doing graph debug, firefox won't show the debug text then
git-svn-id: http://www.observium.org/svn/observer/trunk@1919 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-18 11:27:52 +00:00
Tom Laermans 834989df95 restructure/reindent/htmlfix html pages, remove dead code
git-svn-id: http://www.observium.org/svn/observer/trunk@1897 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-17 00:09:20 +00:00
Adam Amstrong 8143340a02 rename merge generateiflink && generate_if_link to generate_port_link, rename generatedevicelink to generate_device_link
git-svn-id: http://www.observium.org/svn/observer/trunk@1624 61d68cd4-352d-0410-923a-c4978735b2b8
2010-08-02 22:09:52 +00:00
Adam Amstrong 3d937d28e9 graphing system updates
git-svn-id: http://www.observium.org/svn/observer/trunk@1599 61d68cd4-352d-0410-923a-c4978735b2b8
2010-08-01 14:17:06 +00:00
Adam Amstrong 2b5fbd67f2 clean up device/interface removal code (it's still fucking foul, but meh)
git-svn-id: http://www.observium.org/svn/observer/trunk@1076 61d68cd4-352d-0410-923a-c4978735b2b8
2010-04-24 23:16:12 +00:00
Adam Amstrong fc0050d83c add page to remove deleted ports (pour mon petit grenouille!)
nn
  _.__-'@_ \/  _@'-__._
 /     '--)   (--`     \
/  >__<<_/  o  \_>>__<  \
 \\=x  \=x \|/ x=/  x=//



git-svn-id: http://www.observium.org/svn/observer/trunk@1074 61d68cd4-352d-0410-923a-c4978735b2b8
2010-04-24 22:43:25 +00:00