2023-04-21 23:54:17 -06:00
|
|
|
[Unit]
|
|
|
|
Description=Icinga to Kuma converter.
|
2024-03-03 23:07:45 -07:00
|
|
|
Wants=icinga2.service icinga-director.service
|
|
|
|
Requires=icinga2.service icinga-director.service
|
2023-04-21 23:54:17 -06:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=flask
|
|
|
|
Environment="ICINGA2KUMA_ICINGA2_PW=[your icinga2 API password]"
|
2024-02-25 20:52:48 -07:00
|
|
|
WorkingDirectory=/opt/icinga2-checks/Other
|
|
|
|
ExecStart=/opt/venvs/icinga2/icinga2_checks/bin/gunicorn -b 0.0.0.0:8081 -w 4 icinga2kuma:app
|
|
|
|
SyslogIdentifier=icinga2kuma
|
2024-03-28 20:50:10 -06:00
|
|
|
Restart=on-failure
|
|
|
|
RestartSec=5s
|
2023-04-21 23:54:17 -06:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|