Page 2 of 2
Re: Fusion 4 data pulling issue from nagios core 4.3.2
Posted: Thu Aug 31, 2017 4:37 pm
by bheden
None of your cron jobs are running - not only that but it looks like the last time any system grabbed any data was August 16th.
When did you install Fusion 4? Let me see the contents of /etc/cron.d/nagiosfusion.
If you have an install.log or an upgrade.log that would be good, too.
Can I get a screen shot of your entire "Manage Servers" page, as well? And I mean the entire page - all the way from the lower left hand corner including the version info and the upper right hand corner including the logout link.
Thanks.
Re: Fusion 4 data pulling issue from nagios core 4.3.2
Posted: Thu Aug 31, 2017 5:46 pm
by jiec168
Thank you all for your help. It works now.
With the hints from @bheden, I checked the cron log and found
Aug 31 15:35:01 smf-tools-011 CROND[12985]: (CRON) ERROR chdir failed (/home/nagios): No such file or directory
So I mkdir /home/nagios subdir and chown it to nagios:nagios. Immediately I could see the followings in the /var/log/cron
Aug 31 15:36:01 smf-tools-011 CROND[13013]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosfusion/cron/cmd_subsys.php --max-time=60 >>/usr/local/nagiosfusion/var/log/cmd_subsys.log 2>&1)
Aug 31 15:36:01 smf-tools-011 CROND[13014]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosfusion/cron/log_subsys.php --max-time=60 >>/usr/local/nagiosfusion/var/log/log_subsys.log 2>&1)
Aug 31 15:36:01 smf-tools-011 CROND[13017]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosfusion/cron/poll_subsys.php --max-time=60 --master-poll >>/usr/local/nagiosfusion/var/log/poll_subsys.log 2>&1)
Aug 31 15:36:01 smf-tools-011 CROND[13018]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosfusion/cron/auth_subsys.php --max-time=60 >>/usr/local/nagiosfusion/var/log/auth_subsys.log 2>&1)
Aug 31 15:36:01 smf-tools-011 CROND[13019]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosfusion/cron/sysstat_subsys.php --max-time=60 >>/usr/local/nagiosfusion/var/log/sysstat_subsys.log 2>&1)
Re: Fusion 4 data pulling issue from nagios core 4.3.2
Posted: Fri Sep 01, 2017 6:36 am
by bheden
Glad to hear it - it's a weird that the nagios user didn't have a home directory, though. I'm guessing this was an upgrade from a previous version of Fusion?
Re: Fusion 4 data pulling issue from nagios core 4.3.2
Posted: Fri Sep 01, 2017 11:15 am
by jiec168
bheden wrote:Glad to hear it - it's a weird that the nagios user didn't have a home directory, though. I'm guessing this was an upgrade from a previous version of Fusion?
No, it was a first time clean installation. I was following all the instructions. I am curious too why the /home/nagios directory was not created since nagios user and group were created during the installation process.