Nagios xi import from nagios core
Posted: Wed Sep 09, 2015 8:23 am
Hello everybody,
I'm trying to import an old nagios 3.0.6 configuration in nagios xi using the importing tools. I'm following this guide:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
After preparing all files and following this sequence: commands -> timeperiods -> contacttemplates -> contacts -> contactgroups ->
hosttemplates -> hosts -> hostgroups -> servicetemplates -> services -> servicegroups
I had some trouble with "contacttemplates". Got this error:
Duplicate entry '1' for key 'config_name'Entry name::basic-contact inside tbl_contacttemplate successfully inserted
Entry contact_name:: inside tbl_contact could not be inserted: Duplicate entry '1' for key 'config_name'
Entry contact_name:: inside tbl_contact could not be inserted: Duplicate entry '1' for key 'config_name'
1 items failed to import successfully
The file I'm trying to import is:
cat contacts-TEMPLATE.cfg
define contact{
name basic-contact
host_notification_period 24x7
service_notification_period 24x7
host_notification_options d,u,r,f,s
service_notification_options w,u,c,r,f,s
retain_status_information 0
retain_nonstatus_information 0
can_submit_commands 0
register 0
}
define contact{
use basic-contact
name email-contact
host_notification_commands host-notify-by-email
service_notification_commands service-notify-by-email
}
define contact{
use basic-contact
name sms-contact
host_notification_commands host-notify-by-sms
service_notification_commands service-notify-by-sms
}
The nagios xi I'm using is just installed and has not customization jet.
Do you have any idea?
What version of Nagios XI are you using? Nagios XI 2014R2.7
Linux Distribution and version? Red Hat Enterprise Linux Server release 6.7 (Santiago)
32 or 64bit? 64
VMware Image or Manual Install of XI? offline install with rpms
Thanks in advance
I'm trying to import an old nagios 3.0.6 configuration in nagios xi using the importing tools. I'm following this guide:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
After preparing all files and following this sequence: commands -> timeperiods -> contacttemplates -> contacts -> contactgroups ->
hosttemplates -> hosts -> hostgroups -> servicetemplates -> services -> servicegroups
I had some trouble with "contacttemplates". Got this error:
Duplicate entry '1' for key 'config_name'Entry name::basic-contact inside tbl_contacttemplate successfully inserted
Entry contact_name:: inside tbl_contact could not be inserted: Duplicate entry '1' for key 'config_name'
Entry contact_name:: inside tbl_contact could not be inserted: Duplicate entry '1' for key 'config_name'
1 items failed to import successfully
The file I'm trying to import is:
cat contacts-TEMPLATE.cfg
define contact{
name basic-contact
host_notification_period 24x7
service_notification_period 24x7
host_notification_options d,u,r,f,s
service_notification_options w,u,c,r,f,s
retain_status_information 0
retain_nonstatus_information 0
can_submit_commands 0
register 0
}
define contact{
use basic-contact
name email-contact
host_notification_commands host-notify-by-email
service_notification_commands service-notify-by-email
}
define contact{
use basic-contact
name sms-contact
host_notification_commands host-notify-by-sms
service_notification_commands service-notify-by-sms
}
The nagios xi I'm using is just installed and has not customization jet.
Do you have any idea?
What version of Nagios XI are you using? Nagios XI 2014R2.7
Linux Distribution and version? Red Hat Enterprise Linux Server release 6.7 (Santiago)
32 or 64bit? 64
VMware Image or Manual Install of XI? offline install with rpms
Thanks in advance