Hello Jean,

On Mon, Feb 25, 2013 at 11:21:22AM +0100, nap wrote:
> > just an idea to put in there: Is it feasible to have different config
> > "languages" like the salt config management tool has ? Those can use at
> > least yaml, direct python code, jinja2 and xml.
> > One is the (settable) default for the config files, but this can be changed
> > with a shebang syntax in every individual file.
> >
> > Of course shinken would have additionally the nagios compatible "language",
> > in the beginning as the default "language".
> >
> > An important point would be that the direct python code would allow to
> > introduce self defined functions, objects and more, so not every new
> > dynamic feature has to be introduced in the nagios "language", as you
> > can use python code.
> >
> > This would also be a path to merge the daemons config into the main
> > config in the long run.
...
> Sounds possible indeed (in the Shinken internal, the objects are just a
> key=>value dictionary with strings, so we don't really care about the input
> format.). But maybe we should try to find some use cases where this can be
> used, and see if the effort will really solve a real user problem, or if
> the current configuration features are enough.

One minor issue is the following line in our current udp module (see 
https://bitbucket.org/hlauer/shinken2rrd for the code):

template = template.replace('<','{').replace('>','}').replace(r'\n', '\n')

This introduces additional syntax to
get template="{$HOSTNAME$}\nssh {time[0]}" through the nagios config.

Writing such stuff in python directly would be easy and well documented.

> It's true that the nagios configuration style was a problem, but after some
> quick features for simplify the configuration, now it's quite good, even
> for linking lot of objects together (like escalations and hosts for
> example). So let's find something that will change admin habits with this
> new capabilities, and then we can look if we should add a configuration
> overlay (like direct python or jinja, I'm really not a fan of XML and YAML
> :p ).

I'm also no fan of XML, but yaml looks pythonic to me ;-)

BTW, just upgraded from 1.2.1 to 1.2.4 without any problems so far - many
thanks.

Greetings
  Hermann

PS: On the bitbucket repo is now also a plugin for cisco threshold monitoring, 
if
anybody needs

-- 
Netzwerkadministration/Zentrale Dienste, Interdiziplinaeres 
Zentrum fuer wissenschaftliches Rechnen der Universitaet Heidelberg
IWR; INF 368; 69120 Heidelberg; Tel: (06221)54-8236 Fax: -5224
Email: hermann.la...@iwr.uni-heidelberg.de

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Shinken-devel mailing list
Shinken-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/shinken-devel

Reply via email to