Forum Discussion
cjunior_138458
Altostratus
Feb 16, 2016How to: iCall triggered on monitor status changes
Hi experts, I need trigger a script regarding the objects status changes.
Is there an best way to do this without the need to change the user_alert.conf? My approuch:sys icall handler triggered network_upd_handler {
script network_upd_script
subscriptions {
OBJECT_STATUS {
event-name CHANGE_STATUS_EVENT
}
}
}
sys icall script network_upd_script {
app-service none
definition {
exec /bin/bash /var/tmp/update.sh
}
description none
events none
}
user_alert.conf
alert NETWORKMAP_UPDATE ".*monitor status.*" {
exec command=" tmsh generate sys icall event CHANGE_STATUS_EVENT"
}
I thank you!
No RepliesBe the first to reply
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
