13854 Commits

Author SHA1 Message Date
b56c6b6adf fix: fdb tables multiple IPs and IPs from other devices adding extra rows (#6930)
Fix missing IPs because the ARP entries are on different port_id
Update arp discovery to use snmpwalk_group() additional fix in that function
Fix removal of arp entries
Fix a debug output type in fdb discovery
2017-07-04 22:27:43 +01:00
4a2f07cdca typo: Update Applications.md (#6953)
Typo: "postgres" changed to "powerdns-recursor" in powerdns SNMP section
2017-07-04 20:35:39 +02:00
a1fffa4e8f fix: Fixed state sensor values for fabos (#6947)
The state of the sensors was a value (#1-4) not an actual state (nominal, faulty etc.) on UI.

Tested device:
Brocade 300 Switch (Brocade FabricOS v6.4.1)
2017-07-04 11:41:38 +01:00
13d047c029 device: restore old junos version code as a fallback (#6945) 2017-07-04 02:10:48 +01:00
74e6c3edf5 feature: ignore web server log files ownership in validate (#6943) 2017-07-03 22:17:07 +01:00
afcc2b5e2d newdevice: Added more sensor support for raritan devices (#6929)
* newdevice: Added more sensor support for raritan devices

* Updated PDU-MIB

* Added more hover graphs to overview
2017-07-03 16:04:01 -05:00
a58a2d8677 fix: Updated sed commands to allow rrdstep.php to be used to increase and decrease values (#6941) 2017-07-03 16:02:30 -05:00
f810265cc0 feature: parallel snmp-scan.py (#6889)
* feature: parallel snmp-scan.py
Reduces scan time of a /24 from 5 minutes to 14 seconds
Work is done by addhost.php

Just tries to addhost.php hostname/ip right now
Might need some more complexity added there, but I wasn't sure what.

* respect autodiscovery.nets-exclude

* Improvements in ip handling and output
Add compatibility arguments so it can be used as a drop in replacement for snmp-scan.php

* tidy

* Handle errors from config_to_json.php

* Handle Ctrl-C better.  This is likely to get hit when someone scans a /16 or larger or an IPv6 network :)

* Move undefined outcome to proper location

* remove snmp-scan.php
2017-07-03 15:57:56 -05:00
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
20b08cf595 refactor: finish logic and definition separation (#6883)
Clean up rewrites to only have function definitions
Move authentication initialization into a function
2017-07-03 15:38:58 -05:00
5020f47838 newdevice: ExtremeWireless initial wireless sensor support (#6819)
* First pass at implementing ExtremeWireless support
Includes global AP and user count, and per-AP user count

* Coding style fixes

* Tabs will be the death of me

* Add license count, fix coding nits

* PHP 5.3 support hopefully

* Graph APs configured with a max of licenses installed
2017-07-03 15:34:34 -05:00
eb1014a657 device: Updated Gamatronic ups use sysObjectID for os discovery (#6940) 2017-07-03 19:43:11 +01:00
701fbbc29b feature: Add a new locking framework that uses flock. (#6858)
Change locks to use flock, as pid checking is not
sufficient when PID Namespaces are involved.
2017-07-02 23:44:36 -05:00
f02b551145 feature: Improved install experience (#6915)
always check that the base sql has been imported.
async db building
After this merge, we could move install.php to the end of the install documentation.  Makes a more natural flow.
2017-07-01 21:28:29 +01:00
11cce1ff78 device: add APC output status state sensor (#6921) 2017-06-30 07:48:24 +01:00
08c21b5734 remove some extra html tags (#6925) 2017-06-30 07:45:18 +01:00
d8913baded docs: a couple of small fixes to the dynamic sensor docs (#6922) 2017-06-30 06:22:44 +01:00
b378d9e762 webui: Set correct button text when editing an alert template (#6916) 2017-06-29 22:03:43 -05:00
72da2c7b39 newdevice: Updated JunOS os polling to detect version correctly (#6904) 2017-06-29 21:56:27 -05:00
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