Commit Graph

152 Commits

Author SHA1 Message Date
Tony Murray
d2193f76ca feature: allow scripts to be run from any working directory (#4437)
* feature: allow validate.php to be run from any working directory

* remove redundant realpath() call

* re-add realpath() to remove symbolic links

* realpath() isn't needed...

* chdir() in all php scripts in ./ and ./scripts/

* update-sql.php clearly is not used, as it was broken.

* Change some scripts to executable
Remove extra chdir() call in snmp-scan.php

* Missed console-ui.php
Kind of fixed console-ui.php help output

* Re-add newline
2016-09-14 16:53:04 +01:00
Tony Murray
a6ed7cc888 feature: pre-commit script: allow test order based on command line option order (#4393) 2016-09-10 17:42:27 +01:00
Neil Lathwood
7ff35ca6ef docs: More doc updates (#4365)
* More doc updates

* Updated to add update

* added tune option
2016-09-09 12:06:26 -05:00
Aaron Daniels
a27ecd1f0c fix: calling rrdtool_pipe_open() instead of rrdtool_initialize(); (#4343) 2016-09-04 16:26:38 -05:00
Neil Lathwood
6e8e00e204 fix: Added config.php to be excluded in psr2 pre-commit check (#4260) 2016-08-29 15:09:21 -05:00
Tony Murray
883a0e6fd3 Check that commands are available for pre-commit.php. (#4257)
If not install them with composer, If composer isn't available, spit out an error message and direct them to the documentation.
2016-08-29 20:18:52 +01:00
Tony Murray
abc6a5b799 PSR-2 Final cleanup (#4247)
refactor: Final PSR2 cleanup
2016-08-28 23:32:55 +01:00
Tony Murray
b7d0b97c64 More pre-commit.php improvements (#4224)
* more pre-commit.php improvements
do not check influx-db on hhvm
Use parallel-lint to increase lint check speed and improve output
Add option to print out the commands that would be executed, makes it easier to modify them and run by hand
Fixed a couple of bugs

* Integrate the environment check
Flip it so we don't interfere with command line users
2016-08-28 21:44:36 +01:00
Tony Murray
9284bc60ff Update code in includes to be PSR-2 compliant (#4220)
refactor: Update code in /includes to be psr2 compliant #4220
2016-08-28 18:32:58 +01:00
Tony Murray
f042f9aa56 Use pre-commit.php in for travis-ci tests (#4212) 2016-08-26 10:30:43 +01:00
Neil Lathwood
9f1930a81e More more docs (#4197)
* Updated docs + some small code changes

* Added validating code doc for developers

* Doc updates

* Updates and improvements
2016-08-25 18:40:11 -05:00
Tony Murray
27382b157b Update Applications docs (#4171)
Move scripts to librenms-agent repo
Remove LibreNMS.zip from scripts, update docs to point to the extracted folder
2016-08-23 19:46:56 +01:00
Neil Lathwood
15ef8bbd23 Updated themes doc + added Google analytics (#4158) 2016-08-21 21:10:01 +01: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
laf
3147a00258 Updated repo details 2016-08-19 16:54:30 +01:00
laf
7958ea821c Updated repo details 2016-08-19 16:43:53 +01:00
laf
c6d8604463 Updated repo details 2016-08-19 15:26:37 +01:00
laf
ae7d13d299 Ready for new docs site 2016-08-19 14:37:44 +01:00
Tony Murray
0105d8cac7 Delete distro script, it has moved to librenms-agent snmp directory. 2016-08-09 14:32:07 -05:00
Neil Lathwood
ec3520e518 Merge pull request #3865 from murrant/remove-agent-scripts
Remove agent scripts
2016-07-28 20:22:20 +01:00
Tony Murray
6119aa9c22 Remove agent scripts
Leave a note that they have been moved to https://github.com/librenms/librenms-agent
The goal is to prevent divergence.
2016-07-21 22:34:11 -05:00
crcro
ff5b6c9a2b app: nfs-v3-stats
Rewrite of the original nfs-stats app.
Includes more stats, nicer graphs, no more nfsstats bin requirement.
2016-07-20 02:14:30 +03:00
crcro
263d33f107 added some how to for nfsstats.sh 2016-07-07 11:11:36 +00:00
crcro
93b891b9e3 added a new application monitoring: nfs server stats 2016-07-07 11:05:49 +00:00
pblasquez
48d8b3f09c add port_id to sql statement 2016-06-30 10:09:16 -07:00
Tony Murray
9aa4203cc3 Use lsb_release in the distro script.
Don't overwrite REV unless it is set properly by the lsb_release tool.
2016-06-01 01:00:04 -05:00
Søren Rosiak
16b91f6a97 Fix Smoking Path (#3577)
Fix Smokping Path
2016-05-31 21:24:03 -05:00
Tony Murray
b98ba8c1a4 Remove some deprecated functions 2016-04-24 01:05:14 -05:00
Paul Gear
5d16702320 Merge pull request #3343 from Piratonym/issue-3336
Use python2 in Python script shebang lines
2016-04-22 13:33:00 +10:00
xavier.beaudouin
1146080458 Add FreeBSD detection to distro file 2016-04-20 16:23:16 +02:00
Karsten Nerdinger
2925d8ce81 Use python2 in Python script shebang lines
This fixes issue #3336.
2016-04-11 15:38:51 +02:00
Tony Murray
9f22b18dc8 Split is removed in PHP7, replace with explode as none were using it as a regex.
Also fix two array keys without quotes in include/syslog.php
Fixes #2205
2016-02-25 14:34:06 -06:00
Tony Murray
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
Maximilian Wilhelm
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
Sławomir Paszkiewicz
80a816dab9 - added env php to top of file 2015-10-04 19:15:12 +02:00
Sławomir Paszkiewicz
3b1dbdf220 - added PLD Linux support to distro script 2015-09-29 15:14:53 +02:00
Tamas Szabo
52ceafbcbb OpenWrt support added to distro detection script 2015-09-29 15:20:47 +03: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