[Nagiosplug-devel] Nagios::Plugin add_message(UNKNOWN, ...

Gerhard Lausser Gerhard.Lausser at consol.de
Tue Oct 6 18:09:41 CEST 2009


i'm just curious: why can't i buffer an error message with 
$plugin->add_message(UNKNOWN, "could not contact blabla...");

Is nagios_die the way to go? But what if there is some work left (cleaning
up temp files, closing a database connection cleanly,...) which needs to be
done no matter what the exit code of the plugin will be? I personally don't
like to abort a plugin like this.


More information about the Devel mailing list