Hi,
My comments are inline.
Quoting Mathieu Gagn=C3=A9 :
> Hi,
>
> Andy Shellam wrote:
>>
>> The lines you sent for the host escalation were actually for the =20
>> host itself! The host escalation's contacts also had a space in =20
>> the strtok() functions, which explains why a host escalation =20
>> wouldn't register "Andy Shellam" as a contact name, but would =20
>> recognise "NetServe Support" as a contact group.
>
> You are right. Sorry for this mistake.
Don't worry, like you said it highlights the differences in the code! =20
I'm guessing that whitespace separators were previously allowed but =20
has now changed?
>
> This however reinforce my statement regarding the inconsistency I =20
> found across the source code. Should the white-space be considered =20
> as a field separator or not?
>
> Somebody should verify the entire source and make sure the same =20
> behavior applies everywhere.
>
> Also, by removing the white-space separator, will this still work? =20
> (note the white-space)
>
> define hostescalation {
> contact_groups contactgroup1, contactgroup2
> }
Good point.
From my amateur experience with C, I know the "," will split the =20
string "contactgroup1, contactgroup2" into "contactgroup1" and " =20
contactgroup2" (note the space.)
Whether Nagios would then realise that " contactgroup2" and =20
"contactgroup2" should be the same thing, I'm not sure.
>
> --
> Mathieu Gagn=C3=A9
>
>
--=20
Andy Shellam
Business Systems Architect
Network Mail
NetServe Support
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]