check_file_age error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
[email protected]
Posts: 66
Joined: Tue Aug 07, 2018 2:24 am

Re: check_file_age error

Post by [email protected] »

nagios:x:114:nagios
appusr:x:1010:appusr,nagios
nagcmd:x:1012:nagios
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_file_age error

Post by scottwilkerson »

The permissions you previously showed show permissions for appuser group but here you have nagios added to the appusr group
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
[email protected]
Posts: 66
Joined: Tue Aug 07, 2018 2:24 am

Re: check_file_age error

Post by [email protected] »

hi Team,

it stypo error, nagios user is added to appuser group only.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_file_age error

Post by scottwilkerson »

I am out of the usual troubleshooting options.

Clearly the nagios user on the 192.168.105.93 server does not have access to the file, why that is based on what you have posted I'm not sure.

to clarify one thing, when you posted this, was this on the remote 192.168.105.93 server?
[email protected] wrote:nagios:x:114:nagios
appusr:x:1010:appusr,nagios
nagcmd:x:1012:nagios
I ask because it wouldn't be very common to have a nagcmd user on a non-nagios server
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
[email protected]
Posts: 66
Joined: Tue Aug 07, 2018 2:24 am

Re: check_file_age error

Post by [email protected] »

Yes, i posted that with nagios client server.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_file_age error

Post by scottwilkerson »

Please show the output of the following from the client machine

Code: Select all

su nagios -c "ls -l /dir/dir/dir/logs/log.log"
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
[email protected]
Posts: 66
Joined: Tue Aug 07, 2018 2:24 am

Re: check_file_age error

Post by [email protected] »

i am not getting any output for the above command
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_file_age error

Post by scottwilkerson »

[email protected] wrote:i am not getting any output for the above command
Not even error output?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
[email protected]
Posts: 66
Joined: Tue Aug 07, 2018 2:24 am

Re: check_file_age error

Post by [email protected] »

hi Team,

i have not got any output.
Please suggest how to proceed further
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_file_age error

Post by scottwilkerson »

[email protected] wrote:hi Team,

i have not got any output.
Please suggest how to proceed further
Clearly the nagios user cannot see the file.

However, you are likely going to have to work this out with the security team as there is no way for us to know why that would be.

The nagios user is going to need to be able to see the file in order for the check to work properly
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked