[Nagiosplug-devel] Error in check_mrtg source code

Matthias Eble matthias.eble at mailing.kaufland-informationssysteme.com
Wed Jul 18 19:43:08 CEST 2007


Marco Klipp schrieb:
Hi Marco,

> 
> 	if ( rate >  value_critical_threshold)
> 		result = STATE_CRITICAL;
> 	else if (rate > value_warning_threshold)
> 		result = STATE_WARNING;
what about this one? It's not indented correctly but I can't see, why it 
shouldn't work.
> 		else result = STATE_OK;
> 
> There is the last else missing.
> Without this the returnvalue would never be 0 (OK) !


Matthias




More information about the Devel mailing list