[op5-users] Service description in webconfig. Monitor 4.1.4
Johannes Dagemark
jd at op5.com
Fri Apr 17 17:05:36 CEST 2009
Hi Daniel
On Fri, Apr 17, 2009 at 4:48 PM, Kåkneryd, Daniel <
Daniel.Kakneryd at bossmedia.se> wrote:
> Hi,
>
>
>
> Updated one of my Op5 servers with the newest software, including Op5
> Monitor 4.1.4.
>
> After the update I couldn’t change any of my services (“Illegal characters
> in service_description”), after some code-reading I found a change in
> /opt/monitor/op5/webconfig/classes/service_class.php that caused the
> problem, a regexp that didn’t take underscore character (“_”) in
> service_description, is there any reason why it shouldn’t? Will it break
> something? Shouldn’t the webconfig read from nagios.cfg to get
> illegal_object_name_chars instead of having regexp everywhere in the
> .php-files?
>
> strange...
thanks for the bugreport and the patch :) we will take a look at it on
monday
cheers
Johannes
>
>
>
>
> Solved my problem by adding underscore to the regexp in service_class.php.
>
>
>
> # diff service_class.php service_class.php.old
>
> 105c105
>
> < if (!preg_match("/^[ a-zA-Z0-9_#\/\\:@\[\]{}-]+$/",
> $this->obj['service_description'])) {
>
> ---
>
> > if (!preg_match("/^[ a-zA-Z0-9#\/\\:@\[\]{}-]+$/",
> $this->obj['service_description'])) {
>
>
>
>
>
> * *
>
> *Daniel Kåkneryd
> *System Technician
>
> *Phone:
> Mobile:
> Fax:
> E-Mail:
> Web: *
>
> +46 470 705706
> +46 734 350773
> +46 470 703050
> daniel.kakneryd at bossmedia.se
> www.bossmedia.com
>
> *Boss Media AB
> *Honnörsgatan 2
> Box 3243
> SE-350 53 Växjö
> SWEDEN
>
>
>
> _______________________________________________
> op5-users mailing list
> op5-users at lists.op5.com
> http://lists.op5.com/mailman/listinfo/op5-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.op5.com/pipermail/op5-users/attachments/20090417/040a3d50/attachment.html
More information about the op5-users
mailing list