Unable to add new hosts to configuration
Unable to add new hosts to configuration
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.
This also happens when i try to apply configuration changes on local host.
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Unable to add new hosts to configuration
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
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
Last edited by dwhitfield on Mon Apr 24, 2017 12:48 pm, edited 1 time in total.
Reason: pm received
Reason: pm received
Re: Unable to add new hosts to configuration
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
Two posts, so you should be good now. Please post back once you have sent it.
Former Nagios employee
Re: Unable to add new hosts to configuration
Pm'd profile, sending php dump here in a second
EDIT: php dump sent
EDIT: php dump sent
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Unable to add new hosts to configuration
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
UPDATE: PHP output received and shared with techs
Last edited by dwhitfield on Mon Apr 24, 2017 12:57 pm, edited 1 time in total.
Reason: pm received
Reason: pm received
Re: Unable to add new hosts to configuration
Sent it to the right person this time.
Re: Unable to add new hosts to configuration
it seems as if i make any changes, and then run then the changes actually take place.
Code: Select all
su nagios -c '/usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php'-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Unable to add new hosts to configuration
It sounds like you need to run service crond restart
If that doesn't do it, please post the output of the following:
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
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?
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?