173 Commits

Author SHA1 Message Date
Neil Lathwood
8ca1f169b3 feature: Added rrd step conversion script (#6081)
* feature: Added rrd step conversion script

* updated to support all for hostname

* update docs + code

* small updates as per murrant
2017-03-11 07:32:43 -06:00
ollb
698584e14d feature: Add support for dynamic interfaces in ifAlias script (#6005)
* add support for dynamic interfaces in ifAlias script

* netlink and ip support alias (`ip link set IFACE alias ALIAS`). In an
  environment with dynamic interfaces, it is useful to be able retrieve
  aliases from ip.

* we cannot assume next iface oid is n + 1 since oids do not necessarily
  follow incrementally when some interfaces has been destroyed and
  recreated.

* use straight POSIX shell

* I agree to the conditions of the Contributor Agreement contained in
doc/General/Contributing.md.
2017-02-26 23:22:03 +00:00
Tony Murray
676e5563b9 Only allow integers for input to github-apply
Remove some unneded code from github-remove
2017-02-17 21:49:29 -06:00
Tony Murray
6b33bdc949 require -d -s or -r 2017-02-17 21:39:22 -06:00
Tony Murray
3c22633cea Port remove script to python 2017-02-17 21:33:09 -06:00
Tony Murray
bf32690abc Port remove script to python 2017-02-17 21:29:52 -06:00
Tony Murray
62c49fedf7 Scripts to easily apply and remove github Pull Requests 2017-02-15 15:07:24 -06:00
Neil Lathwood
5aef36abd6 Tune port update (#5795)
* updates to rrdtune docs and script

* added all support
2017-02-06 18:49:16 -06:00
Xavier Beaudouin
cb5dd299af feature: Rancid config file generator (#5689) 2017-02-02 15:44:15 +00:00
David Bell
a33ae25d0b fix: ifAlias script now works with snmpbulkwalk #5547 2017-01-31 22:19:16 +00:00
patrick7
91dd6a2670 fix: Update ifAlias script to deal with GRE interfaces (#5546) 2017-01-27 23:16:33 +00:00
Tony Murray
839dd31093 feature: Added pre-commit git script to support failing fast 2017-01-24 21:37:49 +00:00
Neil Lathwood
3c0a2109e5 tidy up some file permissions and removed unused files (#5563)
* tidy up some file permissions and removed unused files

* Delete makemini.pl
2017-01-24 12:44:16 -06:00
Neil Lathwood
317402c378 trying to fix docs build (#5340) 2017-01-07 22:14:16 +00:00
Neil Lathwood
03e3249c50 fix: specify specific mkdocs version (#5339) 2017-01-07 18:09:46 +00:00
Tony Murray
e20a242785 refactor: use Composer to manage php dependencies (#5216) 2017-01-01 09:37:15 +00:00
Neil Lathwood
f5a16be0e3 refactor: Move OS definitions into yaml files (#5189) 2016-12-23 17:53:19 +00:00
Tony Murray
9a33464c52 refactor: Centralize includes and initialization (#4991) 2016-11-21 20:12:59 +00:00
Scott Armitage
075c94d2eb Clean up migration scripts by doing a chown on destination folders and files to the LibreNMS user and group, remove leftover XML files from source directories, and allow user to specify the SNMP version string in the 'settings' section of . (#4792) 2016-10-15 00:48:04 +01:00
Tony Murray
cab2597807 Remove some debug output.
Don't call terminate on null (it will be called automatically anyway)
2016-09-23 15:24:24 -05:00
Tony Murray
c31b3c0301 feature: use snmpsim for testing
fallback feature so we don't have to run snmpsim on devel computers, should be adequate for now
./scripts/pre-commit.php -u -snmpsim will start an snmpsimd.py process automatically
2016-09-23 14:57:31 -05:00
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