Added host but no data. Tests pass.

This support forum board is for questions relating to Nagios Fusion.
dfmco
Posts: 257
Joined: Wed Dec 04, 2013 11:05 am

Added host but no data. Tests pass.

Post by dfmco »

I have a Nagios server on the same subnet as the Fusion server but I am unable to get any data from it.

I can telnet to port 80 and port 443 and there are no firewall rules blocking.

My auth_subsys.log contains this same line thousands of times:
PHP Notice: Undefined variable: auth_interval in /usr/local/nagiosfusion/cron/auth_subsys.php on line 25
That file is pertty much blank (just a header at the top and @ signs on each line below).

I have several other server that work fine. I have removed and re-added the problem server with no luck.
You do not have the required permissions to view the files attached to this post.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Added host but no data. Tests pass.

Post by eloyd »

I have no suggestions but I'm replying to this because I'm interested in the outcome and I track dozens of forum postings. So it's easier for me to see the ones I've replied to rather than just the ones I'm tracking. :-)
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
kyang

Re: Added host but no data. Tests pass.

Post by kyang »

Are the other servers that work fine also on the same subnet?

What version of fusion are you on? 4.0.1?

Can you post the output of the command below?

Code: Select all

cat /etc/cron.d/nagiosfusion
dfmco
Posts: 257
Joined: Wed Dec 04, 2013 11:05 am

Re: Added host but no data. Tests pass.

Post by dfmco »

So I updated to 4.01 and now all of my servers are offline! Only 1 was not reporting beforehand. I get "no servers have checked in with data yet" for all of them now.

#
# /etc/cron.d/nagiosfusion: crontab fragment for nagiosfusion
#

*/5 * * * * nagios /usr/bin/php -q /usr/local/nagiosfusion/cron/dbmaint_subsys.php >>/usr/local/nagiosfusion/var/log/dbmaint_subsys.log 2>&1

* * * * * nagios /usr/bin/php -q /usr/local/nagiosfusion/cron/auth_subsys.php --max-time=60 >>/usr/local/nagiosfusion/var/log/auth_subsys.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosfusion/cron/cmd_subsys.php --max-time=60 >>/usr/local/nagiosfusion/var/log/cmd_subsys.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosfusion/cron/log_subsys.php --max-time=60 >>/usr/local/nagiosfusion/var/log/log_subsys.log 2>&1
* * * * * nagios /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
* * * * * nagios /usr/bin/php -q /usr/local/nagiosfusion/cron/sysstat_subsys.php --max-time=60 >>/usr/local/nagiosfusion/var/log/sysstat_subsys.log 2>&1

Before the upgrade, I was also noticing that none of the data was current for any of the monitored servers. The data was hours or weeks old.
kyang

Re: Added host but no data. Tests pass.

Post by kyang »

Can you also post this output for these?

Code: Select all

tail -n 100 /usr/local/nagiosfusion/var/log/poll* >/tmp/info.txt
ps -ef --cols=300 >>/tmp/info.txt
Is your fusion server in the correct timezone? --> Home --> nagiosadmin --> Account Preferences --> Timezone
dfmco
Posts: 257
Joined: Wed Dec 04, 2013 11:05 am

Re: Added host but no data. Tests pass.

Post by dfmco »

File attached. We are in the correct time zone and the server time is correct.
You do not have the required permissions to view the files attached to this post.
bheden
Product Development Manager
Posts: 179
Joined: Thu Feb 13, 2014 9:50 am
Location: Nagios Enterprises

Re: Added host but no data. Tests pass.

Post by bheden »

My auth_subsys.log contains this same line thousands of times:
PHP Notice: Undefined variable: auth_interval in /usr/local/nagiosfusion/cron/auth_subsys.php on line 25
That file is pertty much blank (just a header at the top and @ signs on each line below).
Which file is pretty much blank? What @ signs?

Your poll subsys logs look a bit wonky to me. First - let's remove the original server that was having the problem.

Then, run the following command:

Code: Select all

/usr/local/nagiosfusion/scripts/truncate_polled.php
Did you happen to tweak your auth interval settings for any of the servers? I am the Fusion4 developer and haven't seen this yet.

Anyway - once you deleted the server and truncated the polled tables (in that order) - do you see data?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Nagios Enterprises
Senior Developer
dfmco
Posts: 257
Joined: Wed Dec 04, 2013 11:05 am

Re: Added host but no data. Tests pass.

Post by dfmco »

That fixed the ones that were broken before. Is there anything I should try before adding the problem child back to the mix? This was an out of the box install (OVA) and I added all of the servers at the same time. The problem child always showed all zeros in the tactical overview but in some of the reports, it looked like it saw stuff was down but it would not report anything on the tactical overview (not even host and service counts). I removed and re-added but the problem did not change.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Added host but no data. Tests pass.

Post by dwhitfield »

dfmco wrote:So I updated to 4.01 and now all of my servers are offline!
You say later in the thread that this was an OVA. Did you actually upgrade the same system or did you download a new OVA?

I don't think there's anything to do before adding the problematic one back. Did you double-check the username and password for that server?
dfmco
Posts: 257
Joined: Wed Dec 04, 2013 11:05 am

Re: Added host but no data. Tests pass.

Post by dfmco »

I upgraded from 4.0.0 to 4.0.1 using the CLI.

I added it back in and it works now. Since I added and removed on 4.00 and that did not fix the issue, was there any patch in 4.01 that made it work this time? Just wanted to know for future reference.

Thanks for your help!
Locked