Cacti / plugin_thold

Thold Plugin for Cacti
GNU General Public License v2.0
68 stars 63 forks source link

Thold plugin execute a script each time device state changes? #82

Closed navennn closed 5 years ago

navennn commented 7 years ago

Hi, Up until today I've been using a modified thold that allowed me to use gammu to send SMS notifications. Unfortunately the plugin does not work anymore (see https://github.com/vovan888/cacti-plugin-thold) .

Do you think you can implement a feature to run a script each time a device state is changed? Like, device is down -> run /device_down.sh, device is up /device_up.sh. I tried adapting the script to the new version but it's changed too much, I don't have enough knowledge to do it. It would make the plugin/cacti much more flexible.

cigamit commented 7 years ago

That would be strait forward. Would you like to volunteer your plugin to the community?

TheWitness commented 5 years ago

This is resolved in the development branch now. Note, Cacti 1.2 will be required to update.

navennn commented 5 years ago

@TheWitness Can you also please make script execution possible for up/down hosts, not only for thresholds?

cigamit commented 5 years ago

Looks like he missed this part.

navennn commented 5 years ago

@cigamit , @TheWitness Hi, I think this topic was lost. "Can you also please make script execution possible for up/down hosts, not only for thresholds?"