13835 Commits

Author SHA1 Message Date
9a2b2ad07d docs: Update Rancid Integration
* Update and rename doc/Support/Configuration.md to doc/Support/Rancid Integration/Configuration.md

* tidy up files

* fixed config doc
2017-06-29 21:52:34 +01:00
14ed767edb fix: a couple of issues with the yaml state sensor discovery (#6912) 2017-06-29 21:12:51 +01:00
0854ff5f59 newdevice: Updated Radwin detection (#6918) 2017-06-29 21:10:10 +01:00
e8dd72e8db feature: Support fdb table on generic devices (#6902)
* feature: support fdb table on generic devices
refactored code to use snmpwalk_group
refactored ajax table code to use joins and reduce extra queries
add indexes for device_id and port_id, drop primary index
Make all columns sortable
Fix a few other small issues

* Add index for vlan_id since that field can be searched by the user

* fix whitespace

* Rename 197.sql to 198.sql

* set row count for table
2017-06-29 21:03:56 +01:00
bda5a4343e fix: Fixed auto discovery for lldp not adding new hosts (#6919) 2017-06-29 19:29:33 +01:00
a4b905e3f6 fix: Fixed netman voltage and load divisor values (#6905)
* fix: Fixed netman voltage and load divisor values

* Update to perform more checks
2017-06-29 07:23:39 -05:00
5f8729b1a0 refactor: update the default config generated by install.php (#6914) 2017-06-29 07:09:22 +01:00
5975980dee Emphasize web isntall.php (#6913) 2017-06-28 20:33:04 -05:00
aa64eb99ac fix: Fixed the index for sentry3 current + updated mibs (#6911) 2017-06-28 19:46:15 -05:00
929d7ece56 fix: Fixed checks for $entPhysicalIndex/$hrDeviceIndex being numeric (#6907) 2017-06-28 16:03:35 -05:00
7e1f7f53e3 updated donate link to use our redirect (#6903) 2017-06-28 15:45:25 -05:00
41882dfd8b fix: perf_times cleanup (#6908)
* fix: perf_times cleanup

* Truncate perf_times to save some headaches
2017-06-28 21:43:19 +01:00
d47b58bf6d newdevice: Changed Solaris and Allied discovery to yaml (#6900)
Add SunOS to callback sanitize
2017-06-28 07:53:25 +01:00
092f6922a9 newdevice: Added datacom dm1200e detection (#6901) 2017-06-28 07:52:19 +01:00
0fd7f3f5ed Fix for API services bug #6894 (#6895)
* Fixed an issue with the output including all services from a host that had a single matched service  regardless of whether they matched the filter.

* Cleaned up some bits

* Updated based on murrants suggestions

* A couple small cleanups
2017-06-28 01:00:46 -05:00
b8d8d79a0a newdevice: Added memory detection, fixed cpu polling (#6896)
* newdevice: Added memory detection, fixed cpu polling

* Added new line

* Fix temperature entPhysicalIndex too

* Edited the wrong spot :0
2017-06-28 00:54:14 -05:00
8b806a857a newdevice: Added Cpu/Mem support for dnos and ftos devices and updated detection (#6897) 2017-06-27 23:58:57 -05:00
2ee679276a updated alerting docs to correct macro link (#6898) 2017-06-27 23:57:09 -05:00
5e32474d26 feature: Added support for sensors to be discovered from yaml (#6859)
* feature: Added support for sensors to be discovered from yaml

* added discovery definitions

* Updated docs, more code updates + tests

* removed the oid_name use

* pre-set variable from scrut output

* small updates as per comments in pr

* Allow index in descr

* Added ability to skip values

* Check for numeric values

* small update of oid name
2017-06-26 23:27:57 +01:00
5d5d3816ef fix: Make various Cisco sensor descriptions start with upper case (#6891) 2017-06-26 21:40:50 +01:00
1ba6381d61 security: Enable support for secure cookies (#6868)
* Enable secure cookies for authentication

Enables secure cookies for authentication when HTTPS is used.

* Add line with example secure session cookies

* Fix comment line that's too long

* Remove session secure cookie config

* Added secure cookie config to init.php

Commented out because having this enabled will prevent the server from sending cookies over HTTPS.

* Enable secure cookies if config value provided

* Make code formatting consistent

* Remove secure cookie config

* Use $config['secure_cookies'] to set cookies

* Add default option to turn secure cookies on

* Fix formatting issues

* Set secure cookies to default to false

* Add info about secure cookies

* Fix formatting

* Remove trailing whitespace

* move secure cookie default config to defaults.inc.php

* Remove trailing whitespace

* Fix formatting

* Remove empty line by rrd config

* Remove whitespace
2017-06-26 14:21:21 +01:00
bf0df7266a feature: Added fdb discovery module (#6887)
revert the context_name changes to snmp.inc.php and use the same method as other parts of the code
2017-06-26 13:58:17 +01:00
8d5c3f34f2 newdevice: Updated detection for HP VC Flex-10/10D Module (#6882) 2017-06-26 08:27:01 +01:00
da733b32ee Added changelog for 1.29 (June 2017) (#6888) 2017-06-25 21:42:22 +01:00
54365985a6 Revert "feature: fdb tables (#6616)" (#6886)
This reverts commit 81ddab86afd797decaa47fc1232c4207bffd6fd1.
2017-06-25 07:04:04 +01:00
81ddab86af feature: fdb tables (#6616)
* feature: FDB TABLES for ios and timos

* Fixed coding style issues

* renamed fdb.sql to 191.sql

* fixed travisCI issue

* FDB table discovery working on IOS

* Fixed bug: failing to insert fdb entries into database

* Fix phpcbf issue

* moved sql schema

* rename sql schema

* Add (tentative) FDB support for HP Comware switches

* build schema

* schema changes

* run build schema.......

* FBD Table discovery working on HP ComWare

* FBD Table discovery working on HP ComWare

* Add FDB support for HP Comware

* Discovery regex fix, tested and works for cisco 3750, 2960, 6509

* Use vlan_id instead of raw vlan. Remove Nokia implementation as vlans are not being discovered for it at the moment.

* Use vlan_id instead of vlan.

* Add debug messages, comware support

* Sorry.. phpunit isnt working for me

* Use a file structure instead of if statement per OS

* Make inserts to vlan table if entry does not exist.

* Rename sql schema file

* Use existing context name

Improve output and database synchronization

Remove chromephp and if ios

rename sqlfile

add comware back

update schema

* Delete TIMETRA-CHASSIS-MIB

* Delete TIMETRA-FILTER-MIB

* change index to bigint to be safe
2017-06-24 22:07:31 -05:00
84814efc8b docs: Reorganised alerting docs + added some clarifications (#6869) 2017-06-24 21:27:42 -05:00
daff16fabb fix: config_to_json.php does not pull in database configuration settings (#6884) 2017-06-24 21:21:30 +01:00
62cde819a0 webui: Added "system name" for the "Services list" (#6873)
* Update devices.inc.php

* Update devices.inc.php

* Add "system name" to "hostname"

It is easy to watch hosts using system names and IP addresses

* Deleted -H for checking srevice

How wrote this code? 
I could not use additional plugins, because system adds "-H" when plugin runs. But some plugins don't use "-H"

* changed to original file

* Update services.inc.php
2017-06-23 22:17:01 +01:00
683c93cdf5 Non greedy match for IOS-XR works better (#6872) 2017-06-23 22:16:35 +01:00
1c43fecfa7 feature: New snmpwalk_group() function (#6865)
* feature: New snmpwalk_group() function
Intended to replace several other snmp functions, but may not behave exactly as they did.
Properly handles multi-line values.
Adds additional index data after the grouping so it isn't lost. Perhaps might make optional.
Might add $skip variable to support fully numeric oid indexes. Thoughts?

* Add e and t options.  If we want to specify, options, we can add that later.
2017-06-23 22:13:50 +01:00
e40a7d7767 device: More succinct hardware description for Netonix (#6863) 2017-06-23 22:12:44 +01:00
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
02a7949c5e newdevice: Added Support for Benu OS (#6857)
* Added Basic OS support for Benu

* Benu OS take 2

* Benu OS take 3

* Benu round 4 - this time for real

* added benu sensors

* reamed to benuos, renamed mibs, sensor rewrite pending

* upated sensors to use snmp_get_multi

* rename yaml

* rename yaml

* updated mempool discover to use multi get, fixed whitepaces, removed old commented out code from polling

* changed detection from sysDescr to sysObjectId

* Update benuos.yaml

* Update benuos.inc.php

* Update benuos.inc.php

* Update benuos.inc.php

* Update benuos.inc.php
2017-06-22 21:45:18 +01:00
90aa485149 refactor: discovery code cleanups (#6856)
* Use foreach $key => value

* use get_port_by_ifIndex
get rid of the rest of the array_keys()

* improve hex_to_ip() function, add tests, use in more places

* Simplify can_skip_discovery logic
2017-06-22 21:08:20 +01:00
03a273f722 docs: Reorganize auto-discovery docs and add a little info in some places. (#6875) 2017-06-22 20:43:33 +01:00
62e2b83622 newdevice: Added support for Radwin 5000 Series (#6876) 2017-06-22 20:34:06 +01:00
b3c88925d4 webui: Allow editing and deleting of lapsed alert schedules (#6878) 2017-06-22 20:29:04 +01:00
2f4efb2a43 fix tests (#6870)
Injecting into the dev_cache without having hostname set caused the code to run an sql query.
Fix undefined index errors.
2017-06-20 16:56:38 -05:00
b8452862af device: Fix for syslog-messages from zywall (USG series) (#6838)
* Fix for syslog-messages from zywall (USG series)

* Adding a test
2017-06-20 12:27:37 -05:00
52fabcb770 api: Add search by os to list_devices (#6861) 2017-06-19 19:49:43 +02:00
f9b9652167 Set travis to use php 5.6.29 whilst upstream issue is fixed (#6862) 2017-06-19 14:52:57 +01:00
bcaeae5976 feature: Added support for passing state to alert templates test
* Added option to specify transport when testing a template

* Allow you to specify "state" on commandline
2017-06-19 06:58:52 +01:00
2e43adce37 newdevice: Improved Cisco Unified CM detection and renamed to ucos (#6813) 2017-06-18 20:56:31 -05:00
283392c9a7 newdevice: Added support for Chatsworth PDU (legacy old pdus not sure model number) (#6833)
* newdevice: AXIS Audio Appliance

* newdevice: chatsworth pdus

* Renamed chatsworth to chatsworth-pdu
2017-06-17 15:31:01 +01:00
bcc618a3ad feature: Added Syslog hooks for Oxidized integration (and more) (#6785)
* Creating syslog hooks with example script for Oxidized integration

* Corrected IOS-XR matching and stopped spurious calls to Oxidized
2017-06-17 15:21:21 +01:00
5bcec9c7d3 newdevice: Added detection for Microsemi PowerDsine PoE Midspans (#6843)
newdevice: Added detection for Microsemi PowerDsine PoE Midspans (#6843)
2017-06-17 15:12:33 +01:00
09103b2067 feature: Added syslog auth failure to alert_rules.json (#6847)
feature: Added syslog auth failure to alert_rules.json (#6847)
2017-06-17 15:03:18 +01:00
7a87f12380 fix: custom config.php os settings (#6850)
fixes: #6848
2017-06-16 14:08:38 +01:00
013beb63f9 docs: Fix the Ubuntu 16 rrdcached config (#6846)
*  Fix the Ubuntu 16 rrdcached config

Missing user and group to run as and the -R option

* Create RRDCached.md

Add write threads in case users need to tune performance (4 is the default)
2017-06-16 12:58:48 +01:00