Indeed

It seems like there is a bug when you have a hostgroup whose name is
"print".
'print' is a reserved keyword in python ( same bug with a hostgroup named
"def" for example).

So the "eval" function used in shinken code to evaluate the hostgroup name
got some troubles with that.

I will try to find a workaround :)


2011/5/27 Venelin Petkov <petkov.vene...@gmail.com>

> Hi, here is the only service with that name. It is derived from the
> default configuration:
>
>
> define service{
>        use                             local-service
>        hostgroup_name                  print
>        service_description             cups
>        check_command                   check_cups
>        }
>
> define service{
>        use                             local-service
>        hostgroup_name                  printer
>        service_description             Printer
>        check_command                   check_hpjd
>        }
>
>
>
> #This one is a real one
> define service{
>        name                            local-service           ; The
> name of this service template
>        use                             generic-service         ;
> Inherit default values from the generic-service definition
>        max_check_attempts              1                       ;
> Re-check the service up to 4 times in order to determine its final
> (hard) state
>        register                        0                       ; DONT
> REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
> #       hostgroup_name                  in-existant
>         }
>
>
>
>
> On Fri, May 27, 2011 at 12:11 PM, Olivier Hanesse
> <olivier.hane...@gmail.com> wrote:
> > Hi
> > It is strange.
> > Could you paste the config file where you got the 'print' services ? So I
> > can try to reproduce it.
> > Did you got this issue without this service ? (just to be sure that this
> is
> > linked)
> > Regards
> > Olivier
> >
> > 2011/5/27 Venelin Petkov <venelin.pet...@iwr.uni-heidelberg.de>
> >>
> >> Hi,
> >>
> >>   After installing version 0.6.4 I checked the configuration (arbiter
> >> -v ) and it indicated a problem:
> >>
> >>
> >>
> ----------------------------------------------------------------------------------
> >> Checking notificationways...
> >>        Checked 5 notificationways
> >> Checking escalations...
> >>        Checked 0 escalations
> >> Checking services...
> >> The syntax of 'print' is invalid (invalid syntax (<string>, line 1))
> >>        services conf incorrect !!
> >>        Checked 54 services
> >> Checking servicegroups...
> >>        Checked 0 servicegroups
> >> Checking timeperiods...
> >>        Checked 5 timeperiods
> >> Checking commands...
> >>
> >> ....
> >>
> >> Configuration is incorrect, sorry, I bail out
> >>
> >>
> ----------------------------------------------------------------------------------
> >>
> >>
> >> Since the configuration is correct (it runs fine with previous
> >> versions), I decided to fetch the latest commit from the git
> >> repository (e1bb8dcdb763569c5658fc5809128ab28c1c76ec)  and it still
> >> shows the warning about 'print', but at the end it does not indicate
> >> an error:
> >>
> >> Things look okay - No serious problems were detected during the
> pre-flight
> >> check
> >>
> >>
> >> One of the services is called "print", so I suspect there may be some
> >> mixup, then again, may be not.
> >>
> >>
> >> Venelin
> >>
> >>
> >>
> ------------------------------------------------------------------------------
> >> vRanger cuts backup time in half-while increasing security.
> >> With the market-leading solution for virtual backup and recovery,
> >> you get blazing-fast, flexible, and affordable data protection.
> >> Download your free trial now.
> >> http://p.sf.net/sfu/quest-d2dcopy1
> >> _______________________________________________
> >> Shinken-devel mailing list
> >> Shinken-devel@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/shinken-devel
> >
> >
> >
> ------------------------------------------------------------------------------
> > vRanger cuts backup time in half-while increasing security.
> > With the market-leading solution for virtual backup and recovery,
> > you get blazing-fast, flexible, and affordable data protection.
> > Download your free trial now.
> > http://p.sf.net/sfu/quest-d2dcopy1
> > _______________________________________________
> > Shinken-devel mailing list
> > Shinken-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/shinken-devel
> >
> >
>
>
> ------------------------------------------------------------------------------
> vRanger cuts backup time in half-while increasing security.
> With the market-leading solution for virtual backup and recovery,
> you get blazing-fast, flexible, and affordable data protection.
> Download your free trial now.
> http://p.sf.net/sfu/quest-d2dcopy1
> _______________________________________________
> Shinken-devel mailing list
> Shinken-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/shinken-devel
>
------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Shinken-devel mailing list
Shinken-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/shinken-devel

Reply via email to