Check_file_age returns error

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Check_file_age returns error

Post by cdienger »

Also, you mentioned that the check was successful for one directory even if it was empty but the last test you ran shows there was a file:

33181067405936000173550020004117741291520250.xml 2018-Oct-29 19:17:23

Can you run the tests again but this time make sure both directories are empty so we get a valid comparision?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
BrunoLosse1
Posts: 40
Joined: Tue Oct 23, 2018 1:22 pm

Re: Check_file_age returns error

Post by BrunoLosse1 »

Here's the log file attached.
Attachments
nsclient.log
(1020.47 KiB) Downloaded 250 times
BrunoLosse1
Posts: 40
Joined: Tue Oct 23, 2018 1:22 pm

Re: Check_file_age returns error

Post by BrunoLosse1 »

cdienger wrote:Also, you mentioned that the check was successful for one directory even if it was empty but the last test you ran shows there was a file:

33181067405936000173550020004117741291520250.xml 2018-Oct-29 19:17:23

Can you run the tests again but this time make sure both directories are empty so we get a valid comparision?
It says the name of the last file in the directory.
I don't know if it is supposed to do that by the way.

I have noticed that the time of the file is 3 hours foward, it might be the reason I'm experiencing this issue.
The problem is that I don't know where my timezone may be misconfigured.
At the Linux server, the Windows Server and the Web interface they are all with the correct time.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Check_file_age returns error

Post by ssax »

After labbing this up I receive the same error when no files are present that match the wildcard (and check_nt does not allow you to adjust that functionality) so you'll likely need to switch to NRPE as npolovenko stated in the previous posts.
Locked