NSClient++ and check for file modification


#1

I’ve got a problem figuring out how to get NSClient++ to check a file for when it was last written.

What I’m looking for, is to let nagios check a file through NSClient++, in particular when said file was last written and give an error if the file haven’t been written in something like 5 minutes or so.

I haven’t been able to find anything to that nature anywhere, so any help would be appreciated, both nagios config, and any NSClient++ configuration if any.

Thanks in advance.