Skip to content

Commit f29e4e0

Browse files
committed
Merging for release v1.2.1
2 parents c855622 + a0c6db4 commit f29e4e0

File tree

5 files changed

+91
-61
lines changed

5 files changed

+91
-61
lines changed

.mdl_style.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# customize style guide
2+
all
3+
rule "MD013", code_blocks: false, tables: false
4+
rule "MD029", style: "ordered"
5+
rule "MD046", style: "fenced"
6+
7+
# Lesser rules
8+
exclude_rule "MD010" # hard tabs
9+
exclude_rule "MD013" # line length
10+
11+
# Rule Exclusions
12+
exclude_rule "MD001" # Headers are useful in other ways
13+
exclude_rule "MD024" # Headers with same name are useful, but break link labeling (Rework needed on affected files before enabling this rule)
14+
exclude_rule "MD046" # seems broken

.mdlrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# mdl cli configuration
2+
style ".mdl_style.rb"
3+
verbose false

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
The Cacti Group | spine
22

3+
1.2.1
4+
-feature: release to match Cacti release
5+
36
1.2.0
47
-feature: Allow threads to be set a Data Collector level
58
-issue#50: make fails on Debian 7 attempting to locate clock_gettime

README.md

Lines changed: 70 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,36 @@
11
# Spine: a poller for Cacti
22

33
Spine is a high speed poller replacement for `cmd.php`. It is almost 100%
4-
compatible with the legacy cmd.php processor and provides much more
5-
flexibility, speed and concurrency than `cmd.php`.
4+
compatible with the legacy cmd.php processor and provides much more flexibility,
5+
speed and concurrency than `cmd.php`.
66

77
Make sure that you have the proper development environment to compile Spine.
8-
This includes compilers, header files and things such as libtool. If you
9-
have questions please consult the forums and/or online documentation.
10-
11-
-----------------------------------------------------------------------------
12-
13-
## 1.2.0 Development
14-
15-
**PLEASE READ**
16-
17-
Feature branch for `1.2.x` has been merged into the `develop` branch. This means
18-
things may and will break, but they will eventually be fixed.
19-
20-
> DEVELOP branch is currently considered UNSTABLE, use with caution!
8+
This includes compilers, header files and things such as libtool. If you have
9+
questions please consult the forums and/or online documentation.
2110

2211
-----------------------------------------------------------------------------
2312

2413
## Unix Installation
2514

26-
These instructions assume the default install location for spine
27-
of `/usr/local/spine`. If you choose to use another prefix, make
28-
sure you update the commands as required for that new path.
15+
These instructions assume the default install location for spine of
16+
`/usr/local/spine`. If you choose to use another prefix, make sure you update
17+
the commands as required for that new path.
2918

30-
To compile and install Spine using MySQL versions 5.5 or higher
31-
please do the following:
19+
To compile and install Spine using MySQL versions 5.5 or higher please do the
20+
following:
3221

33-
```
22+
```shell
3423
./configure
3524
make
3625
make install
3726
chown root:root /usr/local/spine/bin/spine
3827
chmod u+s /usr/local/spine/bin/spine
3928
```
4029

41-
To compile and install Spine using MySQL versions previous to 5.5
42-
please do the following:
30+
To compile and install Spine using MySQL versions previous to 5.5 please do the
31+
following:
4332

44-
```
33+
```shell
4534
./configure --with-reentrant
4635
make
4736
make install
@@ -54,70 +43,91 @@ chmod +s /usr/local/spine/bin/spine
5443
### CYGWIN Prerequisite
5544

5645
1. Download Cygwin for Window from [https://www.cygwin.com/](https://www.cygwin.com/)
46+
5747
2. Install Cygwin by executing the downloaded setup program
48+
5849
3. Select _Install from Internet_
50+
5951
4. Select Root Directory: _C:\cygwin_
52+
6053
5. Select a mirror which is close to your location
61-
6. Once on the package selection section make sure to select the following (TIP: use the search!):
62-
* autoconf
63-
* automake
64-
* dos2unix
65-
* gcc-core
66-
* gzip
67-
* help2man
68-
* libmysqlclient
69-
* libmysqlclient-devel
70-
* libtool
71-
* m4
72-
* make
73-
* net-snmp-devel
74-
* openssl-devel
75-
* wget
54+
55+
6. Once on the package selection section make sure to select the following (TIP:
56+
use the search!):
57+
58+
* autoconf
59+
* automake
60+
* dos2unix
61+
* gcc-core
62+
* gzip
63+
* help2man
64+
* libmysqlclient
65+
* libmysqlclient-devel
66+
* libtool
67+
* m4
68+
* make
69+
* net-snmp-devel
70+
* openssl-devel
71+
* wget
72+
7673
7. Wait for installation to complete, coffee time!
77-
8. Move the cygwin setup to the C:\cygwin\ folder for future usage.
74+
75+
8. Move the cygwin setup to the C:\cygwin\ folder for future usage.
7876

7977
### Compile Spine
8078

81-
1. Open Cygwin shell prompt (C:\Cygwin\cygwin.bat) and brace yourself to use unix commands on Windows.
79+
1. Open Cygwin shell prompt (C:\Cygwin\cygwin.bat) and brace yourself to use
80+
unix commands on Windows.
81+
8282
2. Download the Spine source to the current directory:
83-
[http://www.cacti.net/spine_download.php](http://www.cacti.net/spine_download.php)
83+
84+
[http://www.cacti.net/spine_download.php](http://www.cacti.net/spine_download.php)
85+
8486
3. Extract Spine into C:\Cygwin\usr\src\<spineversion>:
85-
`tar xzvf cacti-spine-*.tar.gz`
87+
88+
`tar xzvf cacti-spine-*.tar.gz`
89+
8690
4. Change into the Spine directory:
87-
`cd /usr/src/cacti-spine-*`
91+
92+
`cd /usr/src/cacti-spine-*`
93+
8894
5. Run bootstrap to prepare Spine for compilation:
89-
`./bootstrap`
95+
96+
`./bootstrap`
97+
9098
6. Follow the instruction which bootstrap outputs.
91-
7. Update the spine.conf file for your installation of Cacti. You can optionally
99+
100+
7. Update the spine.conf file for your installation of Cacti. You can optionally
92101
move it to a better location if you choose to do so, make sure to copy the
93102
spine.conf as well.
103+
94104
8. Ensure that Spine runs well by running with `/usr/local/spine/spine -R -S -V 3`
95-
9. Update Cacti `Paths` Setting to point to the Spine binary and update the
105+
106+
9. Update Cacti `Paths` Setting to point to the Spine binary and update the
96107
`Poller Type` to Spine. For the spine binary on Windows x64, and using default
97108
locations, that would be `C:\cygwin64\usr\local\spine\bin\spine.exe`
109+
98110
10. If all is good Spine will be run from the poller in place of cmd.php.
99111

100112
## Known Issues
101113

102114
1. On Windows, Microsoft does not support a TCP Socket send timeout. Therefore,
103-
if you are using TCP ping on Windows, spine will not perform a second or subsequent
104-
retries to connect and the host will be assumed down on the first failure.
115+
if you are using TCP ping on Windows, spine will not perform a second or
116+
subsequent retries to connect and the host will be assumed down on the first
117+
failure.
105118

106119
If this is a problem it is suggested to use another Availability/Reachability
107120
method, or moving to Linux/UNIX.
108121

109-
2. Spine takes quite a few MySQL connections. The number of connections is calculated
110-
as follows:
111-
112-
* main poller take one connection
113-
* all threads take one connection each
114-
* all script servers take one connection each
122+
2. Spine takes quite a few MySQL connections. The number of connections is
123+
calculated as follows: (1 for main poller + 1 per each thread + 1 per each
124+
script server)
115125

116-
Therefore, if you have 4 processes, with 10 threads each, and 5 script servers each
117-
your spine will take approximately:
126+
Therefore, if you have 4 processes, with 10 threads each, and 5 script
127+
servers each your spine will take approximately:
118128

119129
`total connections = 4 * ( 1 + 10 + 5 ) = 64`
120130

121-
3. On older MySQL versions, different libraries had to be used to make MySQL thread
122-
safe. MySQL versions 5.0 and 5.1 require this flag. If you are using these version
123-
of MySQL, you must use the --with-reentrant configure flag.
131+
3. On older MySQL versions, different libraries had to be used to make MySQL
132+
thread safe. MySQL versions 5.0 and 5.1 require this flag. If you are using
133+
these version of MySQL, you must use the --with-reentrant configure flag.

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
AC_PREREQ(2.53)
2-
AC_INIT(Spine Poller, 1.2.0, http://www.cacti.net/issues.php)
2+
AC_INIT(Spine Poller, 1.2.1, http://www.cacti.net/issues.php)
33

44
AC_CONFIG_AUX_DIR(config)
55
AC_SUBST(ac_aux_dir)

0 commit comments

Comments
 (0)