Netsight NAC Manager log timestamps

  • 0
  • 1
  • Problem
  • Updated 3 years ago
  • Solved
When I set time with NTP there is no matter what timezone I set (dateconfig command), the (Console or NAC Manager) log's  timestamps do not change their timezone. The time displayed with "date" command and timestamps in logs are in different timezones. No matter what time zone I set up, the logs are written in the same.
"date" command displayed the correct time, which varies with the change of timezone.

If I set the time manually (without using the NTP), everything works correctly.
Photo of Mikhail

Mikhail

  • 202 Points 100 badge 2x thumb

Posted 3 years ago

  • 0
  • 1
Photo of Ronald Dvorak

Ronald Dvorak, Embassador

  • 44,984 Points 20k badge 2x thumb
Hi Mikhail,

so both are running on VM ?

I think I've run into the same issue and as far as I'd remember it was a problem on the main VM server.
For me it looked like that the main VM server has time priority over the settings of the VMs running on the server.
After some try&error I was able to have it working.

Below my current settings.... could be that someone with more VM experience could give us a better explanation what the issue is. 

-Ron

Photo of Ronald Dvorak

Ronald Dvorak, Embassador

  • 44,984 Points 20k badge 2x thumb
You'd check the NTP status on the Netsight/NAC with "ntpq -p"
Here my output...

Photo of Bharathiraja, Suresh

Bharathiraja, Suresh, Employee

  • 3,442 Points 3k badge 2x thumb
Hi Mikhail,

could you tell me what is the NAC version which you are using now ?

Thanks,
Suresh.B
Photo of Mikhail

Mikhail

  • 202 Points 100 badge 2x thumb
Thanks.

I'm using version 6.2.199 for VMWARE. I also tried 6.2.224 - same result.

I found that the timezone of timestamps in the logs depends on the timezone of the local computer running the NAC Manager.
However, the time on the computer and log's timestamps differs by one hour, no matter what timezone I set up.

As advised above, I checked the time on VMWare server. on VmWare, NetSight and NAC servers, on the local computer the same time is configured from a single NTP source. But the logs of NAC Manager shows time, differing by one hour forward.

Can I fix it?
Is it possible to configure so that logs timestamps timezone was configured on the server?
Photo of Mikhail

Mikhail

  • 202 Points 100 badge 2x thumb
It seems that this is a problem with some time zones (specifically - Russian's timezones).If the local computer timezone sets to Moscow (UTC +3) or Kaliningrad (UTC +2), the timestamp of the logs in NAC Manager are written to the time shift one hour forward.
If I will set the time zone, such as Baghdad (UTC +3) or Tbilisi (UTC +2), time shown in a MACMgr logs and the computer are the same.

Version Netsight - 6.2.224
Client works on Windows 7
(Edited)
Photo of Drew C.

Drew C., Community Manager

  • 37,308 Points 20k badge 2x thumb
Hi Mikhail,
I'm guessing this is related to the Russian timezone changes that took place about this time last year.  I just logged into a Netsight server in the lab (6.2.0.211) and checked the tzdata version:
$ dpkg -s tzdata | grep Version
Version: 2012b-1


My other Ubuntu servers are 2015f-0ubuntu0.14.04
I don't know if I should have done this, but I updated the tzdata package - it seems okay afterwards:
$ apt-get install tzdata

Now my tzdata version on the netsight server shows:
Version: 2015f-0ubuntu0.12.04

I don't know if this is recommended, but I suppose you can try to update your installation as I did.
Meanwhile, we should probably update it in the Netsight installer so this doesn't happen.

-Drew
(Edited)