[Nagiosplug-devel] localisation next ;-)
Benoit Mortier
benoit.mortier at opensides.be
Tue Nov 30 01:36:02 CET 2004
Le mardi 30 Novembre 2004 10:08, Andreas Ericsson a écrit :
> Benoit Mortier wrote:
[..]
> This seems like a fairly common problem. I'm sure something like this
> would catch most of them;
>
> sed -i -e 's/_("Critical/_("CRITICAL/' -e 's/_("Warning/_("WARNING/' \
> -e 's/\(usage[2 ]*\)(_("CRITICAL /\1(_("Critical/' \
> -e 's/\(usage[2 ]*\)(_("WARNING /\1(_("Warning/' \
> plugins/*.c
thanks will look a that tonight and provide a patch ;-)
> At least this works properly with sed 4.1.1. The last two lines could
> ofcourse be dropped if you want usage output to capitalise CRITICAL and
> WARNING when either one starts a message.
>
> > #: plugins/check_nwstat.c:615
> > OK! Time in sync with network!
> >
> > the OK! should be remplaced by OK
>
> Most plugins use "OK - message" or "OK: message". The "OK" part could be
> stripped entirely since it doesn't add much for users running the nagios
> gui (although it IS nice to have when you're debugging plugins).
normaly that shloud effectively be splitted like said in an other message
first part second part
OK message
Have a nice day
--
Benoit Mortier
OpenSides sprl
Linux Engineer
More information about the Devel
mailing list