Skip to content

Commit ba9a09e

Browse files
author
Manuel Hartung
committed
added check-script for nagios (unsupported) and checked compatibility with sensiolabs security checker 5
1 parent 51fdd5f commit ba9a09e

File tree

10 files changed

+5135
-2
lines changed

10 files changed

+5135
-2
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,33 @@ with body-parameter apiCode=putSomethingUniqueHere
9494
}
9595
}
9696
```
97+
## Check-Script
98+
In the folder "check-script" you find a perl-script which you can use to check your instance of pimcore. We built it to be used in NAGIOS.
99+
This script is "as is" - extend/change it for your own needs
100+
101+
```
102+
perl pimcore-checker.pl --server=<server> [--level, --verbose, --help]
103+
104+
Parameters:
105+
--server Protocol and domain of installation to check (e.g. https://solution.dachcom.com/)
106+
optional:
107+
--level minimum errorlevel to return, default is 1 (0: show all; 1: show critical and warning; 2: show critical only)
108+
--verbose, -v additionally output gathered package-informations as json
109+
--help, -h print this help
110+
```
111+
112+
The script uses the configurationfile "config/versions.json" - the committed one is an example and needs to be configured by you.
113+
114+
The example "ToolboxBundle" can be duplicated for every bundle you use.
115+
116+
Substituted operands are:
117+
<, >, ==, !=
118+
119+
where '==' is the default if not defined
120+
121+
Versions are compared using perl's string-comparison (see $SUBSTITUTED_OPERANDS in pimcore-checker.pl).
122+
123+
97124
## Copyright and license
98125
Copyright: [DACHCOM.DIGITAL](http://dachcom-digital.ch)
99126
For licensing details please visit [LICENSE.md](LICENSE.md)

UPGRADE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
***
44
After every update you should check the pimcore extension manager. Just click the "update" button to finish the bundle update.
55

6+
#### Update from version 2.0.2 to version 2.0.3
7+
- added script (perl) for checking instance - useful for integration with NAGIOS etc. You need to set the acceptable packages yourself in the versions.json
8+
- checked compatibility with sensiolabs/security-checker ~5.0
9+
610
#### Update from version 2.0.1 to version 2.0.2
711
- fixed securechecker related stuff: if no composer.lock provided ([see readme](README.md)), securechecker returns []
812

check-script/config/versions.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"ApiCode": "XoXPCMDwTj2UygzejP2eV43qhUNgdckudmPGbgphNTZXMQ",
3+
"core": {
4+
"OK": [
5+
">5.5.0",
6+
"5.4.4"
7+
],
8+
"WARNING": [
9+
"<5.5.0"
10+
],
11+
"CRITICAL": [
12+
"<4.0.0"
13+
]
14+
},
15+
"extensions": {
16+
"GENERAL": {
17+
"CRITICAL": [
18+
"dev-master",
19+
"dev",
20+
"alpha"
21+
]
22+
},
23+
"ToolboxBundle\\ToolboxBundle": {
24+
"OK": [
25+
"2.6.1"
26+
],
27+
"WARNING": [
28+
"<2.6.1"
29+
],
30+
"CRITICAL": [
31+
"dev"
32+
]
33+
}
34+
}
35+
}

0 commit comments

Comments
 (0)