I need to add a sensor to see if logs are activate on firewall. I can have a physical disk sensor wich indicate i/o on the partition but when there is no write on the disk, my sensor is in alarm state.
I think about a ssh script.
In fact when I connect a Firewall in ssh there is a command which is intersting.
the result is: "state=USED device=da1"
I don't need the part "device" but I need the part "State"
State is on USED or UNUSED and I need this result: USED= 0 = OK UNUSED= 1 = WARNING
I don't know scritpting, so, if someone could help me, it will be nice :)
Thanks a lot and sorry for my english ;)