Nagios XI AWS public image issues

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
bpepaala
Posts: 7
Joined: Tue May 23, 2017 2:39 pm

Nagios XI AWS public image issues

Post by bpepaala »

Hi

i have installed Nagios AWS Public Image (766915741798) in AWS . after installing ,i can not able to start the nagiosxi and errors are below:

Starting nagios:
Nagios Core 4.2.4
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 12-07-2016
License: GPL

Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Error: Cannot open config file '/usr/local/nagios/etc/contacttemplates.cfg' for reading: No such file or directory
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 defintions. 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.

Can you please help me in fixing this?
bpepaala
Posts: 7
Joined: Tue May 23, 2017 2:39 pm

Re: Nagios XI AWS public image issues

Post by bpepaala »

Nagios log:

[1507223420] Nagios 4.2.4 starting... (PID=1282)
[1507223420] Local time is Thu Oct 05 13:10:20 EDT 2017
[1507223420] LOG VERSION: 2.0
[1507223420] qh: Socket '/usr/local/nagios/var/rw/nagios.qh' successfully initialized
[1507223420] qh: core query handler registered
[1507223420] nerd: Channel hostchecks registered successfully
[1507223420] nerd: Channel servicechecks registered successfully
[1507223420] nerd: Channel opathchecks registered successfully
[1507223420] nerd: Fully initialized and ready to rock!
[1507223420] wproc: Successfully registered manager as @wproc with query handler
[1507223420] wproc: Registry request: name=Core Worker 1284;pid=1284
[1507223420] wproc: Registry request: name=Core Worker 1286;pid=1286
[1507223420] wproc: Registry request: name=Core Worker 1285;pid=1285
[1507223420] wproc: Registry request: name=Core Worker 1283;pid=1283
[1507223420] ndomod: NDOMOD 2.1.2 (11-14-2016) Copyright (c) 2009 Nagios Core Development Team and Community Contributors
[1507223420] ndomod: Could not open data sink! I'll keep trying, but some output may get lost...
[1507223420] ndomod registered for process data
[1507223420] ndomod registered for log data'
[1507223420] ndomod registered for system command data'
[1507223420] ndomod registered for event handler data'
[1507223420] ndomod registered for notification data'
[1507223420] ndomod registered for comment data'
[1507223420] ndomod registered for downtime data'
[1507223420] ndomod registered for flapping data'
[1507223420] ndomod registered for program status data'
[1507223420] ndomod registered for host status data'
[1507223420] ndomod registered for service status data'
[1507223420] ndomod registered for adaptive program data'
[1507223420] ndomod registered for adaptive host data'
[1507223420] ndomod registered for adaptive service data'
[1507223420] ndomod registered for external command data'
[1507223420] ndomod registered for aggregated status data'
[1507223420] ndomod registered for retention data'
[1507223420] ndomod registered for contact data'
[1507223420] ndomod registered for contact notification data'
[1507223420] ndomod registered for acknowledgement data'
[1507223420] ndomod registered for state change data'
[1507223420] ndomod registered for contact status data'
[1507223420] ndomod registered for adaptive contact data'
[1507223420] Event broker module '/usr/local/nagios/bin/ndomod.o' initialized successfully.
[1507223420] Error: Cannot open config file '/usr/local/nagios/etc/contacttemplates.cfg' for reading: No such file or directory
[1507223420] Bailing out due to one or more errors encountered in the configuration files. Run Nagios from the command line with the -v option to verify your config before restarting. (PID=1282)
[1507223420] Event broker module 'NERD' deinitialized successfully.
[1507223420] ndomod: Shutdown complete.
[1507223420] Event broker module '/usr/local/nagios/bin/ndomod.o' deinitialized successfully.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Nagios XI AWS public image issues

Post by dwhitfield »

Please post the output of history command in a code block. Also, how exactly did you install XI?

Also, what is the output of ll /usr/local/nagios/etc/contacttemplates.cfg?

It's not clear at present when you don't have contacttemplates.cfg.


Can you PM me your Profile? You can download it by going to Admin > System Config > System Profile and click the ***Download Profile*** button towards the top. If for whatever reason you *cannot* download the profile, please put the output of View System Info (5.3.4+, Show Profile if older) in the thread (that will at least get us some info). This will give us access to many of the logs we would otherwise ask for individually. If security is a concern, you can unzip the profile take out what you like, and then zip it up again. We may end up needing something you remove, but we can ask for that specifically.

You can also generate a profile manually using the script at /usr/local/nagiosxi/html/includes/components/profile/getprofile.sh

That should generate a profile in /usr/local/nagiosxi/var/components/ which you can get off the server with an application such as FileZilla.

After you PM the profile, please update this thread. Updating this thread is the only way for it to show back up on our dashboard.

If you get an error that PROFILE BUILD FAILED, please see https://support.nagios.com/kb/article.p ... ategory=44
Locked