mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
osasnmpd: start without real OSA devices
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 <jwi@linux.ibm.com> Signed-off-by: Karsten Graul <kgraul@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
c33cc5a619
commit
66ed1727f9
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user