- CheckMates
- :
- Products
- :
- General Topics
- :
- How to invoke a script upon failover
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to invoke a script upon failover
Hi Mates!
In a traditional distributed cluster environment I need to perform a specific action when a node goes from standby to active.
I've searched documentation, secureknownledge and community resources but found no out-of-the-box way to accomplish this. The alerts scripts possibility (sk25941) are ran on the management side, so it doesn't suit.
Given this I developed a small script that periodically looks into messages file searching for the most recent string "Local machine state changed to ACTIVE" and if that happens in the last 5 second then it performs the desired action.
It works fine and I was able to solve the problem, but not sure if this is the most clear way. Does anyone knows if there are any other means for this?
Best regards,
Pedro Boavida
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Find the answer in sk65923 How to configure the cluster to send SNMP Trap upon failover !
