[Check_mk (english)] how to configure xml file to use a new pnp4nagios template?

By default, under path “/var/pnp4nagios/perfdata” the xml file of the check “if64” uses template “check_mk-if64”. For some reason, I created a new template “new_check_mk-if64”.

How can I force current xml files to point to the new template file “new_check_mk-if64”?

Also, I need newly added switch devices to also use the new template“new_check_mk-if64”.

Thank you.

Hi you can’t do that.
All services of same check type use the same template.

If you need to change the template change the “original” template and be sure to have done that when you update you CMK installation.

In OMD env that would be much easier as there’re two folder structures: one for shipped files, one for customized/added files; updates only update shipped files…

Regards,

Marcel

···

徐健 xu.jian@shfe.com.cn schrieb am Do., 24. März 2016 um 10:00 Uhr:

By default, under path “/var/pnp4nagios/perfdata” the xml file of the check “if64” uses template “check_mk-if64”. For some reason, I created a new template “new_check_mk-if64”.

How can I force current xml files to point to the new template file “new_check_mk-if64”?

Also, I need newly added switch devices to also use the new template“new_check_mk-if64”.

Thank you.


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

Hi ,

Thank you very much for the reply.
J

Would you please let me know below questions:

How does the check“ if64”
know that it should use the template “check_mk-if64” originally?

If I create a new check “new-check”, how can I configure the check to use a template?

Regards,

Denis

···

Hi you can’t do that.

All services of same check type use the same template.

If you need to change the template change the “original” template and be sure to have done that when you update you CMK installation.

In OMD env that would be much easier as there’re two folder structures: one for shipped files, one for customized/added files; updates only update shipped files…

Regards,

Marcel

徐健xu.jian@shfe.com.cn schrieb am Do., 24. März 2016 um 10:00 Uhr:

By default, under path “/var/pnp4nagios/perfdata” the xml file of the check “if64” uses template “check_mk-if64”. For some reason, I created a new template “new_check_mk-if64”.

How can I force current xml files to point to the new template file “new_check_mk-if64”?

Also, I need newly added switch devices to also use the new template“new_check_mk-if64”.

Thank you.


checkmk-en mailing list
checkmk-en@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

All check_mk checks use templates (if any) called “check_mk-CHECKNAME.php”. If your check’s named “marcel” the template’s named “check_mk-marcel.php”.

Regards,
Marcel

···

徐健 xu.jian@shfe.com.cn schrieb am Fr., 25. März 2016 01:29:

Hi ,

Thank you very much for the reply.
J

Would you please let me know below questions:

How does the check“ if64”
know that it should use the template “check_mk-if64” originally?

If I create a new check “new-check”, how can I configure the check to use a template?

Regards,

Denis

发件人: Marcel Schulte [mailto:schulte.marcel@gmail.com]
发送时间: 2016年3月24日 17:14
收件人: 徐健; checkmk-en@lists.mathias-kettner.de
主题: Re: [Check_mk (english)] how to configure xml file to use a new pnp4nagios template?

Hi you can’t do that.

All services of same check type use the same template.

If you need to change the template change the “original” template and be sure to have done that when you update you CMK installation.

In OMD env that would be much easier as there’re two folder structures: one for shipped files, one for customized/added files; updates only update shipped files…

Regards,

Marcel

徐健 xu.jian@shfe.com.cn schrieb am Do., 24. März 2016 um 10:00 Uhr:

By default, under path “/var/pnp4nagios/perfdata” the xml file of the check “if64” uses template “check_mk-if64”. For some reason, I created a new template “new_check_mk-if64”.

How can I force current xml files to point to the new template file “new_check_mk-if64”?

Also, I need newly added switch devices to also use the new template“new_check_mk-if64”.

Thank you.


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

Thank you very much indeed. That’s exactly what I want.
J

徐健

上海期货交易所
技术中心

Tel:021-20616282

Email:xu.jian@shfe.com.cn

···

徐健xu.jian@shfe.com.cn schrieb am Fr., 25. März 2016 01:29:

Hi ,

Thank you very much for the reply.
J

Would you please let me know below questions:

How does the check“ if64”
know that it should use the template “check_mk-if64” originally?

If I create a new check “new-check”, how can I configure the check to use a template?

Regards,

Denis

发件人: Marcel Schulte [mailto:schulte.marcel@gmail.com]
发送时间: 2016年3月24日 17:14
收件人: 徐健;
checkmk-en@lists.mathias-kettner.de
主题: Re: [Check_mk (english)] how to configure xml file to use a new pnp4nagios template?

Hi you can’t do that.

All services of same check type use the same template.

If you need to change the template change the “original” template and be sure to have done that when you update you CMK installation.

In OMD env that would be much easier as there’re two folder structures: one for shipped files, one for customized/added files; updates only update shipped files…

Regards,

Marcel

徐健xu.jian@shfe.com.cn schrieb am Do., 24. März 2016 um 10:00 Uhr:

By default, under path “/var/pnp4nagios/perfdata” the xml file of the check “if64” uses template “check_mk-if64”. For some reason, I created a new template “new_check_mk-if64”.

How can I force current xml files to point to the new template file “new_check_mk-if64”?

Also, I need newly added switch devices to also use the new template“new_check_mk-if64”.

Thank you.


checkmk-en mailing list
checkmk-en@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en