Fwd: nagios-service-refresh-rate

Arno Lehmann al at its-lehmann.de
Mon Apr 4 00:01:46 CEST 2005


Hi.

vivek sharma sharma wrote:

> 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.

You should setup ssh correctly. Try to avoid serious security holes.
Nagios should not run as root. Nobody but the owner shoul have access to 
ssh keys and configuration.
Read the manuals.

Please!

Arno

> Thanks.
> Vivek. 
> 
> 
> 
> 
> <http://clients..rediff.com/signature/track_sig.asp>

-- 
IT-Service Lehmann                    al at its-lehmann.de
Arno Lehmann                  http://www.its-lehmann.de


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list