Hello
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.
"logdisk -s"
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 ;)
Hello Emilie,
Thank you for your message.
Regarding what you would like to achieve, I invite you to have a look to the script provided in the following KB article: https://helpdesk.paessler.com/en/support/solutions/articles/64316-monitor-process-status-using-ssh-sensor
Maybe it could help you to write your own script to return a result based on the state.
Regards.
Feb, 2021 - Permalink