ctdb-scripts: Improve error messages when using NFS service_check_cmd
authorMartin Schwenke <martin@meltin.net>
Wed, 20 Apr 2016 05:19:45 +0000 (15:19 +1000)
committerAmitay Isaacs <amitay@samba.org>
Mon, 25 Apr 2016 05:10:14 +0000 (07:10 +0200)
commit84fdc2a562bf26ecc9b3709cf47175e323bac15c
treefda30df1d25d974584a3489a82ba8c773e814a11
parent59c71646ff6b9da2b7dbad9971f02e8007a09bbb
ctdb-scripts: Improve error messages when using NFS service_check_cmd

When external monitoring is enabled for an NFS service using
service_check_cmd then $ctdb_check_rpc_out is empty because the
internal RPC checking isn't used.  This results in empty log messages
like:

  60.nfs: ERROR:

or:

  60.nfs: WARNING:

Improve this so it at least says:

  60.nfs: ERROR: monitoring service "statd" failed

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/config/events.d/60.nfs