When using the check_file_age command, it returns the file's wrong time, causing the parameter to not work correctly.
The server timings are all correct, so I think Nagios itself uses a Timezone.
I've tried setting the # TIMEZONE OFFSET section at the nagios.cfg but it doesn't seem to take effect.
I'm at Brazil btw UTC -3.
Check_file_age returns wrong date
Re: Check_file_age returns wrong date
What version of nsclient++ are you running? You can find the version listed next to it in control panel > programs and features.
I found this:
https://forums.nsclient.org/t/timezone- ... kfile/2194
I found this:
https://forums.nsclient.org/t/timezone- ... kfile/2194
-
- Posts: 40
- Joined: Tue Oct 23, 2018 1:22 pm
Re: Check_file_age returns wrong date
I have the latest version: 0.5.2035ssax wrote:What version of nsclient++ are you running? You can find the version listed next to it in control panel > programs and features.
I found this:
https://forums.nsclient.org/t/timezone- ... kfile/2194
The post you sent is very old, did they not fix it yet?
-
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Check_file_age returns wrong date
@BrunoLosse1, Looks like they added the support for file dates in local time in 2015:
filter
Here are some filter options you can use:2015-04-08 Michael Medin
check_files: #139 Added support for showing file dates in local time (not just UTC)
filter
https://docs.nsclient.org/reference/win ... heck_filescreation_l When file was created (local time)
creation_u When file was created (UTC)
access_l Last access time (local time)
access_u Last access time (UTC)
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.