[Check_mk (english)] Error creating configuration: ERROR: Duplicate service description

John Rivoire jrivoire at klbgroup.com
Fri Feb 27 14:42:49 CET 2015


Good afternoon,

*i obtain this error when lauching cmk -O:*

*OMD[KLB]:~$ cmk -O*
*Generating configuration for core (type nagios)...Error creating
configuration: ERROR: Duplicate service description 'Pages' for host
'KMUL05'!*
* - 1st occurrance: checktype = printer_pages, item = None*
* - 2nd occurrance: checktype = printer_pages, item = ''*


*i don't understand because for the host KMUL05 i have only one entrie
"Pages"*


*OMD[KLB]:~$ cat  /omd/sites/KLB/etc/nagios/conf.d/check_mk_objects.cfg |
grep -C 5 "printer_pages"*
*define service {*
*  use                           check_mk_passive_perf*
*  host_name                     KMUL01*
*  service_description           Pages*
*  check_interval                1*
*  check_command                 check_mk-printer_pages*
*}*

*define service {*
*  use                           check_mk_passive*
*  host_name                     KMUL01*
*--*
*define service {*
*  use                           check_mk_passive_perf*
*  host_name                     KMUL02*
*  service_description           Pages*
*  check_interval                1*
*  check_command                 check_mk-printer_pages*
*}*

*define service {*
*  use                           check_mk_passive_perf*
*  host_name                     KMUL02*
*--*
*define service {*
*  use                           check_mk_passive_perf*
*  host_name                     KMUL04*
*  service_description           Pages*
*  check_interval                1*
*  check_command                 check_mk-printer_pages*
*}*

*define service {*
*  use                           check_mk_passive_perf*
*  host_name                     KMUL04*
*--*
*define service {*
*  use                          check_mk_passive_perf*
*  host_name                    KMUL05*
*  service_description          Pages*
*  check_interval               1*
*  check_command                check_mk-printer_pages*
*}*


*If i comment the entire part related to this host the error still appear.*

*OMD[KLB]:~$ tail -n 50
 /omd/sites/KLB/etc/nagios/conf.d/check_mk_objects.cfg*

*# ----------------------------------------------------*
*# KMUL05*
*# ----------------------------------------------------*

*#define host {*
*#  host_name                    KMUL05*
*#  use                          check_mk_host*
*#  address                      10.4.1.224*
*#  _TAGS                                dprinter lan printer snmp notos
snmp-only prod wato /wato/france/neuilly-plaisance/printers/*
*#  _FILENAME
 /wato/france/neuilly-plaisance/printers/hosts.mk <http://hosts.mk>*
*#  hostgroups                   check_mk*
*#  contact_groups               all,France*
*#  alias                         kmul05*
*#  icon_image                    printer2.png*
*#}*

*#define service {*
*#  use                          check_mk_passive_perf*
*#  host_name                    KMUL05*
*#  service_description          Memory used*
*#  check_interval               1*
*#  check_command                        check_mk-hr_mem*
*#}*

*#define service {*
*#  use                          check_mk_passive_perf*
*#  host_name                    KMUL05*
*#  service_description          Interface 1*
*#  check_interval               1*
*#  check_command                        check_mk-if*
*#}*

*#define service {*
*#  use                          check_mk_passive*
*#  host_name                    KMUL05*
*#  service_description          Alerts*
*#  check_interval               1*
*#  check_command                        check_mk-printer_alerts*
*#}*

*#define service {*
*#  use                          check_mk_passive_perf*
*#  host_name                    KMUL05*
*#  service_description          Pages*
*#  check_interval               1*
*#  check_command                check_mk-printer_pages*
*#}*


*OMD[KLB]:~$ cmk -O*
*Generating configuration for core (type nagios)...Error creating
configuration: ERROR: Duplicate service description 'Pages' for host
'KMUL05'!*
* - 1st occurrance: checktype = printer_pages, item = None*
* - 2nd occurrance: checktype = printer_pages, item = ''*


 *Any idea of the problem? am i editing the wrong file?*

Thanks in advance

Best regards,

KLB Group signe la Charte de la Diversité
Pour en savoir plus
<http://www.klb-group.com/fr/upload/rh/actualite_agenda/liens/communiqu_de_presse___klb_group_signe_la_charte_de_la_diversit.pdf>


  [image: KLB-Group]
John RIVOIRE
Administrateur Réseaux et Systèmes

jrivoire at klbgroup.com
     www.klb-group.com
2, rue Paul Cezanne • F-93364 Neuilly-Plaisance Cedex
Tel : +33 1 49 44 35 07 - Fax : +33 1 49 44 35 01
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mathias-kettner.de/pipermail/checkmk-en/attachments/20150227/d607405d/attachment-0001.html>


More information about the checkmk-en mailing list