115 Commits
Author SHA1 Message Date
Mark Brugnoli-Vinten 4d5c5dcd68 Update copyright year for 2023 2023-01-04 10:24:52 +00:00
thurbanandThomasUrban@urban-software.de a1556422e4 Fix issue#279 - spine 1.2.22 does not compile with SQL TLS deactivated (#280)
Co-authored-by: ThomasUrban@urban-software.de <rJFsmBR9!15UGZB%G7uc>
2022-09-01 14:14:17 -04:00
TheWitness 793734843c Fixing #273 - Log time and #274 - Reduce SIGABORT's 2022-07-05 09:34:21 -04:00
TheWitness f95ce48a85 QA: Memory leak checking 2022-06-18 20:07:36 -04:00
TheWitness b0866c0212 Fixing Issue #269 Latest spine does not timeout
Latest spine does not timeout as it was designed when the poller interval expires
2022-06-13 21:24:07 -04:00
TheWitness 6501a67002 Fixing #244 - Extent escape buffer to 2048
SQL sytax error for remote pollers.
2021-12-09 10:04:32 -05:00
Chris RowatandChris Rowat d4de19a6dc Patch around potential buffer overflow within sql.c/db_escape() (#242)
Co-authored-by: Chris Rowat <chris.rowat@terago.ca>
2021-11-14 12:59:34 +00:00
netniV b77652b06b Various autoconf checks are failing to proper work
-issue#202: MySQL SSL Key capability check does not work
-issue#203: Backtracing support checks do not work
-issue#204: MySQL Retry Count capability check always fails

Closes #202
Closes #203
Closes #204
2021-04-20 23:09:06 +00:00
TheWitness 8a4b113e3a Make spine faster when remote connection is down #200 2021-04-11 20:54:34 -04:00
TheWitness a574125671 Missed code to properly kill the thread 2021-03-15 15:14:04 -04:00
TheWitness a5ff36346d Remove the last of the compiler warnings around #197 2021-03-15 15:13:38 -04:00
TheWitness 757914793e Another fix for issue #197
On my gravestone, I want a quote something to the affect of "Here lies a man who hated the C, but loved the world around it".  Great language, fast, but too many rules for this old critter.

There are really four fixes here.

- This first is that the db_escape() function was basically not even working breaking the whole '--mibs' thing.
- When limiting the host list, you should not send everything on the poller back to the main server, only what was polled.  Minor, but a finer point.
- The signal handler needs to not mix it up by calling die().  Just fprintf() to standard error, backtrace if you segfaulted and go away.  I've found in a few cases that the spine will be left running, and when straced, it's blocked on I/O from trying to do too much while trying to 'die'.
- Lastly, when pushing log data to standard output for debugging, don't trim output
2021-03-13 10:43:10 -05:00
TheWitness 1799fad0ea Fixing issue #195
Spine make issue on newer gcc versions
2021-03-08 08:29:27 -05:00
TheWitness 522e507422 Correcting issues around connection pools
Remote data collection faulty
Harmonize debug messages
2021-02-28 11:29:39 -05:00
TheWitness 8ed79a9ed5 Connection pool disconnect causes segfault 2021-02-27 18:22:37 -05:00
TheWitness 716fb177e1 Stop blocking call from preventing spine exit
- Add additional logging when reconnects occur.
2021-02-25 18:14:27 -05:00
TheWitness 16c0b2b0d5 Fixing Issues #192 and #193
- Spine does not properly use the mysql reconnect option
- Spine segfaults when performing certain re-index operation
- This change also corrects some compiler warnings.
2021-02-22 07:59:10 -05:00
TheWitness 34e56d5535 Fixing Issue #187 - Connection Pooling
With large installations spine can create too many connections causing routers to detect DOS
2021-02-06 12:32:23 -05:00
TheWitness 311a914400 Fixing Issue #186
Spine having random segfaults when attempting to connect
2021-01-31 19:50:50 -05:00
TheWitness 95c7350679 Updating copyright, preparing for release 2021-01-01 20:31:36 -05:00
TheWitness 93caa093e9 Fixing Issue #171
Spine experiencing MySQL socket error 2002 under load
2020-11-20 19:09:44 -05:00
TheWitness 2572ac340c Fixing Issues #175 and #176
- Add Data Source turnaround time to debug output
- Under heavy load MySQL/MariaDB return 2006 and 2013 errors on query
2020-11-20 18:26:33 -05:00
TheWitness bdfc997b8a Prep for 1.2.11 Release 2020-03-29 12:06:30 -04:00
TheWitness 76169599c3 Fixing Issue #134
Feature request: Loop Waiting on 2 of 2 pollers when database name is incorrect
2020-03-21 12:54:31 -04:00
TheWitness 53a5bd0683 Fixing Issue #144
Improve MySQL Retry Logic
2020-03-21 11:55:14 -04:00
cigamit 4a2d1ae381 Correct segfault and other cleanup
* Correct segfault due to use of wrong variable
* Remove some whitespace
* More declarations to headers
* Add 'Device[]' to some log messages
* PID[] instead of Process[]
* Some block formatting
* Remove an automake warning
* Use stdbool.h
2019-08-25 15:23:43 -05:00
root 6861ec4de1 MySQL 8 has retired 'my_bool' type
Closes #101
2019-08-21 19:53:47 +00:00
cigamit 8fc523829a Update configure.ac for 1.2.3 release
Additionally update copright years.
2019-03-29 18:24:34 -05:00
cigamit 97b039d454 Resolving Issue #76 and Configure Issue
* Spine unhandled exception signal
* Have configure detect mariadb or mysql and adjust library name
2019-03-29 18:11:18 -05:00
cigamit 09eec18b99 Two additional features of system mib handling an stability 2018-09-25 17:14:38 -05:00
cigamit 4ec7b9b981 Resolving Issue #72
Spine should work with Cacti 1.2 remote polling features
2018-09-25 06:35:50 -05:00
cigamit 872bd708dd Partially Resolving Issue #72
- Spine should work with Cacti 1.2 remote polling features
- Still have to do the bulk insert of updates back to the main poller
2018-09-24 22:38:11 -05:00
cigamit 172730c86b Fix all outstanding memory leaks in Spine 2018-08-11 09:13:49 -05:00
netniV fc86a5a0c9 Resolving issue #64
This commit addresses issue #64 by adding MySQL SSL support as per
Cacti's database.php.

Also, simplifies various code blocks by adding common macros for
setting of SQL options or duplicating strings with a message upon
failure.
2018-08-10 11:14:02 +00:00
Tony Roman 02c5a4615f Update copyright to 2018 2018-01-06 09:15:06 -05:00
Sean Cline 26f4196bca Fix to issue #7 - https://github.com/Cacti/spine/issues/7 2017-02-28 10:24:48 -08:00
Tony Roman eaa981b70e Update copyright to current year 2017-01-01 14:25:45 -05:00
cigamit 9ffadbcdba Settings to address remote polling design 2016-12-27 11:11:40 -06:00
cigamit 37c258e974 Resolve compiler warnings and add new feature
The new feature tells you what data sources had issues during the
polling cycle.  To get more details, you can turn on device debug for
the devices in question or turn logging to MEDIUM, which will generate
quite a bit of output.
2016-12-19 18:12:03 -06:00
cigamit 48eddd1e9c retry handled as best as it can be 2016-06-19 07:57:02 -05:00
cigamit d7159735a5 one more error trap 2016-06-18 16:12:15 -05:00
cigamit 99d6d5270f deal with EINTR better 2016-06-18 16:06:19 -05:00
Tony Roman 9ea2b5d348 Update copyright 2015-06-08 14:16:52 -04:00
cigamit 2ec27cc8d4 Fix a few memory leaks 2015-01-22 22:16:53 -06:00
Tony Roman a1e4e4b8fc Update copyright date to 2014
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/spine/branches/0.8.8@7495 860744bd-22fc-0310-8c96-e9fe5004b5ca
2014-11-12 02:38:23 +00:00
Tony Roman 168474be8c - Update spine copyright
- Fix up documenation


git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/spine/branches/0.8.8@7398 860744bd-22fc-0310-8c96-e9fe5004b5ca
2013-08-04 20:32:56 +00:00
Tony Roman 9e9a22b822 set appropriate mysql 5.5+ timeouts
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/spine/branches/0.8.8@7397 860744bd-22fc-0310-8c96-e9fe5004b5ca
2013-08-04 20:14:18 +00:00
Tony Roman 7128b774e5 Update spine copyrights to 2012
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/spine/branches/0.8.7@7020 860744bd-22fc-0310-8c96-e9fe5004b5ca
2012-02-27 07:18:50 +00:00
Larry Adams cf31034b23 -feature: Add a reconnect capability when the server goes away
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/spine/branches/0.8.7@6864 860744bd-22fc-0310-8c96-e9fe5004b5ca
2011-10-13 19:52:24 +00:00
Larry Adams aaa58c2983 -feature: Add a reconnect capability when the server goes away
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/spine/branches/0.8.7@6863 860744bd-22fc-0310-8c96-e9fe5004b5ca
2011-10-13 19:47:13 +00:00