Commit Graph

271 Commits

Author SHA1 Message Date
Søren Rosiak
292c4382c1 Revert "Stop flattening config options added in config.php" (#5492) 2017-01-17 19:42:48 +02:00
David Bell
977a7b6685 fix: Stop flattening config options added in config.php (#5491) 2017-01-17 19:13:16 +02:00
David Bell
44071e83b1 feature: Added check for if git executable (#5444) 2017-01-15 22:54:06 +00:00
Neil Lathwood
d5296319fb refactor: MySQL strict and query fixes (#5338)
* refactor: MySQL strict and query fixes

* moved sql file
2017-01-13 06:47:16 -06:00
Neil Lathwood
6ff3ae8789 fix: Detection blank or unknown device types and update #5412 (#5414)
* fix: Detection blank or unknown device types and update #5412

* Less ifs
2017-01-12 23:47:13 -06:00
Tony Murray
b3f6218359 fix: os type and group not being set (#5357) 2017-01-09 08:16:09 +00:00
Neil Lathwood
cc8e31d1a1 newdevice: Added support for Dasan NOS #5179 + disco change (#5255)
* newdevice: Added support for Dasan NOS #5179

* sysName -> sysDescr - doh

* updated functions

* Updated discovery of OS functions

* added missing test units

* mibs added

* Allow multiple regex statements per sysDescr_regex

* Fix style/code issues

* added docs
2017-01-03 14:04:18 -06:00
Neil Lathwood
7f5c555ba5 refactor: Move mib based polling into yaml config files (#5234)
* refactor: More mib based polling into yaml config files

* doc update

* Update MIB-based-polling.md
2017-01-03 11:12:39 -06: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
b3d07c3425 fix: Misc warning fixes in mib polling (#5222) 2016-12-22 11:03:21 +00:00
Neil Lathwood
78f5c26cd6 fix: Allow html but not script, head and html tags in notes widget #4898 (#5006) 2016-11-26 20:54:49 +00:00
Tony Murray
da3d687c6d refactor: rewrite arp-table discovery (#5048) 2016-11-25 21:14:35 +00:00
Tony Murray
6890a71be4 feature: validate list devices that have not been polled in the last 5 minutes or took more than 5 minutes to poll (#5037) 2016-11-23 17:41:13 +00:00
Neil Lathwood
cc01969b06 refactor: Default to only using mysqli (#4915)
* refactor: Default to only using mysqli

* Remove includes/dbFacile.mysql.php

* updated mres() function to remove $config global
2016-11-10 19:40:53 -06:00
laf
8190a3c7b2 Added phpdoc to safedescr() function 2016-11-01 16:37:19 +00:00
laf
02ab4df54a Updated function + added unit test 2016-10-25 13:19:48 +00:00
laf
e287930c3b fix: Toner graphs with invalid chars 2016-10-24 21:40:39 +00:00
Søren Rosiak
71a6d6ed73 fix: Delete all port_id references #4684 2016-10-16 00:42:56 +01:00
Neil Lathwood
a2f2ccfd2c security: Fix some reported security issues (#4807) 2016-10-15 20:45:18 +01:00
Neil Lathwood
d86b39395a refactor: Small poller improvements, removes unecessary queries / execs (#4741) 2016-10-14 20:03:26 -05:00
Neil Lathwood
c0d7ad44b0 Revert "refactor: snmp cleanup" (#4746) 2016-10-07 09:26:10 +01:00
Tony Murray
07e8e9f2be refactor: snmp cleanup (#4683) 2016-10-06 21:20:11 +01:00
Tony Murray
c5177c26af feature: validate.php: check poller and discovery status (#4663) 2016-10-03 17:48:19 +01:00
Neil Lathwood
00d59362f2 fix: AD auth stop alerts being generated 2016-09-23 22:45:51 +01:00
Neil Lathwood
31f1b3483b Merge pull request #4545 from murrant/restore-vdebug
fix: Restore previous snmp debug/vdebug logic so -v can be specified by itself
2016-09-22 20:34:51 +01:00
Tony Murray
cd7737db9d Restore previous snmp debug/vdebug logic so -v can be specified by itself. 2016-09-22 11:36:33 -05:00
Bennett Blodinger
2ec3132c64 close icon element 2016-09-22 08:09:31 -04:00
Neil Lathwood
fee15f5e53 Merge pull request #4535 from murrant/snmp-debug-output
feature: improved readability for snmp debug output
2016-09-22 08:38:51 +01:00
Tony Murray
7371c6e1b8 feature: improved readability for snmp debug output
It now matches RRD and SQL output format, the color is cyan
Slightly better ip removal from debug output, only removes valid IPs now.
2016-09-21 17:15:28 -05:00
Bennett Blodinger
44b4a5037e Switch to font awesome 2016-09-21 15:00:17 -04:00
Tony Murray
83d7bbdd1b fix: reduce mib graph queries (#4439)
Used have 1 query for every graph type known to LibreNMS.
Now it just gets a list of the graphs for the device and checks against that.
2016-09-15 08:45:45 +01:00
Tony Murray
0351b54fb8 webui: make d_echo work in webui (#4432)
* webui: make d_echo work in webui
Remove d_print_r(), it is redundant to d_echo()
Remove d_echo calls in services.inc.php

* Switched debug check to work with nginx
2016-09-14 10:05:49 +01:00
Neil Lathwood
4001f8c60a webui: Updated bootgrid + added syslog colouring based on priority (#4287)
* Updated bootgrid + added syslog colouring based on priority

* Updated functions and removed uneeded file
2016-09-06 07:39:53 -05:00
Neil Lathwood
f59cfa3b17 Add case insensitive string helper functions. (#4283)
refactor: Refactored new helper functions for case sensitivity #4283
2016-08-31 07:42:32 +01:00
Tony Murray
9b93fc5fd7 Combined case sensitive and insensitive functions
Added tests
2016-08-31 00:11:04 -05:00
Neil Lathwood
e29a4261ee bug: Added fallback icon for syslog table #4262
bug: Added fallback icon for syslog table #4262
2016-08-30 22:16:17 +01:00
Tony Murray
38901bfe83 Add case insensitive string helper functions. 2016-08-30 11:55:24 -05: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
fd34c24f5c String helper functions
Bring some sanity to the madness
2016-08-19 14:57:08 -05:00
Tony Murray
4f1a50a36e Make it easy to check for $debug condition for c_echo 2016-08-17 16:00:43 -05:00
Tony Murray
aa8294bfce c_echo
Console_color2 helper.
If $console_color isn't instantiated, remove the color directives and print.
2016-08-16 20:01:22 -05:00
Tony Murray
ead28f6acd Merge remote-tracking branch 'upstream/master' into rrd-create-remote 2016-08-07 08:22:32 -05:00
Florian Beer
a7a8c55eb5 Add filter by priority to syslog 2016-08-05 13:34:23 +02:00
Tony Murray
66bed276c2 Reconstruct addHost() so it is easier to understand
Update addHost() to return either device_id or a string
modify print_error(), print_message() to allow for $quiet variable
Only call addHost() once in addhost.php, if the snmp version isn't set, addHost will cope
Fix up snmp-scan.php and discovery-protocols.inc.php to detect when a device already exists
change in ip_exists() to make it more readable
2016-08-02 00:31:27 -05:00
Tony Murray
97daf3dd54 Merge remote-tracking branch 'upstream/master' into rrd-create-remote 2016-08-01 10:18:28 -05:00
laf
b35321cdad Updated version_info to output unix timestamp 2016-07-31 22:41:39 +01:00
Tony Murray
01cfb960d1 Fix sensors rrd name issue
Use last instead of first, as last won't flush rrdcached
Only stream_select if timeout > 0
Attempt to fix mysql
2016-07-08 22:58:36 -05:00
Tony Murray
a1ab19047e Merge remote-tracking branch 'upstream/master' into rrd-create-remote 2016-07-07 21:28:47 -05:00
Tony Murray
57650e4ffc Remove nfs requirement for distributed poller (with rrdtool 1.5+)
Use data_update instead of rrd_update/rrd_create and influx_update
Centralize rrd file check so we can check against a remote rrdcached server too
Use rrd_name() to generate rrd file names
2016-07-07 21:10:06 -05:00