Hello All,
Can anyone help me to use Icinga2 Package. I have installed/Registered the package. However i don’t see icinga events at stackstorm.
Here is the sensor request in debug mode.
Note: IP/User Name are masked
2018-12-20 06:26:45,450 INFO [-] Icinga2StateChangeSensor initialized with URL: https://IP:MASKED:5665/v1/events?queue=state_change&types=StateChange User: ****** Password: *****
2018-12-20 06:26:45,450 INFO [-] Running sensor in passive mode
2018-12-20 06:26:45,450 INFO [-] Setting up API connection params.
2018-12-20 06:26:45,451 INFO [-] Starting connection to API endpoint.
2018-12-20 06:26:45,451 INFO [-] pyCurl started.
2018-12-20 06:26:45,451 INFO [-] keep trying = 1
* Trying *******...
* Connected to ******* (*******) port 5665 (#0)
* found 148 certificates in /etc/ssl/certs/ca-certificates.crt
* found 594 certificates in /etc/ssl/certs
* ALPN, offering http/1.1
* SSL connection using TLS1.2 / RSA_AES_256_GCM_SHA384
* server certificate verification SKIPPED
* server certificate status verification SKIPPED
* common name: icinga2-master1(does not match '*******')
* server certificate expiration date OK
* server certificate activation date OK
* certificate public key: RSA
* certificate version: #3
* subject: CN=icinga2-master1
* start date: Thu, 04 Oct 2018 09:30:25 GMT
* expire date: Fri, 30 Sep 2033 09:30:25 GMT
* issuer: CN=Icinga CA
* compression: NULL
* ALPN, server did not agree to a protocol
* Server auth using Basic with user '*******'
> POST /v1/events?queue=state_change&types=StateChange HTTP/1.1
Host: *******:5665
Authorization: Basic
User-Agent: PycURL/7.43.0.2 libcurl/7.47.0 GnuTLS/3.4.10 zlib/1.2.8 libidn/1.32 librtmp/2.3
Accept: application/json
Content-Length: 0
Content-Type: application/x-www-form-urlencoded
< HTTP/1.1 200 OK
< Content-Type: application/json
2018-12-20 06:26:49,654 DEBUG [-] 1 active sensor(s)
2018-12-20 06:26:54,655 DEBUG [-] 1 active sensor(s)
2018-12-20 06:26:59,656 DEBUG [-] 1 active sensor(s)
2018-12-20 06:27:04,656 DEBUG [-] 1 active sensor(s)
2018-12-20 06:27:09,657 DEBUG [-] 1 active sensor(s)
2018-12-20 06:27:14,657 DEBUG [-] 1 active sensor(s)
2018-12-20 06:27:19,658 DEBUG [-] 1 active sensor(s)