icinga2-checks/services/opnsense-watcher-daemon.ser...

16 lines
421 B
SYSTEMD
Raw Permalink Normal View History

2023-11-19 16:38:20 -07:00
[Unit]
Description=OPNsense watcher daemon
After=network.target
[Service]
User=flask
2023-11-19 17:19:26 -07:00
Environment="OPN_URL=https://10.0.0.1"
2023-11-19 16:38:20 -07:00
Environment="OPN_KEY=[your OPNsense key]"
Environment="OPN_SECRET=[your OPNsense secret]"
2023-11-19 17:19:26 -07:00
ExecStart=/opt/venvs/icinga2/icinga2_checks/bin/python3 /opt/icinga2-checks/opnsense_traffic_watcher.py --daemon
2024-02-25 20:52:48 -07:00
SyslogIdentifier=onsense-watcher-daemon
2023-11-19 16:38:20 -07:00
Restart=always
[Install]
WantedBy=multi-user.target