Forum Discussion
ramann_75062
Nimbostratus
Oct 29, 2009Export variables in external monitor script
Hi@all,
is there a way to export variables in a external bash monitor script and use then in the next run of the script?
I tried it via "export $BLA" but this does not work.
I tried also an "echo $BLA >> /var/log/filename", but then I have the problem, that the output is most time not written to the file - is there an limitation?
The goal of my script is to set an counter that not every time when the script detects that a pool member is down, a mail is send.
OS: BIG-IP 9.4.6 Build 401.0 Final
Thanks
Bjoern
- hoolio
Cirrostratus
Hi Bjoern, - ramann_75062
Nimbostratus
Hi Aron, - hoolio
Cirrostratus
I think the issue is that after you echo something to standard out, the script is stopped and the pool member is marked up. So make sure to include any code you need to have run on every execution before any standard output is sent.
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