SSH key: '/root/.ssh/id_rsa'  Error
    vivek sharma sharma 
    vivek_222 at rediffmail.com
       
    Sun Apr  3 22:23:03 CEST 2005
    
    
  
Dear Arno,
              
I have gone through the parameters 
max_concurrent_checks
service_inter_check_delay_method
service_reaper_frequency
service_interleave_factor
max_check_attempts  for optimizing CPU utilization and all and i don't 
have any issues with it as of now.
For My second phase of Nagios Implementation:
I have configured push_check.sh to run plugins on remote machines::
For this I have enabled ssh without passwd using RSA.
Now my command is:
define command {
                command_name remote_procs_check
                command_line $USER1$/push_check.sh /root/.ssh/id_rsa XXX.XXX.XXX
 $USER1$/check_procs -w 2:2 -c 2:1024 -C flowd
                }
This command when run from command line gives proper output::
[root at nagios libexec]# ./push_check.sh /root/.ssh/id_rsa XXX.XXX.XXX ./check_procs
 -w 1:2 -c 1:1024 -C flowd
PROCS OK: 2 processes with command name 'flowd'
But when I see in Nagios GUI it gives the following error:
ERROR: SSH key: '/root/.ssh/id_rsa' does not exist 
I have placed the /root/.ssh/id_rsa.pub keys in the /root/.ssh/authorized_keys in the
 XXX.XXX.XXX host
What may be causing this?
Also what is the difference between running it through nagios and running it through command
line as root.
The permissions on the concerned directories are as follows:
Remote Host:
[root at flowc .ssh]# pwd
/root/.ssh
You have new mail in /var/spool/mail/root
[root at flowc .ssh]# ls -al
total 16
drwx------    2 root     root         4096 Apr  3 21:33 .
drwxr-x---   17 root     root         4096 Apr  3 22:04 ..
-rw-r--r--    1 root     root          232 Apr  3 21:33 authorized_keys2
-rw-r--r--    1 root     root          241 Apr  3 21:02 known_hosts2
Nagios Host:
[root at nagios .ssh]# pwd
/root/.ssh
[root at nagios .ssh]# ls -al
total 20
drw-r--r--    2 root     root         4096 Apr  3 21:32 .
drwxr-x---   13 root     root         4096 Apr  3 21:47 ..
-rw-------    1 root     root          883 Apr  3 21:30 id_rsa
-rw-r--r--    1 root     root          231 Apr  3 21:30 id_rsa.pub
-rw-r--r--    1 root     root         1804 Apr  3 21:12 known_hosts
Plz suggest.
Thanks.
Vivek. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050403/5fa72bfd/attachment.html>
    
    
More information about the Users
mailing list