Commit Graph

3907 Commits

Author SHA1 Message Date
Michael Van Delft
7e63fcf0eb Remove entry for 'richoh'
It looks like that's a typo and ricoh appears further down.
2016-08-30 12:13:21 +08:00
Søren Rosiak
16ae3cf9be newdevice: Added support for DDN Storage #2737 (#4261)
newdevice: Added support for DDN Storage #2737 (#4261)
2016-08-29 21:42:42 +01:00
crcro
bc816ee461 discovery: ubnt edgeswitch os update (#4249)
newdevice: Improved support for UBNT EdgeSwitch OS #4249
2016-08-29 21:24:22 +01:00
Søren Rosiak
5cff81b658 fix: Samsung Printer Discovery #4251 (#4258)
* fix: Samsung Printer Discovery #4251
2016-08-29 21:00:07 +01:00
crcro
d333aafa79 fix: NRG Toner detection #4250
fix: NRG Toner detection #4250
2016-08-29 20:11:42 +01:00
ospfbgp
d62f2f9d08 Update support for avaya-vsp and fix problem in functions.php for avaya-vsp (#4237)
newdevice: Improved support for Avaya VSP #4237
2016-08-29 20:00:05 +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
e2a043125b influx-db, commas should be periods (#4222)
Noticed this while looking at psr-2 changes
2016-08-26 15:37:00 +01:00
Tony Murray
15b0cd68ea Move libraries in /includes to /lib (#4217) 2016-08-26 14:04:21 +01:00
Tatermen
19f231d408 Freeswitch support (#4203)
* Added support for freeswitch via unix_agent

* Fixed display of graphs on apps overview

* Removed tab indents

* Fixed not sending port_descr_type (#4188)

* Removed / Updated version info to just be LibreNMS (#4193)

* Remove requirement for ['enable_printers'] (#4192)

* ricoh devices returning garbage as toner level (#4180)

* ricoh devices returning garbage as toner level

* ricoh toner extra check

* more ricoh rules

* Fix remote rrdtool_check_rrd_exists() calls (#4196)

It was comparing with the full name when rrdcached only printed out the relative name.
Thanks mikmak on irc for lots of troubleshooting.

* check for no motd line (#4200)

Fixes #4199

* Only push the toc down, not the content
the toc is on top when the header switches to two lines, so we only need to push that down.

* IRC bot - detect lost communication

Force reconnect if no data received from server for config['irc_conn_timeout'] seconds (that may happen when network/VPN goes down - in such case IRC bot won't get immediately notification that connection was lost, at least till it tries to send anything).

* Update irc.php

* Update irc.php

* Update irc.php

* Update irc.php

* fix ifName randomly defined, breaking influxdb updates (#4202)

* IRC bot - allow to disable ssl check

In PHP 5.6.x stream wrappers verify peer certificates and host names by default when using SSL. That fix allows to turn off that verification with config option $config['irc_disable_ssl_check'] = true; 
It is useful when you want to use self generated certificate for your own IRC server.

* Update irc.php

* More more docs (#4197)

* Updated docs + some small code changes

* Added validating code doc for developers

* Doc updates

* Updates and improvements

* Add ntpd to the list of agentapps (#4194)

* Fix deprecated constructors
This small change should't prevent easy updates to libraries and fixes the lint check on php7

* Don't allow php7 failures anymore

* Fix defunct process issues: create Proc class (#4210)

* Proc class
Encapsulate processes in a class, when they go out of scope, we can use the __destruct() process to make sure the process terminates.

* Fix rrdtool_last checks failing

* Don't close rrdtool in rrd_graph
Try to start rrdtool process if they haven't been started yet
Remove some extra debug output

* phpdocs added
several cleanups
should still be functioning the same
Only open one  rrdtool process for graph.php

* include common.php in definitions.inc.php (#4198)

definitions.inc.php makes a call to dbFetchRow, which uses c_echo()
It is safe to include common.php here as it only has function definitions.

* Use pre-commit.php in for travis-ci tests (#4212)
2016-08-26 12:08:48 +01:00
Tony Murray
562737a528 include common.php in definitions.inc.php (#4198)
definitions.inc.php makes a call to dbFetchRow, which uses c_echo()
It is safe to include common.php here as it only has function definitions.
2016-08-26 10:13:56 +01:00
Daniel Preussker
9c3d398b63 Merge pull request #4214 from murrant/fix-constructors
Fix deprecated constructors
2016-08-26 06:58:49 +00:00
Tony Murray
200e670315 Fix defunct process issues: create Proc class (#4210)
* Proc class
Encapsulate processes in a class, when they go out of scope, we can use the __destruct() process to make sure the process terminates.

* Fix rrdtool_last checks failing

* Don't close rrdtool in rrd_graph
Try to start rrdtool process if they haven't been started yet
Remove some extra debug output

* phpdocs added
several cleanups
should still be functioning the same
Only open one  rrdtool process for graph.php
2016-08-26 07:50:29 +01:00
Tony Murray
53b07d7a2a Fix deprecated constructors
This small change should't prevent easy updates to libraries and fixes the lint check on php7
2016-08-26 00:35:09 -05:00
Tony Murray
3d0edb46cc Add ntpd to the list of agentapps (#4194) 2016-08-25 18:43:56 -05:00
Mickael Marchand
63cdd8210d fix ifName randomly defined, breaking influxdb updates (#4202) 2016-08-25 11:55:27 +01:00
Tony Murray
111d967e7d Fix remote rrdtool_check_rrd_exists() calls (#4196)
It was comparing with the full name when rrdcached only printed out the relative name.
Thanks mikmak on irc for lots of troubleshooting.
2016-08-24 22:42:50 +01:00
Neil Lathwood
1055003d3f Remove requirement for ['enable_printers'] (#4192) 2016-08-24 12:42:06 -05:00
Neil Lathwood
dda6bf7576 Removed / Updated version info to just be LibreNMS (#4193) 2016-08-24 12:39:57 -05:00
crcro
6b2ac09be6 ricoh devices returning garbage as toner level (#4180)
* ricoh devices returning garbage as toner level

* ricoh toner extra check

* more ricoh rules
2016-08-24 17:47:06 +01:00
Neil Lathwood
e112302e40 Fixed not sending port_descr_type (#4188) 2016-08-24 11:01:56 -05:00
zarya
8a654359c9 Hytera new (#4191)
* Hytera repeater support

* Fixed Hytera Repeater OS detection
2016-08-24 14:45:03 +01:00
crcro
7634c085c0 Hwg ste2 (#4190)
* misspelled var name

* HWg-group STE2 fully working - tested

* not so noisy definitions.inc.php

* implemented scrutinizer best practices
2016-08-24 14:37:35 +01:00
crcro
f30c3907a8 initial sonus support (#4176)
* initial sonus support, tidy definitions.inc.php

* proper copyright in files

* limiting the noise

* used too old definitions.inc.php
2016-08-24 14:33:00 +01:00
crcro
e54341857f misspelled var name (#4186) 2016-08-24 08:11:58 +01:00
crcro
88512f156d hwg-ste2 sysObectId os definition fix (#4173) 2016-08-23 19:47:39 +01:00
zarya
10d7451a74 Hytera repeater support (#4163) 2016-08-23 19:44:45 +01:00
Tony Murray
228857d2da Use proc_terminate instead of proc_close to protect against zombies (#4178) 2016-08-23 15:23:55 +01:00
Tony Murray
7b93b564da Centralize class loader (#4169)
Move the classloader to as early as possible in defaults.inc.php
This should cover all application entrances.
Set install_dir based on the location of defaults.inc.php
2016-08-22 23:59:59 +01:00
Tony Murray
e920e28e48 Change the default error_reporting level to include all fatal errors (#4165)
* Change the default error_reporting level
This will hopefully save confusion when there are things like syntax errors and missing required files.

* Add E_PARSE error as well.
This is a fatal error too.
2016-08-22 23:55:21 +01:00
Tony Murray
e80a385b7f RRDtool dual process (remote creation/check) (#4104)
* Prepare for dual rrdtool processes
Disabled at this time
Split out rrdtool version checks into rrdtool_create_command()
Tests for rrdtool_create_command()
Fixes a few small issues.

* Enable dual process and remote rrd check/creation

* remove full path for remote commands

* Doc updates
minor fix to rrdtool_tune()

* Set up bootstrap for phpunit
Fix issues with FileExistsException

* Attempt to fix phpunit

* Fix classloader and bootstrap to use full paths only (not depending on $config)

* Fix phpunit tests, config.php does not exist.
2016-08-22 16:32:05 +01:00
crcro
ead3f24008 fix hwg-ste2 bad oid (#4157) 2016-08-21 18:51:02 +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
Tony Murray
de9c02d66e Fix rrd_name 2016-08-21 08:06:15 -05:00
Tony Murray
d9797f7a86 Merge pull request #4141 from laf/brother-printer
Updated support for Brother printers
2016-08-20 07:12:01 -05:00
Tony Murray
4a0a7ec302 Merge pull request #4099 from laf/issue-4090
Update of ifSpeed checking in ports poller
2016-08-20 06:55:53 -05:00
laf
03af171f22 Updated support for Brother printers 2016-08-20 11:42:05 +01:00
Neil Lathwood
c763d4deff Merge pull request #4137 from crcro/emc-flare-os-fix
emc flareos definitions update
2016-08-20 01:17:41 +01:00
Neil Lathwood
7f2cb23acb Merge pull request #4133 from murrant/str-helpers
String helper functions
2016-08-20 01:15:23 +01:00
Neil Lathwood
d7f6f0b428 Merge pull request #4119 from crcro/hp2530
hp 2530 series procurve/aruba detection
2016-08-20 01:09:08 +01:00
Neil Lathwood
87c793f2c3 Merge pull request #4116 from crcro/hwg-ste2
HWGroup STE2 support
2016-08-20 01:08:01 +01:00
Neil Lathwood
6531bb7bb8 Merge pull request #4088 from adaniels21487/issue-4083
Added OS detection for Cisco Prime Infrastructure
2016-08-20 00:22:21 +01:00
crcro
ea38d55b9e removed top graph for cpu/mem/storage as they won't get anydata from flareos via snmp 2016-08-20 02:02:33 +03:00
crcro
1de76192c5 Revert "added to arubaos"
This reverts commit 29d5b8a5af.
2016-08-20 01:42:49 +03:00
Tony Murray
fd34c24f5c String helper functions
Bring some sanity to the madness
2016-08-19 14:57:08 -05:00
Tony Murray
7941768933 Quick and dirty fix for #4102
Real fix is in #4104
2016-08-19 10:25:38 -05:00
crcro
29d5b8a5af added to arubaos 2016-08-19 12:25:54 +03:00
crcro
bd14338fec fix for issue #4089 2016-08-19 12:08:19 +03:00
crcro
a7441e6459 initial hw group ste2 device support 2016-08-19 02:21:00 +03:00
Aaron Daniels
a77536ba4b Merge branch 'master' into issue-4083
Conflicts:
	includes/definitions.inc.php
2016-08-19 07:13:46 +10:00