Permission Denied while opening nagios session
Posted: Thu Jul 07, 2016 7:15 pm
Hi,
I have configured one service check using "check_by_ssh_master" plugin . when i am trying to execute the command from nagios server it's giving correct output
./check_by_ssh_master -T psnagios@<hostaddress> -t 60 -m 200 -S /usr/local/nagios/tmp "/users/psnagios/nrpe-agent/nrpe/libexec/tomcat_sora2.sh"
Output :- OK - 1 Tomcat Process running from correct path
But when i have configured same thing in Nagiosxi .. PFA (Service config in nagiosxi)
It's giving error as mentioned below.
cannot open /usr/local/nagios/tmp/psnagios@<hostaddress>.sessions: Permission denied
Permissions given to tmp directory and session file present inside it :
drwxrwxrwx 2 nagios nagios 12288 Jul 8 05:00 tmp
-rw------- 1 apache apache 0 Jul 8 05:00 psnagios@<hostname>.sessions
Note: For other servers same thing i have configured, there it's working fine
Please check and let me know what permissions i need to modify , I am not aware of these sessions in nagiosxi.
Please Let me know if any other information is required.
Thanks and Regards,
Ayush Jain
I have configured one service check using "check_by_ssh_master" plugin . when i am trying to execute the command from nagios server it's giving correct output
./check_by_ssh_master -T psnagios@<hostaddress> -t 60 -m 200 -S /usr/local/nagios/tmp "/users/psnagios/nrpe-agent/nrpe/libexec/tomcat_sora2.sh"
Output :- OK - 1 Tomcat Process running from correct path
But when i have configured same thing in Nagiosxi .. PFA (Service config in nagiosxi)
It's giving error as mentioned below.
cannot open /usr/local/nagios/tmp/psnagios@<hostaddress>.sessions: Permission denied
Permissions given to tmp directory and session file present inside it :
drwxrwxrwx 2 nagios nagios 12288 Jul 8 05:00 tmp
-rw------- 1 apache apache 0 Jul 8 05:00 psnagios@<hostname>.sessions
Note: For other servers same thing i have configured, there it's working fine
Please check and let me know what permissions i need to modify , I am not aware of these sessions in nagiosxi.
Please Let me know if any other information is required.
Thanks and Regards,
Ayush Jain