I have Nagios under Fedora Linux and a Java process under RedHat.
I need to check from time to time if a specific Java process ended up successfully and collected about itself statistics. I have a Perl script for that case.
When I remotely run my Perl script from Fedore using ‘rsh’, I can access the process and get the results, but I am asked to type password.
rsh mesmes -l user123 ‘perl /staging/monitorW.pl’
If I try to run the same under Nagios automatically, I am getting "permission denied’.
I have a number of similar processes to monitor on an AIX Unix host.
I set up config files the same way between Fedora & AIX Unix machines, I do not have this problem there. So what it could be a problem between RedHat & Fedora?
1).On both of the hosts there is the same user ‘user123’ defined
2) The file /etc/hosts:
- The .rhosts file resides in a user’s home directory and specifies the remote machines and remote user names that the user may use to remotely log in to the local machine.
- After these changes done, I restarted the ‘rsh’ service