Check file modification date timestamp

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Check file modification date timestamp

Post by ssax »

In addition to Box293's questions, are the NSClient services running as the same user (Local System account)?
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Re: Check file modification date timestamp

Post by jkinning »

Yes and yes.

The SYSTEM has full control and the NSClient++ is running as local system account.

(see attachments)
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Check file modification date timestamp

Post by lmiltchev »

A few people on the Nagios Support team have tried to recreate the issue (including myself) unsuccessfully. This check worked for all of us. I am afraid we are running out of ideas. Have you checked the windows security logs for clues?
Be sure to check out our Knowledgebase for helpful articles and solutions!
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Re: Check file modification date timestamp

Post by jkinning »

I updated the NSClient++ with the nightly release 0.4.3.147 and it works!

Code: Select all

check_nrpe -H <host> -c check_files -a 'file=C:\\Windows\\System32\\dns\\CACHE.DNS' 'critical=written>-600s'
OK: All 1 files are ok|'CACHE.DNS_written'=1171800000;0;1445519815
I then uninstalled this version and went back to the 0.4.3.143 version and it also is working. This was strange but all looks alright. Thanks for all the assistance and time on this one. Close at your convenience.
Locked