Actually, I think “preShutdown” will do it since it passes the type of shutdown “abnormal” for a crash to the call back - I can use that to send a Slack message.

 

mmaddcallback node-abort --event preShutdown --command /usr/local/sbin/callback-test.sh --parms "%eventName %reason"

 

and you get either:

 

preShutdown normal

preShutdown abnormal

 

 

Bob Oesterlin

Sr Principal Storage Engineer, Nuance

 

 

From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Marc A Kaplan <makaplan@us.ibm.com>
Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org>
Date: Wednesday, January 30, 2019 at 3:17 PM
To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org>
Subject: [EXTERNAL] Re: [gpfsug-discuss] Node ‘crash and restart’ event using GPFS callback?

 

We have (pre)shutdown and pre(startup) ...
Trap  and record both... If you see a startup without a matching shutdown you know the shutdown never happened, because GPFS crashed.