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

Andreas Döhler andreas.doehler at gmail.com
Fri Feb 27 14:48:44 CET 2015


If you get an error with "cmk -O" you cannot look at the configuration file
as it is not the new version.
You must look at your services of this host -->
/omd/sites/<sitename>/var/check_mk/autochecks/KMUL05.mk
If you see there two services with name "pages" then you have found you
problem.
But now you must search for the rule that is allowing these two services to
be found :)

Best regards
Andreas

John Rivoire <jrivoire at klbgroup.com> schrieb am Fr., 27. Feb. 2015 um
14:44 Uhr:

> 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
>     _______________________________________________
> checkmk-en mailing list
> checkmk-en at lists.mathias-kettner.de
> http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mathias-kettner.de/pipermail/checkmk-en/attachments/20150227/1c150fd7/attachment.html>


More information about the checkmk-en mailing list