120 Commits

Author SHA1 Message Date
44cd86d24e Add systemd unit file for the python poller service.
Move poller-service init scripts into to scripts directory and update the documentation.
2016-02-02 20:23:08 -06:00
2c9df26bbf Update discovery and poller to allow stable interface mapping by ifName/ifDescr based port mapping.
By default libreNMS used the ifIndex to associate ports just found via SNMP
  with ports discoverd/polled before and stored in the database. On Linux boxes
  this is a problem as ifIndexes are rather likely to be unstable between reboots
  or (re)configuration of tunnel interfaces (think: GRE/OpenVPN/Tinc/...), bridges,
  Vlan interfaces, Bonding interfaces, etc.

  This patch adds a »port association mode« configuration option per device which
  allows to map discovered and known ports by their ifIndex, ifName, ifDescr, or
  maybe other means in the future.
  The default port association mode still is ifIndex for compatibility reasons.

  As port RRD files were stored by their ifIndex before, they are now identified
  by their unique and stable port_id to ensure a stable and unique mapping and
  allow future port association modes to be added without requireing any further
  internal changes. Existing RRD files are renamend accordingly in discovery and
  poller tools to ensure stability of port associations in both modules as we
  don't know which might run first after an update.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>
2016-01-26 13:49:30 +01:00
laf
eb689fe66e Rebased from upstream 2015-12-01 21:50:13 +00:00
f0o
380c98c438 Added SLES detection to distro script 2015-11-25 13:23:52 +00:00
laf
c000676a2a Some more updates for rrdtool tune 2015-11-18 21:52:32 +00:00
laf
1591f9ca6d Added rrdtool_pipe_open :( 2015-11-18 21:39:53 +00:00
laf
52e0be911b More updates 2015-11-17 05:38:45 -08:00
laf
253b27d403 More updates to tune rrdfiles 2015-11-17 05:14:41 -08:00
laf
cf09a51d3a Updated to use env in distro script 2015-10-25 21:49:48 +00:00
80a816dab9 - added env php to top of file 2015-10-04 19:15:12 +02:00
3b1dbdf220 - added PLD Linux support to distro script 2015-09-29 15:14:53 +02:00
52ceafbcbb OpenWrt support added to distro detection script 2015-09-29 15:20:47 +03:00
b197533cc6 distro script: Added empty lines for better readability 2015-09-24 01:39:39 +02:00
e853eb1c54 distro script: Removed unnecessary quotes 2015-09-24 01:38:42 +02:00
1b816f194d distro script: Removed United Linux (which has been dead since 2004) 2015-09-24 01:37:07 +02:00
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
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
1543f63467 Revert "distro script: Only parse /etc/lsb-release if no known distribution is found"
This reverts commit d048e5e616a3d50efbc1c41d2fdd926c08dd2ad2.

The detection logic for Ubuntu (and perhaps other distributions) relies on
/etc/lsb-release.
2015-09-24 01:25:24 +02:00
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
d048e5e616 distro script: Only parse /etc/lsb-release if no known distribution is found 2015-09-23 00:06:41 +02:00
774312d457 distro script: Code cleanup 2015-09-23 00:05:44 +02:00
c53b5ecdeb distro script: Handle cases where a distribution's version string is empty 2015-09-23 00:05:44 +02:00
2f1b83bbae distro script: Added Arch Linux detection 2015-09-23 00:05:37 +02:00
95ab21504c Fix MySQL Host Logic 2015-08-18 15:11:06 +00:00
5369112d48 Fix some scrutinizer coding style issues 2015-08-04 18:36:03 +02:00
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
031a818c77 Removed references to location override 2015-07-20 16:52:33 +01:00
laf
6ec525c222 Formatting + scrut updates 2015-07-16 16:01:51 +01:00
laf
7eed295897 Rebased 2015-07-15 20:46:04 +01:00
d8693f05ae Fix coding style part 2 2015-07-15 11:04:22 +02:00
ebd0f6fc35 Apply "Squiz" code style on old (pre-2014) files 2015-07-11 16:12:35 +02:00
laf
b668571c8c Some small changes 2015-07-07 20:28:04 +01:00
laf
0b30d18733 Final pieces to the smokeping integration 2015-07-07 20:24:09 +01:00
b84b8de09f Merge pull request #1110 from laf/issue-279
Updated mysql DATE_FORMAT() and php date() to use $config variables
2015-06-13 10:15:23 +10:00
0a9d8c92c3 Fix fatal in scripts/shoutcast.php
[lint] PHP Fatal error:  Call-time pass-by-reference has been removed in /var/lib/jenkins/jobs/librenms/workspace/scripts/shoutcast.php on line 43
2015-06-06 17:55:40 +00:00
laf
6496e6ece4 Consistent date formatting from MySQL 2015-05-22 13:38:52 +01:00
laf
5ed95fd1ca Actually added the doc and contents 2015-05-12 08:54:56 +01:00
laf
39e504541b Added info on migrating from Observium 2015-05-11 23:16:55 +01:00
f0o
ee4530d21c Updates Documentation for MySQL, Nginx, Bind
Fixes Nginx-Stats

Solves #790
Solves #915
2015-05-05 07:56:33 +00:00
4e1c91d08e chmod 0755 to scripts 2015-04-28 23:04:08 +02:00
laf
c1ef9b6808 Resolved a large number index issues and update Console_Color to V2 2015-03-01 18:04:57 +00:00
a4d3c8709d Fixed the scrut coding style issues 2015-02-22 16:45:40 +00:00
f0o
3be0b85846 Resolved upstream-conflicts:
html/pages/apps.inc.php
	includes/polling/unix-agent.inc.php
2015-01-18 06:37:22 +00:00
e7c6951e7a Merge pull request #413 from f0o/issue-412
Added named/bind9 Application, Graphs, Check_MK-script
2015-01-17 22:05:16 +00:00
f0o
dd6f1f63ff Added TinyDNS (djbdns) Graphs & Application.
Data obtained by tinystats (http://www.morettoni.net/tinystats.en.html) via check_mk
2015-01-17 19:27:44 +00:00
f0o
c9dcc96649 Added Documentation, Scrut-fixes 2015-01-17 14:09:59 +00:00
f0o
e4a1ff5b7c Added named/bind9 Application, Graphs, Check_MK-script 2015-01-16 18:30:53 +00:00
f0o
78772d8280 Updated check_mk_agent to upstream's tag 1.2.6b5 (36f893a6cf254308d345a74b06309fd656aa57eb) 2015-01-15 06:46:15 +00:00
f0o
e6de1b4245 Added ifAlias support for: Debian, Gentoo, CentOS, RedHat, SuSE, Mandriva, Mandrake and Archlinux 2015-01-07 20:39:44 +00:00
40198dd8a3 Updated scripts to remove observium name + use new version of check_mk 2014-10-08 19:07:58 +00:00