Commit Graph
29 Commits
Author SHA1 Message Date
Nils Steinger 41fefbe371 Query the distro script at SNMP OID .1.3.6.1.4.1.2021.7890.1 for FreeBSD systems (like it is already done for Linux systems) 2015-09-27 17:27:59 +02:00
Nils Steinger 65ca58a1cc PHPDoc for snmpTransportToAddressFamily() 2015-09-25 20:04:55 +02:00
Nils Steinger a973e538c4 Added complete list of IPv6-based SNMP transport specifiers in snmpTransportToAddressFamily() 2015-09-25 19:03:47 +02:00
Nils Steinger e5327594a5 Code formatting 2015-09-24 02:07:33 +02:00
Nils Steinger 7d7e7098ab Added PHPDoc for function isPingable() 2015-09-24 02:07:15 +02:00
Nils Steinger b197533cc6 distro script: Added empty lines for better readability 2015-09-24 01:39:39 +02:00
Nils Steinger e853eb1c54 distro script: Removed unnecessary quotes 2015-09-24 01:38:42 +02:00
Nils Steinger 1b816f194d distro script: Removed United Linux (which has been dead since 2004) 2015-09-24 01:37:07 +02:00
Nils Steinger c806d4cf60 distro script: Consider /etc/os-release along with the distribution-specific files and allow /etc/lsb-release to override it 2015-09-24 01:35:55 +02:00
Nils Steinger 99b608ef48 distro script: Ignore /etc/lsb-release on Arch systems
On Arch systems, /etc/lsb-release contains the placeholder version string
"rolling".
Prevent parsing /etc/lsb-release on Arch systems to the script won't report the
distribution "Arch rolling".
2015-09-24 01:33:45 +02:00
Nils Steinger 1543f63467 Revert "distro script: Only parse /etc/lsb-release if no known distribution is found"
This reverts commit d048e5e616.

The detection logic for Ubuntu (and perhaps other distributions) relies on
/etc/lsb-release.
2015-09-24 01:25:24 +02:00
Nils Steinger 506c61b7fc distro script: Replaced outdated method of detecting OpenSUSE version
Replaced the crude parsing of /etc/SuSE-release (which is due to be removed in
future OpenSUSE versions) with equally crude parsing of /etc/os-release.
/etc/os-release is present on several different distributions and usually
contains the same information as /etc/lsb-release when both files are
available.
For now, parsing /etc/lsb-release takes precedence and /etc/os-release is only
used as a fallback when the former is not available.
2015-09-24 01:05:59 +02:00
Nils Steinger d048e5e616 distro script: Only parse /etc/lsb-release if no known distribution is found 2015-09-23 00:06:41 +02:00
Nils Steinger 774312d457 distro script: Code cleanup 2015-09-23 00:05:44 +02:00
Nils Steinger c53b5ecdeb distro script: Handle cases where a distribution's version string is empty 2015-09-23 00:05:44 +02:00
Nils Steinger 2f1b83bbae distro script: Added Arch Linux detection 2015-09-23 00:05:37 +02:00
Nils Steinger f397f53f5f Change colour of menu item 'Overview' → 'Packages' to black (like the other menu items in the same group) 2015-09-22 23:45:33 +02:00
Nils Steinger dba95472dc Use empty() instead of isset() and PHP's implicit boolean conversion 2015-09-22 22:58:38 +02:00
Nils Steinger 6f30f12b7b Renamed icons from archlinux.{png,svg} to arch.{png,svg}
scripts/distro currently sends the version string "Arch rolling" for Arch Linux
systems (assuming they have the lsb-release package installed), so LibreNMS
will try to use the icon file arch.png by default.
2015-09-22 22:37:52 +02:00
Nils Steinger ff57e67f55 Check if variable is set before trying to read it 2015-09-22 21:48:48 +02:00
Nils Steinger c1354532bb Removed duplicate code: Made getImage() use getImageSrc() 2015-09-22 21:48:17 +02:00
Nils Steinger 95bd3d7438 Added Arch Linux logo to OS icons
(As of this commit, the logo is not yet used in the LibreNMS web UI.)

Adapted from https://sources.archlinux.org/other/artwork/archlinux-logo-dark-scalable.svg.

According to an email by Aaron Griffin, use of the logo in LibreNMS is
permitted as long as no commercial interests are pursued and the TM symbol is
included in the logo:

  On 22.09.2015 18:17, Nils Steinger wrote:
  > To Whom It May Concern:
  >
  > I'm a new user of the LibreNMS network monitoring system (an Open Source
  > fork of Observium) [1].
  > LibreNMS has inherited a number of logos from Observium that are
  > displayed in the list of monitored hosts to show what *nix/Linux
  > distribution they are running.
  >
  > Would it be possible to add a 32×32 or 48×48 px version of the Arch
  > Linux logo (like the one attached to this email) to LibreNMS?
  >
  > LibreNMS has no commercial interests, but I'm not sure whether the Arch
  > Linux Trademark Policy allows creating derivatives of the logo and
  > including them in software distributions, hence this inquiry.
  >
  > Best Regards,
  > Nils Steinger
  >
  >
  > [1]: https://github.com/librenms/librenms

  On 22.09.2015 19:54, Aaron Griffin wrote:
  > This is an acceptable use of the logo - the only thing we ask is that you
  > maintain the TM symbol on the logo.
2015-09-22 20:13:12 +02:00
Nils Steinger 4c2d66791d Fixed typo in variable name 2015-09-22 15:27:36 +02:00
Nils Steinger 772d1762a7 Use relative path for fping6
fping6 will be in /usr/bin on Debian-based systems, but /usr/sbin on CentOS.
Have PHP figure out where fping6 is, to avoid breaking existing setups on CentOS.
2015-09-22 14:57:23 +02:00
Nils Steinger ac001191dc Use fping6 instead of fping for hosts with udp6/tcp6 SNMP transports 2015-09-22 02:25:35 +02:00
Nils Steinger 8170eec2c2 I agree to the conditions of the Contributor Agreement contained in doc/General/Contributing.md as of commit hash 4393039f6e. 2015-09-21 22:41:48 +02:00
Nils Steinger 7eec149309 Set minigraph image dimensions in HTML so graph popups will have correct dimensions when the graph images haven't been loaded yet 2015-09-21 22:03:24 +02:00
Nils Steinger 45d58644f6 Added explanation of fping configuration options (adapted from the fping man page, version 2013-05-21) 2015-09-21 17:53:49 +02:00
Nils Steinger 40ed489f63 Fixed typo 2015-09-21 17:52:33 +02:00