Shows Receiving from only 1
Shows Receiving from only 1
So rebuilt my log server(s) for prod usage now. I can clearly see I am receiving logs from 5 different IPs inthe dashboard but the main page says only receiving from 1 source. Am I missing something or did I find a bug?
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
Re: Shows Receiving from only 1
I am under the impression that where the home screen displays:
It is parsing the last 1 day of activity for the 'host' field. Have you received logs from more than 1 host in the past 1 day?Send More Logs - Receiving logs from X hosts
Re: Shows Receiving from only 1
Just the past hourjolson wrote:I am under the impression that where the home screen displays:It is parsing the last 1 day of activity for the 'host' field. Have you received logs from more than 1 host in the past 1 day?Send More Logs - Receiving logs from X hosts
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
Re: Shows Receiving from only 1
If you select a log event and press 'Raw', does the 'host' field display properly? Has the field been renamed or anything of that nature?
You do not have the required permissions to view the files attached to this post.
Re: Shows Receiving from only 1
Looks just like your picture except mine are IPs but at least 3 or 4 different ones between everything I'm receiving.jolson wrote:If you select a log event and press 'Raw', does the 'host' field display properly? Has the field been renamed or anything of that nature?
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
Re: Shows Receiving from only 1
Bandit,
Are you certain that your timezones are all set up properly on NLS?
We include a script that you can use to change your timezone.
The detected amount of 'hosts' isn't guaranteed to be 100% accurate, but it is supposed to increase beyond one. On the backend, NLS is running a simply 24h query for the different 'hosts' that have logged to NLS - the 'host' field is responsible for this generated number.
Let us know if the timezones were incorrect anywhere - thanks!
Are you certain that your timezones are all set up properly on NLS?
Code: Select all
grep timezone /etc/php.ini
date
ls -l /etc/localtimeCode: Select all
/usr/local/nagioslogserver/scripts/change_timezone.sh -z UTCLet us know if the timezones were incorrect anywhere - thanks!
Re: Shows Receiving from only 1
Code: Select all
[root@iss-chi-nag07 ~]# grep timezone /etc/php.ini
; Defines the default timezone used by the date functions
; http://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone
date.timezone = America/Chicago
[root@iss-chi-nag07 ~]# date
Thu May 14 16:27:45 CDT 2015
[root@iss-chi-nag07 ~]# ls -l /etc/localtime
-rw-r--r--. 1 root root 3543 Apr 29 17:40 /etc/localtime
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
-
Fred Kroeger
- Posts: 588
- Joined: Wed Oct 19, 2011 11:36 pm
- Location: Perth, Western Australia
- Contact:
Re: Shows Receiving from only 1
There's another file that you need to update for timezone - /etc/sysconfig/clock
All my logs copied across OK except the Linux server logs which were always 12hrs behind.
Once I updated that config file all logs are received immediately.
Regards.... Fred
All my logs copied across OK except the Linux server logs which were always 12hrs behind.
Once I updated that config file all logs are received immediately.
Regards.... Fred
Re: Shows Receiving from only 1
It is set properly as well, so that's not itFred Kroeger wrote:There's another file that you need to update for timezone - /etc/sysconfig/clock
All my logs copied across OK except the Linux server logs which were always 12hrs behind.
Once I updated that config file all logs are received immediately.
Regards.... Fred
Code: Select all
[jclark@iss-chi-nag07 ~]$ cat /etc/sysconfig/clock
# The time zone of the system is defined by the contents of /etc/localtime.
# This file is only for evaluation by system-config-date, do not rely on its
# contents elsewhere.
ZONE="America/Chicago"
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
Re: Shows Receiving from only 1
I came in this morning and everything is displaying properly, so can't really test things anymore
But at least its working!
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github