From 66ed1727f91980533b7389187752a48f8a56cd97 Mon Sep 17 00:00:00 2001 From: Karsten Graul Date: Wed, 10 Oct 2018 20:17:02 +0200 Subject: [PATCH] osasnmpd: start without real OSA devices MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Osasnmpd would start without any devices, but refuses to start when all devices are no real OSA devices. Start osasnmpd in this case because it re-scans via update_mib_info whenever the interface data changes. Reviewed-by: Julian Wiedmann Signed-off-by: Karsten Graul Signed-off-by: Jan Höppner --- osasnmpd/ibmOSAMib.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/osasnmpd/ibmOSAMib.c b/osasnmpd/ibmOSAMib.c index 6a4161ae..39c7cd0d 100644 --- a/osasnmpd/ibmOSAMib.c +++ b/osasnmpd/ibmOSAMib.c @@ -95,10 +95,10 @@ void init_ibmOSAMib(void) { } else if ( osaexp_num == 0 ) { - fprintf( stderr, "init_ibmOSAMib(): bad or no OSA-E devices reported\n" - "check agent log file for more details\n" - "Cannot start subagent...exiting...\n"); - exit(1); + get_time( time_buf ); + snmp_log( LOG_ERR, "%s init_ibmOSAMib(): none of the %d interfaces is a real " + "OSA-E device - starting subagent anyway\n", time_buf, ifNumber); + return; } /* end if */