Page 1 of 2

Unable to add new hosts to configuration

Posted: Mon Apr 24, 2017 10:40 am
by foraynag
Trying to add a new host to the configuration results in sitting at the "Waiting for configuration verification" indefinitely.

This also happens when i try to apply configuration changes on local host.

Re: Unable to add new hosts to configuration

Posted: Mon Apr 24, 2017 12:01 pm
by dwhitfield
Please run su nagios -c '/usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php' and then try to apply the configuration.

Please send any output. Also, 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.

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.

UPDATE: Profile received and shared with techs

Re: Unable to add new hosts to configuration

Posted: Mon Apr 24, 2017 12:41 pm
by foraynag
Would love to send a message, but I'm too new I think. What the amount of posts\time that I need?

Re: Unable to add new hosts to configuration

Posted: Mon Apr 24, 2017 12:43 pm
by tmcdonald
Two posts, so you should be good now. Please post back once you have sent it.

Re: Unable to add new hosts to configuration

Posted: Mon Apr 24, 2017 12:46 pm
by foraynag
Pm'd profile, sending php dump here in a second

EDIT: php dump sent

Re: Unable to add new hosts to configuration

Posted: Mon Apr 24, 2017 12:52 pm
by dwhitfield
Not seeing the PHP output. Did you try to attach that to a post here or PM it? I did get the profile though.

UPDATE: PHP output received and shared with techs

Re: Unable to add new hosts to configuration

Posted: Mon Apr 24, 2017 12:54 pm
by foraynag
Sent it to the right person this time.

Re: Unable to add new hosts to configuration

Posted: Mon Apr 24, 2017 2:54 pm
by foraynag
it seems as if i make any changes, and then run

Code: Select all

su nagios -c '/usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php'
then the changes actually take place.

Re: Unable to add new hosts to configuration

Posted: Mon Apr 24, 2017 3:40 pm
by dwhitfield
It sounds like you need to run service crond restart

If that doesn't do it, please post the output of the following:

Code: Select all

cat /etc/cron.d/nagiosxi
tail -25 /var/log/cron
chage -l nagios

Re: Unable to add new hosts to configuration

Posted: Tue Apr 25, 2017 8:41 am
by foraynag
aha, CROND[6246]: (CRON) ERROR chdir failed (/home/nagios): No such file or directory.

Created a homedir for nagios in /opt. After that, is there anything else that could have been affected by it not having a homedir that i should take a look into?