check_file_age

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_file_age

Post 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?

Code: Select all

ls -l /home/pons/file.txt
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
fsodah
Posts: 295
Joined: Thu Sep 12, 2019 1:19 am

Re: check_file_age

Post 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 ~]# 
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_file_age

Post 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?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
fsodah
Posts: 295
Joined: Thu Sep 12, 2019 1:19 am

Re: check_file_age

Post by fsodah »

100% ..... problem solved many thanks ... close the ticket.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_file_age

Post by scottwilkerson »

fsodah wrote:100% ..... problem solved many thanks ... close the ticket.
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked