From e09443f51b1c4ee29a5bb7155c0f5161af2cdc7f Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 20 Sep 2018 11:31:14 -0400 Subject: watchfrr: Modify some stderr messages to zlog_warn The stderr output is not being displayed as part of watchfrr invocation in system startup. Specifically if the user has not properly sent 1 or more daemons to monitor. If the end-user is using tools/frr this stderr is dropped( and systemd appears to drop stderr too? ) Modify the two stderr calls in this situation and use the zlog system. Now I can clearly see an error message that tells me what has gone wrong. Signed-off-by: Donald Sharp [DL: fixed typo] --- watchfrr/watchfrr_errors.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'watchfrr/watchfrr_errors.c') diff --git a/watchfrr/watchfrr_errors.c b/watchfrr/watchfrr_errors.c index c720b65099..0aa27ef661 100644 --- a/watchfrr/watchfrr_errors.c +++ b/watchfrr/watchfrr_errors.c @@ -31,6 +31,12 @@ static struct log_ref ferr_watchfrr_err[] = { .description = "WATCHFRR has detected a connectivity issue with one of the FRR daemons", .suggestion = "Ensure that FRR is still running and if not please open an Issue" }, + { + .code = EC_WATCHFRR_UNEXPECTED_DAEMONS, + .title = "WATCHFRR wrong daemons to watch", + .description = "As part of WATCHFRR startup you must specify 1 or more daemons to monitor", + .suggestion = "Update your startup scripts to include zebra and any other daemon you would like to monitor", + }, { .code = END_FERR, } -- cgit v1.2.3