120 Commits

Author SHA1 Message Date
Tony Murray
51ba934e11 feature: Added web validation (#7474)
* refactor: convert validations to modules to prep for gui integration

* accidentally dropped, schema update

* fix accidental output to webui

* mention discovery-wrapper.py and re-arrange.

* refine some fix statements

* rename the Config validation group to Configuration.

* fix some scrutinizer issues
remove as many local functions from validator.php as possible
move extensions from pre-check
remove duplicate timezone check
looks like there is some db schema differences between mariadb 10.1 and 10.2, investigating

* mariadb version diff take2

* Check schema version first for database.
Remove stop to go back to command line for install docs.
Add helpful link when there is no devices added to /addhost

* fix incorrect validation for empty string defaults

* Fix style

* Add additional file permissions checks

* catch exception and fail for invalid timezone
Change visuals a bit.

* add php version warning

* fix space
2017-10-26 07:56:09 +01:00
Neil Lathwood
e3c0714ede docs: Updated references for ##librenms to discord (#7523)
* docs: Updated references for ##librenms to discord

* updated channel -> server

* updated channel -> server
2017-10-20 14:22:18 -05:00
FTBZ
163d0b4f88 fix: Errors in the documentations for CentOS 7 (#7510)
* fix: Erros in the documentations for CentOS 7

* fix: Erros in the documentations for CentOS 7

* fix: Erros in the documentations for CentOS 7

* fix: Erros in the documentations for CentOS 7

* Some corrections to make docs work as intended.

* re-add httpd_execmem for nginx
2017-10-18 14:38:56 -05:00
Tony Murray
b6964ab3d6 docs: Re-organize install docs (#7424)
Try to group things that go together
prevent repeat actions such as running yum/apt
The only reason to return to command line after install.php is to check validate.php.
(The future is to move most validation to the web ui)
2017-10-04 21:18:59 +01:00
Neil Lathwood
f1b50737bb Docs refactor (#7389)
* docs: Refactored docs for new layout

* some more changes

* more doc updates

* More doc updates

* small update

* small update
2017-10-02 21:36:22 +01:00
Neil Lathwood
529660b8c5 docs: Updated docs to include installing xml php modules + updated validate (#7349) 2017-09-15 19:29:54 -05:00
Neil Lathwood
03ff4cf236 docs: Updated CentOS 7 + Nginx install docs (#7209) 2017-08-22 21:15:19 +01:00
Barry Smith
6d6d8cef37 docs: Update CentOS 7 + Nginx install docs to set SCRIPT_FILENAME (#7200)
Set SCRIPT_FILENAME to prevent white pages on PHP 7.1.x
2017-08-21 22:55:19 +01:00
kedearian
38cb8ab5db docs: Allow host renames with selinux enforcing for CentOS installs
* Allow host renames with selinux enforcing

you have to change the fcontext of /opt/librenms/rrd/ to allow read/write.

* Update Installation-CentOS-7-Nginx.md

Changed to add semanage fcontext -a -t httpd_sys_content_t '/opt/librenms/rrd(/.*)?' to complete the selinux change.

* Update Installation-CentOS-7-Apache.md
2017-08-11 09:34:21 +01:00
Tony Murray
1d777693e1 feature: New IP parsing classes. Removes usage of Pear Net_IPv4 and Net_IPv6. (#7106)
* Refactor remove use of pear Net_IPv4 and Net_IPv6

Caution, I added tests to test the functionality of the new functions, but I'm not 100% certain the replaced usages match 100%.  Please test.

Left usage in generate-iplist.php because I'm not sure the use of that script, so I didn't want to implement additional functionality to support it.

Add support for ipv6 fo ipInNetwork() function

Add phpdocs to functions
Remove accidental inclusion

Use binary operations instead of string for networKFromIp()
Tidy up binary operations in ipInNetwork()

tidy parsing cidr network

Change to a class based implementation.

Update phpdocs.
Fully catch exceptions for hex parsing.

Fix mistake.

support older phpunit versions

Fix php shifting to negative with php 5

* Fix graph authorization. Uncaught exception and checking an ipv4 against an ipv6 network == fail.

* Also remove colons from hex strings.

* Fix typo in bgp polling
Two passes of removing invalid characters from hex strings. (That way we don't mangle valid IPs)
2017-08-08 14:14:58 -05:00
John
8b627bfec9 Update Ubuntu-image.md (#6960)
advise 

http://blog.oxforddictionaries.com/2014/05/advise-advice/
2017-07-05 07:48:29 +01:00
Neil Lathwood
573a4b0e62 Updated validate to detect lower case tables + added support for checking mariadb 10.2 timestamps (#6928)
* Updated validate to detect lower case tables + added support for checking mariadb 10.2 timestamps

* updated install docs
2017-07-03 15:46:45 -05:00
Tony Murray
5975980dee Emphasize web isntall.php (#6913) 2017-06-28 20:33:04 -05:00
Nicolas
fb548a9732 docs: Update Ubuntu and CentOS nginx install doc with a better nginx config (#6836)
* docs: Update install doc with a beter nginx config

* Updated LibreNMS API Location to v0

* Updated LibreNMS API Location to v0
2017-06-22 22:49:13 +01:00
timando
c835708689 docs: Add instructions for opening firewall on CentOS (#6605)
* Add instructions for opening firewall

* Allow access through the firewall
2017-05-13 09:21:19 +01:00
Neil Lathwood
64e020d703 docs: Updated install docs + perf to support compressing file types and using http/2 (#6466) 2017-04-22 08:09:34 -05:00
sorano
681b8ba9aa docs: Update install docs to remove deprecated GRANT usage 2017-03-30 22:12:51 +01:00
Neil Lathwood
e165565413 removed -p from doc (#6274) 2017-03-26 13:45:27 +01:00
Tyler
b6c2648f44 Update Installation-CentOS-7-Apache.md (#6271)
The -p option is not needed by the default installation of mariadb-server on CentOS Linux release 7.3.1611 (Core)

Including it without knowing to press enter for no password results in an authentication error:

root@netmon ~# mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

Alternatively, it could be noted to leave the password field blank when asked.
2017-03-26 13:02:23 +01:00
Tony Murray
35e33d629c docs: php-fpm grant access (#6227)
php-fpm runs as the apache user, add it to the librenms group too.
Changing the user of php-fpm breaks other things, so this is the better fix
Primarily broken when using rrdcached.
2017-03-21 19:31:40 -05:00
JꙨdцӍoηҬ
d468fc301e systemctl enable mariadb (#6117)
* systemctl enable mariadb

It might be practical to start on boot the DB ;)

* Update Installation-CentOS-7-Apache.md
2017-03-07 21:01:51 +00:00
JꙨdцӍoηҬ
15c4a332e1 replace /var/run/php/ by /var/run/php-fpm (#6116)
* replace /var/run/php/ by /var/run/php-fpm

on CentOS 7 with PHP 7.0 /var/run/php don't exist
it's /var/run/php-fpm/

* Update Installation-CentOS-7-Nginx.md
2017-03-07 21:01:42 +00:00
Avery Payne
fd21bee0e2 docs: Update lighttpd docs to include svg config
With SVG introduced, the icons for hosts are broken.  The pattern match has been revised to support more image formats, including SVG.  This resolves the icons showing up as broken images when running lighttpd.

* I agree to the conditions of the Contributor Agreement contained in doc/General/Contributing.md
2017-03-02 01:13:29 +00:00
Neil Lathwood
24a5f6bd37 Db collation standardisation (#5932)
* initial work to standardise collation

* more updates

* final bits for collation update (famous last words)

* Rename 165.sql to 166.sql

* Update schema version inside 166.sql

* moved schema file 166->171
2017-02-27 18:28:01 +00:00
Neil Lathwood
a8691680ab feature: Added ability to output graphs as svg (#5959)
* feature: Added ability to output graphs as svg

* Update graph.inc.php

* added ability to gzip various files for web servers
2017-02-22 06:08:18 -06:00
deutor
cdd9238b32 Installation-CentOS-7-Apache.md - fixed typo (#5918)
Fixed typo
2017-02-16 15:08:30 +00:00
jackson-tim
94bdff3b86 docs: Update Oxidized integration to show example of SELinux setup 2017-01-30 17:59:35 +00:00
Todd Eddy
a8c04460f4 docs: Add logrotate config and update install docs (#5520) 2017-01-21 11:11:22 +00:00
BurntTech
4208f9d330 docs: Update Installation-Ubuntu-1604-Nginx.md to remove default nginx site config 2017-01-19 09:57:10 +00:00
gardar
27bd0c625f docs: Update Installation-Ubuntu-1604-Nginx.md to correct snmpd.conf location 2017-01-06 21:45:46 +00:00
Layne
7a3e437852 docs: Update installation documentation on Ubuntu 16.x and CentOS 7 to use systemd (#5324) 2017-01-06 21:43:06 +00:00
matthewaaronthacker
76516e8b5d docs: Update Centos 7 nginx install steps (#5316) 2017-01-06 18:19:22 +00:00
Layne
f74020da8e docs: fixed example timezones (#5083) 2016-11-29 22:35:59 +00:00
Layne
78ae0f42a1 docs: fixed example timezone (#5084) 2016-11-29 22:34:39 +00:00
Layne
f9faa5ef17 fixed example timezone (#5082)
changed "America/New York" to "America/New_York"
2016-11-29 22:33:54 +00:00
Layne
ed43a05aaa docs: update timezone example error (#5081) 2016-11-29 22:33:05 +00:00
FTBZ
369bfaf508 Corrected CentOS 7/RHEL 7 snmp.conf path (#4519)
Documentation: fixed centos snmp path
2016-09-21 16:22:38 +00:00
joeywas
b2aa271660 Fixing hyperlinks to actually hyperlink 2016-08-30 15:54:09 -07:00
joeywas
149f4538a2 Clarified validate.php is run as root 2016-08-30 15:48:10 -07:00
joeywas
fd67db695f Merge remote-tracking branch 'upstream/master'
Conflicts:
	AUTHORS.md
2016-08-30 15:30:40 -07:00
Joseph
6a3f8b6ac2 Fix spelling of "complete" (#4269) 2016-08-30 13:52:07 +01:00
Joseph
58b82d7e0a Fixed run validate grammar/fixed hyperlinks at end 2016-08-30 00:19:10 -07:00
cromagdk
a8fce2808f Update snmpd setup in Installation-Ubuntu-1604 docs (#4243)
docs: Update snmpd setup in Installation-Ubuntu-1604 docs #4243
2016-08-28 18:42:41 +01:00
Neil Lathwood
383c50b4f4 Updated docs to have source to use for edit github (#4185)
* Added source link for edit on github

* Updated formatting issues

* Updated formatting issues

* Updated formatting issues
2016-08-24 08:12:20 +01: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
0b57b1ef69 Docs update (#4182) 2016-08-23 13:32:24 -05:00
Tony Murray
e6d3228d6f Add old doc redirects (#4181)
Hide "hidden" menu
Push down docs below nav header
2016-08-23 19:24:03 +01:00
Tony Murray
5970d961c1 Custom ordering for docs
I only really ordered the top level nav and installation, others could be customized if desired.
Shorten the header to LibreNMS Docs, so the menu stays nice on smaller screens, maybe even should shorten it to LibreNMS
Add some links on the index.md page
2016-08-20 22:49:23 -05:00
laf
29870b1bc1 Update install doc file names to be clearer 2016-08-18 23:46:15 +01:00
Daniel van Dorp
bf523bcc0b Fix some minor Markdown URL issues & some whitespaces. 2016-08-17 11:28:17 +02:00