Sometimes, things don’t work out the way you plan.
I have wanted to contribute to opensource software for a long time, after all, I have been using it for many years now, and sometimes it just seems right to give back. But while I am good at quite a few things, I am not a developer, so you won’t be seeing beautiful bits of C from my hand anytime soon. (It’s on the list of things I want to learn).
However, recently the company I work for started using a previously unknown bit of kit (for us anyway), we do quite a lot with Fortigate firewalls, but this was our first go at the FortiADC loadbalancer. I got to try my hand at it, and after a few days of tinkering with it, we had a solid setup for a customer.
As part of any proper setup, you want to monitor whatever you use, and when dealing with Fortinet devices, you want to definitely monitor things like licenses. You do not want them to expire after all!
So, after looking high and low for a Nagios / Check_mk plugin for FortiADC, and not finding any, I decided to write one myself. I had to teach myself Python for it while writing it, great fun!
So, I present you with: check_fortiadc.py