Commit Graph

133 Commits

Author SHA1 Message Date
philmd ad6dafd3a5 webui: display sysnames/hostnames instead of ip addresses #4155
When a network is mostly assigned using RFC 1918, DNS resolution is not useful
and devices are displayed by IP address.

When $config['force_ip_to_sysname'] is enabled, use ip_to_sysname() to display
the device hostname or SNMP sysName if present instead of the device IP address.

UI modified by this patch:
- Hover in Dashboard Availability Map (/overview)
- Name in Availability Map (/availability-map/)
- Title of device page (/device/device=...)

* I agree to the conditions of the Contributor Agreement contained in
doc/General/Contributing.md.

GitHub-issue: #4155
Suggested-by: Andres Rahn <andreser@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
2017-03-03 19:48:53 +00:00
Tony Murray 20ae9e2ecd webui: Improve device header layout (#5990)
* webui: Improve device header layout

* Update css style version to break caches
Remove unused css.
2017-02-24 09:59:30 +00:00
FTBZ e017f7a71b webui: Always show the Services menu if global show_service is enabled (#5906)
* Always show the Services menu if global show_service is enabled

* Add global service check if statement
2017-02-15 23:22:31 +00:00
Neil Lathwood 32da1bceea fix: Changing device type now is persistant (#5529) 2017-01-22 09:49:13 +00:00
Richard Mayhew 47397d0083 webui: Updated icons to use Font Awesome (#5468) 2017-01-21 11:24:05 +00:00
Aaron Daniels de45d8d6b4 newdevice: Added loadbalancer information from F5 LTM (#5205) 2017-01-19 08:19:11 +00:00
Tony Murray b3f6218359 fix: os type and group not being set (#5357) 2017-01-09 08:16:09 +00:00
Søren Rosiak cdef7885aa webui: Small Best Practice Fixes 2017-01-02 00:03:23 +00:00
Søren Rosiak 17f5cfef90 Revert "F5 LTM" (#5199) 2016-12-20 09:30:49 +00:00
Aaron Daniels efa0747564 newdevice: Added additional support for F5 BigIP LTM objects 2016-12-19 19:50:44 +00:00
Neil Lathwood 2bf496b0b1 webui: Do not show Config tab for devices set to be excluded from oxidized #4592 (#5029) 2016-11-21 06:45:24 +00:00
Tony Murray d5105e29da feature: Capture device troubleshooting info (discovery, poller, snmpwalk)
Admins can capture device troubleshooting info from the webui by clicking the gear and selecting Capture.
2016-09-19 23:36:41 -05: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
Rosiak 7fecb5169b Device Page UI Changes
#4008
2016-08-10 21:46:06 +02:00
jaroug 78170213d2 fix: strstr won't return anything if nfsensuffix is empty 2016-07-20 12:49:38 +02:00
jaroug 87eb2a6d5f fix: wrong variable used 2016-07-20 12:45:48 +02:00
Adam Winberg 3873aaf01e Extend if statement to support hostnames in rancid with or without domain suffix 2016-04-11 08:32:13 +02:00
Tony Murray 28216f67b0 Merge branch 'master' into config_diff 2016-02-12 10:36:18 -06:00
Neil Lathwood a9e81c2bfb Merge pull request #2955 from arjitc/patch-24
Merge launch, SSH, telnet and settings into 1 dropdown
2016-02-11 21:43:26 +00:00
Tony Murray b5106f4e17 Generate and display diffs between versions. Clicking show diff generates a diff between the shown version and the selected version. 2016-02-10 14:51:40 -06:00
Arjit Chaudhary 9cd0820445 use bootstraps own pull-right so that the dropdown draws inside the page width 2016-02-08 22:55:18 +05:30
Arjit Chaudhary 729a0d6a62 Merge launch, SSH, telnet and settings into 1 dropdown
Screenshot: http://i.imgur.com/vV30EKQ.png
2016-02-08 22:51:09 +05:30
Aaron Daniels d96e2216a7 - Changed upper case variables to lower case. 2016-01-28 07:04:12 +10:00
Aaron Daniels 8f4dbb5338 Cisco OTV
Implements the CISCO-OTV-MIB to retrieve OTV counters from Cisco devices.
This collects information on the configured Overlays and Adjacencies

Statistics are collected for the amount of VLAN's on each overlay and the amount of MAC addresses available over each OTV endpoint.
OTV alerts are collected and generated if the appropriate alerting rules exist.

Data is displayed under routing at both the global and device level.

Includes function snmpwalk_array_num, which performs a numeric SNMPWalk and returns an array containing $count indexes
One Index:
 From: 1.3.6.1.4.1.9.9.166.1.15.1.1.27.18.655360 = 0
 To: $array['1.3.6.1.4.1.9.9.166.1.15.1.1.27.18']['655360'] = 0
Two Indexes:
 From: 1.3.6.1.4.1.9.9.166.1.15.1.1.27.18.655360 = 0
 To: $array['1.3.6.1.4.1.9.9.166.1.15.1.1.27']['18']['655360'] = 0
And so on...
2016-01-21 22:04:20 +10:00
Neil Lathwood d3132a190b Merge pull request #2690 from vitalisator/stp
add basic STP/RSTP support
2016-01-10 22:45:24 +00:00
Vitali Kari e20f114a95 Update device.inc.php 2016-01-08 11:12:49 +01:00
Paul Gear 7170a240a8 Don't display MIB menu items if MIB-based polling is disabled 2016-01-07 09:26:48 +10:00
vitalisator d12c7803e0 add basic STP/RSTP support 2016-01-03 21:10:35 +01:00
Paul Gear 5c2231a7a7 Add device MIB association browser 2016-01-02 07:10:42 +10:00
Paul Gear b8601b5896 Skeleton framework for allowing MIB values to feed CPU & memory health graphs 2016-01-02 07:10:41 +10:00
Louis Bailleul 8961a5f2c1 Use media query to reduce font and img size when width is < 960px
Avoid having horizontal scrollbars.
2015-11-26 17:16:35 +00:00
laf bbae6e9c48 Removed ping + performance graphs and tab if skip ping check 2015-10-17 18:49:01 +00:00
Sławomir Paszkiewicz 73e3626318 - show Config tab only if device isn't excluded from oxidized 2015-10-12 23:02:29 +02:00
Arjit Chaudhary 8c34a1bd61 Wrap header in panel
http://i.imgur.com/vObwD4w.png
2015-09-23 01:17:29 +05:30
Rosiak 62328dab91 Add Device Notes Field
Add a “Notes” field for devices to accommodate #1897
2015-09-17 16:19:48 +02:00
laf 7eed295897 Rebased 2015-07-15 20:46:04 +01:00
Job Snijders d8693f05ae Fix coding style part 2 2015-07-15 11:04:22 +02:00
laf eb2f0d7a54 More network map updates 2015-07-14 11:47:42 +01:00
laf c8232887d3 Merge branch 'master' of github.com:laf/librenms into smokeping 2015-07-07 19:58:37 +01:00
laf 432fa5cadd Updated smokeping to support Rosiaks integration 2015-06-24 11:41:10 +01:00
laf eee2ae5be1 Added support for logging packet loss and min/max/avg response times on fping 2015-06-22 21:55:31 +01:00
laf f0395e453e Final final updates to get better map support 2015-06-02 00:37:34 +01:00
laf 95b5eec674 Updated nfsen directory checking 2015-05-24 17:48:41 +01:00
Mike Rostermund 68e9cbb054 Removed the last '/' to not generate /tab=showconfig// 2015-05-20 16:42:17 +02:00
Mickael Marchand 769f6b95c1 rewritten to check for input type 2015-05-11 09:43:20 +02:00
Mickael Marchand af09cd1af9 allow to search a device by its hostname 2015-05-10 19:11:12 +02:00
laf dc0d12936c Added support for Oxidized 2015-05-06 22:52:54 +01:00
Søren Rosiak 8a68c91f4f Basic Alert Stats Page
- Diagrams from visjs
- Basic Alert Stats Global Page
- Basic Alert Stats Device Specific Page

Big thanks to lafwood for the help.
2015-04-12 01:10:48 +02:00
laf c6c2a77716 Added title popovers to the device quick links (ssh/telnet/https) 2015-03-12 21:55:46 +00:00