PDA

View Full Version : Working with templates


Jogarem
01-16-2008, 04:49 PM
Hi,

I work much with templates.

But when I enter arguments within the template the arguments were
NOT usable within my created service.

Example:

Templatename = PING
Command = check_graph_ping
Args = !1500,40%!4000,80%

When I create a service with this template above then the service output
gives always an error (bad initialization of thresholds).

The service itself has this config:
Command = EMPTY
Args = EMPTY

That's ok but only when I enter arguments in the 'Args' field it begin to work!
I do NOT need to choose the command!
So it works only when I enter the following config in the service:

Command = EMPTY
Args = !1500,40%!4000,80%

I don't want to enter Args everytime for every service.
I want to enter arguments in the template only and not in the service itself.

My Environment:
Srv iS.........Ubuntu 6 / Centreon 1.4.2.1 / MySQL 5 / Nagios 2.5

Any ideas?

## EDIT ##
And another thing (which is very bad) is that the icon which is set in the relation tab of the template is ignored! :( :(

.

voodooo
01-18-2008, 02:56 PM
Yes, i have the same problem. If you apply a serivce template there's no way of parsing arguments to the check command.

Regards.

Jogarem
01-18-2008, 03:16 PM
Yes, i have the same problem. If you apply a serivce template there's no way of parsing arguments to the check command.

Regards.

bad bad... :(
Can you confirm the same when setting an icon ?

voodooo
01-18-2008, 05:28 PM
I have no icon's configured

Jogarem
01-18-2008, 05:56 PM
I have no icon's configured

but you could try it :rolleyes:

- go (in the template) to the host extended tab and choose an icon.
- export config.
- This icon should be used in the statusmap so open the statusmap
and see if the icon is set or not..

voodooo
01-18-2008, 07:09 PM
Noup, no icon :/

xspoon
01-18-2008, 09:07 PM
Hello,

you should probably open 2 bugs reports unless somebody has a quick fix for this.

There is no reason why this shouldn't be fixable, as I have already worked with fully configured services templates before (in some previous version of oreon.)

Jogarem
01-21-2008, 01:36 PM
Hello,

you should probably open 2 bugs reports unless somebody has a quick fix for this.

There is no reason why this shouldn't be fixable, as I have already worked with fully configured services templates before (in some previous version of oreon.)

Hi xspoon,

thanks I have opened two bug reports (FS#460, FS#461) for that..

rom
02-16-2008, 06:07 PM
Hi,

I work much with templates.

But when I enter arguments within the template the arguments were
NOT usable within my created service.

Example:

Templatename = PING
Command = check_graph_ping
Args = !1500,40%!4000,80%

When I create a service with this template above then the service output
gives always an error (bad initialization of thresholds).

The service itself has this config:
Command = EMPTY
Args = EMPTY

That's ok but only when I enter arguments in the 'Args' field it begin to work!
I do NOT need to choose the command!
So it works only when I enter the following config in the service:

Command = EMPTY
Args = !1500,40%!4000,80%

I don't want to enter Args everytime for every service.
I want to enter arguments in the template only and not in the service itself.

My Environment:
Srv iS.........Ubuntu 6 / Centreon 1.4.2.1 / MySQL 5 / Nagios 2.5

Any ideas?

## EDIT ##
And another thing (which is very bad) is that the icon which is set in the relation tab of the template is ignored! :( :(

.

Commit for 1.4.2.4 and 2.x for the arg problem.
I work soon on extended info of template definition