Install new services.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
suryakiran
Posts: 34
Joined: Tue Nov 06, 2018 12:02 pm

Install new services.

Post by suryakiran »

Hi,

We recently installed NagiosXi in our environment. I would like to know the step by step process for adding the services which we are using in our environment.

Our old nagios server is 3.0.6. I have attached the screen shot of services which are enabled for a host. Need the same one here in NagiosXi.
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Install new services.

Post by lmiltchev »

You will need to import your configs from Nagios Core to Nagios XI. Please review our documents on migrating from Nagios Core here:

https://assets.nagios.com/downloads/nag ... ngfromcore

Keep in mind that the order of importing is very important.
example01.PNG
I would recommend that you check the imported configurations after each import, e.g. check configs after importing commands, then again, after importing time periods, etc. After you imported all of your configs, and you don't see any errors when using the Config File Management tool, you can apply configuration.
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
suryakiran
Posts: 34
Joined: Tue Nov 06, 2018 12:02 pm

Re: Install new services.

Post by suryakiran »

Hi,

Thanks for the Doc, However the source is not a nagiosxi . Its an old version Nagios® 3.0.6.
So how can i import it to nagiosxi.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Install new services.

Post by lmiltchev »

So how can i import it to nagiosxi.
Did you review all of the documents under the "Migrating From Nagios Core" section in the Administrators guide?

First, you will need to prep the configs via the Config Import Prep Tool - https://assets.nagios.com/downloads/nag ... p-Tool.pdf

Next, you will need to import these configs to Nagios XI - https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Be sure to check out our Knowledgebase for helpful articles and solutions!
suryakiran
Posts: 34
Joined: Tue Nov 06, 2018 12:02 pm

Re: Install new services.

Post by suryakiran »

Hi,

Done with the steps and got the below error after clicking on verify files.


Error: Unexpected start of object definition in file '/usr/local/nagios/etc/commands.cfg' on line 256. Make sure you close preceding objects before starting a new one.

Nagios Core 4.4.2
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2018-08-16
License: GPL

Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Error: Unexpected start of object definition in file '/usr/local/nagios/etc/commands.cfg' on line 256. Make sure you close preceding objects before starting a new one.
Error processing object config files!


***> One or more problems was encountered while processing the config files...

Check your configuration file(s) to ensure that they contain valid
directives and data definitions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.

I have opened the config file to verify and can see the below.
255
256 define command {
257 command_name check_hpjd
258 command_line $USER1$/check_hpjd -H $HOSTADDRESS$ $ARG1$
259 }
260
261 define command {
262 command_name check_http
263 command_line $USER1$/check_http -I $HOSTADDRESS$ $ARG1$
264 }
265
266 define command {
267 command_name check_http_ilo
268 command_line $USER1$/check_http -I $HOSTNAME$-ilo $ARG1$
269 }
270


Couldn't get the exact issue.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Install new services.

Post by lmiltchev »

Are you missing a closing bracket in the previous command definition (before line 255)?
Be sure to check out our Knowledgebase for helpful articles and solutions!
suryakiran
Posts: 34
Joined: Tue Nov 06, 2018 12:02 pm

Re: Install new services.

Post by suryakiran »

Hi,

Please look at the below output and attachment.

[root@njbbngeoxp3v ~]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg|more

Nagios Core 4.4.2
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2018-08-16
License: GPL

Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
WARNING: Extinfo objects are deprecated and will be removed in future versions
Warning: Duplicate definition found for service 'PING' on host 'cospngeoxpa3v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 133)
Warning: Duplicate definition found for service 'PING' on host 'njbbngeopa4v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 124)
Warning: Duplicate definition found for service 'PING' on host 'cospngeoxpa3v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 115)
Warning: Duplicate definition found for service 'PING' on host 'njbbngeopa4v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 106)
Warning: Duplicate definition found for service 'PING' on host 'cospngeoxpa3v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 97)
Warning: Duplicate definition found for service 'PING' on host 'njbbngeopa4v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 88)
Warning: Duplicate definition found for service 'PING' on host 'cospngeoxpa3v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 79)
Warning: Duplicate definition found for service 'PING' on host 'njbbngeopa4v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 70)
Warning: Duplicate definition found for service 'PING' on host 'cospngeoxpa3v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 61)
Warning: Duplicate definition found for service 'PING' on host 'njbbngeopa4v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 52)
Warning: Duplicate definition found for service 'PING' on host 'cospngeoxpa3v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 43)
Warning: Duplicate definition found for service 'PING' on host 'njbbngeopa4v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 34)
Warning: Duplicate definition found for service 'PING' on host 'cospngeoxpa3v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 25)
Warning: Duplicate definition found for service 'PING' on host 'njbbngeopa4v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 16)
Warning: Duplicate definition found for service 'PING' on host 'njbbngeopa3v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 34)
Warning: Duplicate definition found for service 'PING' on host 'njbbngeopa5v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 34)
Warning: Duplicate definition found for service 'PING' on host 'njbbngeopa8v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 34)
Warning: Duplicate definition found for service 'PING' on host 'njbbngeopa7v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 34)
Warning: Duplicate definition found for service 'PING' on host 'cospngeoxpa4v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 43)
Warning: Duplicate definition found for service 'PING' on host 'cospngeoxpa1v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 43)
Warning: Duplicate definition found for service 'PING' on host 'cospngeoxpa2v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 43)
Warning: Duplicate definition found for service 'PING' on host 'njbbngeopa3v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 52)
Warning: Duplicate definition found for service 'PING' on host 'njbbngeopa5v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 52)
Warning: Duplicate definition found for service 'PING' on host 'njbbngeopa8v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 52)
Warning: Duplicate definition found for service 'PING' on host 'njbbngeopa7v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 52)
Warning: Duplicate definition found for service 'PING' on host 'cospngeoxpa4v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 61)
Warning: Duplicate definition found for service 'PING' on host 'cospngeoxpa1v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 61)
Warning: Duplicate definition found for service 'PING' on host 'cospngeoxpa2v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 61)
Warning: Duplicate definition found for service 'PING' on host 'njbbngeopa3v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 70)
Warning: Duplicate definition found for service 'PING' on host 'njbbngeopa5v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 70)
Warning: Duplicate definition found for service 'PING' on host 'njbbngeopa8v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 70)
Warning: Duplicate definition found for service 'PING' on host 'njbbngeopa7v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 70)
Warning: Duplicate definition found for service 'PING' on host 'cospngeoxpa4v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 79)
Warning: Duplicate definition found for service 'PING' on host 'cospngeoxpa1v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 79)
Warning: Duplicate definition found for service 'PING' on host 'cospngeoxpa2v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 79)
Warning: Duplicate definition found for service 'PING' on host 'njbbngeopa3v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 88)
Warning: Duplicate definition found for service 'PING' on host 'njbbngeopa5v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 88)
Warning: Duplicate definition found for service 'PING' on host 'njbbngeopa8v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 88)
Warning: Duplicate definition found for service 'PING' on host 'njbbngeopa7v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 88)
Warning: Duplicate definition found for service 'PING' on host 'cospngeoxpa4v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 97)
Warning: Duplicate definition found for service 'PING' on host 'cospngeoxpa1v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 97)
Warning: Duplicate definition found for service 'PING' on host 'cospngeoxpa2v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 97)
Warning: Duplicate definition found for service 'PING' on host 'njbbngeopa3v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 106)
Warning: Duplicate definition found for service 'PING' on host 'njbbngeopa5v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 106)
Warning: Duplicate definition found for service 'PING' on host 'njbbngeopa8v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 106)
Warning: Duplicate definition found for service 'PING' on host 'njbbngeopa7v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 106)
Warning: Duplicate definition found for service 'PING' on host 'cospngeoxpa4v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 115)
Warning: Duplicate definition found for service 'PING' on host 'cospngeoxpa1v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 115)
Warning: Duplicate definition found for service 'PING' on host 'cospngeoxpa2v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 115)
Warning: Duplicate definition found for service 'PING' on host 'njbbngeopa3v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 124)
Warning: Duplicate definition found for service 'PING' on host 'njbbngeopa5v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 124)
Warning: Duplicate definition found for service 'PING' on host 'njbbngeopa8v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 124)
Warning: Duplicate definition found for service 'PING' on host 'njbbngeopa7v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 124)
Warning: Duplicate definition found for service 'PING' on host 'cospngeoxpa4v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 133)
Warning: Duplicate definition found for service 'PING' on host 'cospngeoxpa1v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 133)
Warning: Duplicate definition found for service 'PING' on host 'cospngeoxpa2v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 133)
Warning: Duplicate definition found for service 'PING' on host 'njbbngeopa3v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 142)
Warning: Duplicate definition found for service 'PING' on host 'njbbngeopa5v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 142)
Warning: Duplicate definition found for service 'PING' on host 'njbbngeopa8v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 142)
Warning: Duplicate definition found for service 'PING' on host 'njbbngeopa7v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 142)
Warning: Duplicate definition found for service 'PING' on host 'cospngeoxpa4v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 151)
Warning: Duplicate definition found for service 'PING' on host 'cospngeoxpa1v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 151)
Warning: Duplicate definition found for service 'PING' on host 'cospngeoxpa2v' (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 151)
Error: Could not find a service matching host name 'txslrempwp' and description '0' (config file '/usr/local/nagios/etc/serviceextinfo.cfg', starting on line 18135)
Error: Could not expand services specified in extended service info (config file '/usr/local/nagios/etc/serviceextinfo.cfg', starting on line 18135)
Error processing object config files!


***> One or more problems was encountered while processing the config files...

Check your configuration file(s) to ensure that they contain valid
directives and data definitions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.

Moderator's Note: The profile was removed from the public forum.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Install new services.

Post by lmiltchev »

Error: Could not find a service matching host name 'txslrempwp' and description '0' (config file '/usr/local/nagios/etc/serviceextinfo.cfg', starting on line 18135)
Error: Could not expand services specified in extended service info (config file '/usr/local/nagios/etc/serviceextinfo.cfg', starting on line 18135)
These errors don't make any sense. The "serviceextinfo.cfg" is completely empty, and the 'txslrempwp' host is nowhere to be found in the profile...

After you imported your configs, did you apply configuration? You didn't try to manage configs from the command line, have you? All of the configurations should be done from the GUI (in the CCM), unless:

- you are using some kind of scripting solution to create configs, dump them in the import directory, and running reconfigure_nagios.sh
- managing objects from the command line via the REST API
- managing objects "manually" by placing the configs in the "static" directory

Do the following:

1. Make a backup of your configs
2. Go to the CCM > Tools > Config File Management and click on Delete Files, Write Configs, and Verify Files in this exact order. Examine the output for any errors. Nagios cannot start/restart with config errors. Warnings are ok, even though you should try to clean them up later, when everything is running.
3. If you see any errors in step 2, go back to the CCM, and fix them there. Check configuration again.
4. If you don't have any errors, apply configuration.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked