Forum Discussion
Scripted monitoring
https://devcentral.f5.com/s/articles/ltm-external-monitors-troubleshooting
https://devcentral.f5.com/s/articles/template-for-external-monitors
Following the steps listed in the article, I created a script in /usr/bin/monitors.
However when I create the script in that directory, chmod to 755, I still don't see it on the GUI. I get an error when I try to add it and specify the path.
[:/S1-green-P:Active:In Sync] monitors # pwd
/usr/bin/monitors
[/S1-green-P:Active:In Sync] monitors # ls -l | grep custom
-rwxr-xr-x. 1 root webusers 2379 2019-09-17 12:59 custom_monitor.bash
(tmos)# modify ltm monitor external custom_monitor run "/usr/bin/custom_monitor.bash"
0107134a:3: File object by name (/usr/bin/custom_monitor.bash) is missing.
(tmos)# modify ltm monitor external custom_monitor run
Options:
none
Configuration Items:
Exchange2016-smtp.app/ arg_example sample_monitor
- Hedbert_CarrascJun 14, 2022
Nimbostratus
Because the correct path is /usr/bin/monitors/custom_monitor.bash. For instance, the command is
# modify ltm monitor external custom_monitor run "/usr/bin/monitors/custom_monitor.bash"
Recent Discussions
Related Content
* 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