Page 2 of 2
Re: check_file_age
Posted: Wed Aug 26, 2020 12:21 pm
by scottwilkerson
fsodah wrote:Code: Select all
ls: cannot access /home/pons/file.txt: Permission denied
there's your problem, the nagios user cannot see this file
What if you run this as root, what are the permissions?
Re: check_file_age
Posted: Wed Aug 26, 2020 12:24 pm
by fsodah
I see its a permission problem
Code: Select all
logout
[root@nagios ~]# ls -l /home/pons/file.txt
-rw-r--r-- 1 pons pons 2 Aug 24 08:45 /home/pons/file.txt
[root@nagios ~]#
Re: check_file_age
Posted: Wed Aug 26, 2020 1:34 pm
by scottwilkerson
fsodah wrote:I see its a permission problem
Code: Select all
logout
[root@nagios ~]# ls -l /home/pons/file.txt
-rw-r--r-- 1 pons pons 2 Aug 24 08:45 /home/pons/file.txt
[root@nagios ~]#
Is it working now as expected?
Re: check_file_age
Posted: Wed Aug 26, 2020 1:37 pm
by fsodah
100% ..... problem solved many thanks ... close the ticket.
Re: check_file_age
Posted: Wed Aug 26, 2020 1:39 pm
by scottwilkerson
fsodah wrote:100% ..... problem solved many thanks ... close the ticket.
Great!
Locking thread