AIX server 7.2 permission denied error nagiosxi
Posted: Sat Jun 20, 2020 6:07 am
Hi Team,
We have tried to add AIX server 7.2 to Nagioxi using check_by_ssh plugin. But we are getting the below permission issue.
Error
++++
[nagios@fujams01 ~]$ /usr/local/nagios/libexec/check_by_ssh -H drcoreflsh01 -C /usr/local/nagios/libexec/check_disk
Remote command execution failed: ksh: /usr/local/nagios/libexec/check_disk: 0403-006 Execute permission denied.
Please check and advise on this issue.
Followed the same document mentioned below.
https://assets.nagios.com/downloads/nag ... ng_SSH.pdf
Note: We are able to do passwordless authentication to remote server and the command /usr/local/nagios/libexec/check_by_ssh -H remoteip -C uptime works fine.
Remote AIX Server file permissions
+++++++++++++++++++++++++++++
root@drcoreflsh01:/home/nagios # ls -ltr
total 1656
-rwxrwxr-x 1 nagios staff 157552 Feb 25 2019 check_users
-rwxrwxr-x 1 nagios staff 223992 Feb 25 2019 check_procs
-rwxrwxrwx 1 nagios staff 227160 Feb 25 2019 check_disk
-rwxrwxrwx 1 nagios staff 214424 Feb 25 2019 check_by_ssh
-rwxr----- 1 nagios staff 254 Jun 20 09:11 .profile
drwx------ 2 nagios staff 256 Jun 20 09:17 .ssh
-rwxr-xr-x 1 nagios staff 2835 Jun 20 14:14 check_AIX_disk.sh
-rw------- 1 nagios staff 209 Jun 20 14:31 .bash_history
-rw------- 1 nagios staff 418 Jun 20 14:31 .sh_history
root@drcoreflsh01:/home/nagios #
Thanks,
We have tried to add AIX server 7.2 to Nagioxi using check_by_ssh plugin. But we are getting the below permission issue.
Error
++++
[nagios@fujams01 ~]$ /usr/local/nagios/libexec/check_by_ssh -H drcoreflsh01 -C /usr/local/nagios/libexec/check_disk
Remote command execution failed: ksh: /usr/local/nagios/libexec/check_disk: 0403-006 Execute permission denied.
Please check and advise on this issue.
Followed the same document mentioned below.
https://assets.nagios.com/downloads/nag ... ng_SSH.pdf
Note: We are able to do passwordless authentication to remote server and the command /usr/local/nagios/libexec/check_by_ssh -H remoteip -C uptime works fine.
Remote AIX Server file permissions
+++++++++++++++++++++++++++++
root@drcoreflsh01:/home/nagios # ls -ltr
total 1656
-rwxrwxr-x 1 nagios staff 157552 Feb 25 2019 check_users
-rwxrwxr-x 1 nagios staff 223992 Feb 25 2019 check_procs
-rwxrwxrwx 1 nagios staff 227160 Feb 25 2019 check_disk
-rwxrwxrwx 1 nagios staff 214424 Feb 25 2019 check_by_ssh
-rwxr----- 1 nagios staff 254 Jun 20 09:11 .profile
drwx------ 2 nagios staff 256 Jun 20 09:17 .ssh
-rwxr-xr-x 1 nagios staff 2835 Jun 20 14:14 check_AIX_disk.sh
-rw------- 1 nagios staff 209 Jun 20 14:31 .bash_history
-rw------- 1 nagios staff 418 Jun 20 14:31 .sh_history
root@drcoreflsh01:/home/nagios #
Thanks,