Forum Discussion
drhaskins
Nimbostratus
Oct 30, 2020Issue with External monitor returning value
I am attempting to write an external monitor to determine which of our three databases is the "master." We need to first ssh to the server and then run a command. This command should return either...
Simon_Blakely
Employee
Nov 01, 2020You need to understand the behaviour of External monitors and stdout
K7444: Requirements for external monitor output
-----
Custom external monitors must observe the following output requirements:
- If a server meets the external monitor criteria, the external monitor must send data to stdout.
- Note: Any data on stdout results in an Available status. The data does not have to be specific to the condition of the server.
- Note: Any standard output stops the script from running. To ensure that the necessary operations occur, F5 recommends that you clean up any temporary files, perform logging, etc., before the system performs the standard output operation.
- If a server fails to meet the external monitor criteria, the external monitor must not send any data to stdout.
-----
Looking at your script, you have
status=$?
echo "$status"This will terminate the script here, and mark the monitor as "Available".
If you need to log something from the script for development purposes, use *logger* to log into /var/log/ltm
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
