bluecmd / fortigate_exporter

Prometheus exporter for Fortigate firewalls
GNU General Public License v3.0
232 stars 72 forks source link

Fortigate exporter installation #268

Open RyanInsolencee opened 9 months ago

RyanInsolencee commented 9 months ago

Hey guys , im pretty new to this and i was trying to install it on ubuntu 22.04 without docker to monitor my firewall and i cant seem to find any guides in regards to this. would appreciate any help Thanks

bluecmd commented 9 months ago

It's listed as the primary way to run the software at https://github.com/bluecmd/fortigate_exporter?tab=readme-ov-file#usage. Just download the correct binary for your system from the releases page.

RyanInsolencee commented 8 months ago

is there a way to set it as a service enabled on boot? because im trying it out and its not working

bluecmd commented 8 months ago

Sorry, don't have time to hold hands on basic Linux administration. I'll leave the issue open for others to chime in if they want to.

raj16120912 commented 8 months ago

@RyanInsolencee, here you go, it's very simple

[Unit]
Description=Fortigate Exporter
After=network.target

[Service]
Type=simple
Restart=always
RestartSec=5
ExecStart=/usr/local/bin/fortigate-exporter -auth-file /etc/fortigate-key.yaml

[Install]
WantedBy=multi-user.target