Commit Graph

43 Commits

Author SHA1 Message Date
Tony Murray
3e35ee0e7d Refactored and update Location Geocoding (#9359)
- Fix location so it is a regular database relation (this allows multiple devices to be accurately linked to one location and saves api calls)
- Parse coordinates from the location more consistently
- Add settings to webui
- ~~Used [PHP Geocoder](http://geocoder-php.org/), which has lots of backends and is well tested. (also includes reverse and geoip)~~
- Google Maps, Bing, Mapquest, and OpenStreetMap supported initially.
- Default to OpenStreetMap, which doesn't require a key.  They will liberally hand out bans if you exceed 1 query per second though.
- All other Geocoding APIs require an API key. (Google requires a credit card on file, but seems to be the most accurate)
- Update all (I think) sql queries to handle the new structure
- Remove final vestiges of override_sysLocation as a device attribute
- Update existing device groups and rules in DB
- Tested all APIs with good/bad location, no/bad/good key, and no connection.
- Cannot fix advanced queries that use location

This blocks #8868

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.
2018-11-28 22:49:18 +00:00
Neil Lathwood
ceea9d4981 Added ability to record traceroutes for devices down due to ICMP (#9457)
* Added ability to record traceroutes for devices down due to ICMP

* Update Templates.md

* Updated schema

* Update dev-overview-data.inc.php
2018-11-19 09:58:59 -06:00
Neil Lathwood
30318b7427 webui: Show how long a device has been down if it is down (#7336) 2017-09-29 21:05:51 +01:00
Neil Lathwood
0376f92cc3 webui: Added device description to overview page (#7328) 2017-09-13 19:46:16 -05:00
Tony Murray
ece0488d96 fix: missed call to removed is_ip function (#7132) 2017-08-08 16:23:03 -05:00
Neil Lathwood
ed02e39347 webui: Update device overview to not show hostname when certain conditions match #5984 (#6091) 2017-03-04 21:25:06 -06:00
Neil Lathwood
f8cb31547c webui: Show device hostname as IP if force_ip_to_sysname enabled and no resolved IP #5723 (#5822)
* webui: Show device hostname as IP if force_ip_to_sysname enabled and no resolved IP #5723

* more streamlined logic

* darn whitespace
2017-02-07 22:22:06 -06:00
Richard Mayhew
998750ddd9 WebUI: Allows one to view a map of the SNMP location set for a device (#5495) 2017-01-24 09:53:25 +00:00
Richard Mayhew
47397d0083 webui: Updated icons to use Font Awesome (#5468) 2017-01-21 11:24:05 +00:00
Daniel Preussker
731e43bc66 Revert "[WIP] Sanity!" 2016-02-17 13:59:58 +00:00
f0o
f606369309 Bulk cosmetic fixes 2016-02-10 15:40:50 +00:00
Daniel Preussker
b0bc7b778a Typo 2016-02-07 15:40:00 +00:00
Daniel Preussker
f940c0c888 Fix IP Display 2016-02-07 15:39:17 +00:00
laf
49adff3895 Added the lookup of IP if device hostname is a hostname 2016-01-17 23:59:51 +00:00
Paul Gear
4d3b39e0ae Display sysObjectID on device overview screen 2016-01-02 07:10:42 +10:00
laf
7d7479b977 Added parsing support for lat/lng coords from device location 2015-11-16 18:50:52 -08:00
Paul Gear
064f374160 Merge pull request #1501 from laf/issue-1334-new
New overview page and new map
2015-07-26 14:33:34 +10:00
laf
0b93725029 Updated to use new table name 2015-07-23 18:41:41 +01:00
Rosiak
fff6ddb5e3 Fix issue-1503
- Add SysName to device overview page
2015-07-22 17:22:06 +02:00
laf
fbec75a265 Mapping should be complete 2015-07-20 15:59:44 +01:00
Job Snijders
d8693f05ae Fix coding style part 2 2015-07-15 11:04:22 +02:00
laf
54c3b7bc14 Refreshed visually the Device overview page 2014-02-26 22:33:45 +00:00
Tom Laermans
46b7c74e51 bring device overview info table layout in line with all other information panels
git-svn-id: http://www.observium.org/svn/observer/trunk@3081 61d68cd4-352d-0410-923a-c4978735b2b8
2012-04-22 17:13:27 +00:00
Geert Hauwaerts
ad1ca375e2 - BUGFIX: getidbyname() did not pass parameters to MySQL correctly.
- Restructured sysContact and sysLocation "not set" code.
- Do not display "SNMP Location" when empty or unset.


git-svn-id: http://www.observium.org/svn/observer/trunk@2299 61d68cd4-352d-0410-923a-c4978735b2b8
2011-05-13 12:28:57 +00:00
Adam Amstrong
6826be0f91 serial below os
git-svn-id: http://www.observium.org/svn/observer/trunk@2131 61d68cd4-352d-0410-923a-c4978735b2b8
2011-04-21 13:30:09 +00:00
Tom Laermans
75e9d0a9e5 also show overridden vs configured sysContact on the device overview page
git-svn-id: http://www.observium.org/svn/observer/trunk@2003 61d68cd4-352d-0410-923a-c4978735b2b8
2011-04-01 15:20:06 +00:00
Tom Laermans
98fdba559a sysLocation: a space odyssey - show snmp-configured location on device overview
git-svn-id: http://www.observium.org/svn/observer/trunk@2001 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-31 17:29:38 +00:00
Tom Laermans
aedac10866 code cleanups, remove more dead code
git-svn-id: http://www.observium.org/svn/observer/trunk@1900 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-17 11:29:23 +00:00
Tom Laermans
06d2a707d5 some sensor unification, rename sensor rrds and rename the DS, add testing IPMI support (no web-part yet) - tested against Intel RMM3 and working. some further cleanups as well.
git-svn-id: http://www.observium.org/svn/observer/trunk@1758 61d68cd4-352d-0410-923a-c4978735b2b8
2010-12-15 17:54:42 +00:00
Adam Amstrong
19ccf99d8f unify $os_group and $os_type into $config['os']
git-svn-id: http://www.observium.org/svn/observer/trunk@1264 61d68cd4-352d-0410-923a-c4978735b2b8
2010-06-25 12:18:00 +00:00
Tom Laermans
be43f2ef63 Show serial number on device page
git-svn-id: http://www.observium.org/svn/observer/trunk@1135 61d68cd4-352d-0410-923a-c4978735b2b8
2010-06-10 19:49:23 +00:00
Adam Amstrong
ef30ca249d remove silly image from overview (dank u geert :P)
git-svn-id: http://www.observium.org/svn/observer/trunk@1072 61d68cd4-352d-0410-923a-c4978735b2b8
2010-04-23 22:05:32 +00:00
Tom Laermans
a549e37fff cleanups code, YAY COMMIT 1000
git-svn-id: http://www.observium.org/svn/observer/trunk@1000 61d68cd4-352d-0410-923a-c4978735b2b8
2010-03-07 22:22:29 +00:00
Geert Hauwaerts
d54df316ac - Added a utility function formatCiscoHardware()
Params: - A reference to the $device array.
          - An optional (true) if you want the platform only (and not the part number)
- In device overview place Hardware before Operating System (makes more sence)
- Added virtual $device['hardware'] for Cisco platforms without an hardware tag (like Cisco 3750)


git-svn-id: http://www.observium.org/svn/observer/trunk@925 61d68cd4-352d-0410-923a-c4978735b2b8
2010-02-21 17:02:20 +00:00
Geert Hauwaerts
c32f652bd4 - Added a setting to toggle the display of sysDescr on the device overview page.
Setting: overview_show_sysDescr
  Default: true


git-svn-id: http://www.observium.org/svn/observer/trunk@922 61d68cd4-352d-0410-923a-c4978735b2b8
2010-02-21 14:58:46 +00:00
Adam Amstrong
54e8ac3cbd add new IronWare (Brocade/Foundry) OS type. rename temp/fan/voltage_host to device_id
git-svn-id: http://www.observium.org/svn/observer/trunk@830 61d68cd4-352d-0410-923a-c4978735b2b8
2010-02-13 07:40:43 +00:00
Adam Amstrong
5dcf9d6854 add example snmpd.conf :)
git-svn-id: http://www.observium.org/svn/observer/trunk@537 61d68cd4-352d-0410-923a-c4978735b2b8
2009-11-30 16:06:30 +00:00
Adam Amstrong
b4c80a1c85 Updates
git-svn-id: http://www.observium.org/svn/observer/trunk@480 61d68cd4-352d-0410-923a-c4978735b2b8
2009-10-05 12:47:16 +00:00
Adam Amstrong
bfc9f845ce replacing <? with <?php
git-svn-id: http://www.observium.org/svn/observer/trunk@466 61d68cd4-352d-0410-923a-c4978735b2b8
2009-09-07 11:07:59 +00:00
Adam Amstrong
8a059f80d3 tidied things
git-svn-id: http://www.observium.org/svn/observer/trunk@252 61d68cd4-352d-0410-923a-c4978735b2b8
2008-09-25 13:54:58 +00:00
Adam Amstrong
5e925ef03f Juniper Netscreen additons
git-svn-id: http://www.observium.org/svn/observer/trunk@172 61d68cd4-352d-0410-923a-c4978735b2b8
2008-03-19 19:16:16 +00:00
Adam Amstrong
5ee8a32457 Fix some small errors!
git-svn-id: http://www.observium.org/svn/observer/trunk@112 61d68cd4-352d-0410-923a-c4978735b2b8
2007-06-24 16:45:18 +00:00
Adam Amstrong
e06a0bfcb8 Add new overview page
git-svn-id: http://www.observium.org/svn/observer/trunk@110 61d68cd4-352d-0410-923a-c4978735b2b8
2007-06-24 15:46:47 +00:00