[Nagiosplug-help] R: Remote command execution failed: Permissiondenied (publickey, keyboard-interactive).

J4 junk4 at klunky.co.uk
Thu Dec 17 15:58:09 CET 2009


Hi Valeriom

	Nope. This is a message from the SSH key exchange stating that it
cannot authenticate using the method.  It should have used the key, but
this failed so it fell back to the interactive keyboard, which would
fail since its a process and not human, (unless one added expect into
the code, but this is not the point ;)

It has nothing to do with the libexec directories being executable or
not. Incidentally, the files are all 755 on both the server and the client.

Valerio.FABRIZIO at sungard.com wrote:
> Seems like the plugin is not executable… (chmod 755), did you already
> check this?
> 
>  
> 
> Valerio Fabrizio* *
> 
>  
> 
> ------------------------------------------------------------------------
> 
> *Da:* J4 [mailto:junk4 at klunky.co.uk]
> *Inviato:* giovedì 17 dicembre 2009 14.58
> *A:* nagiosplug-help at lists.sourceforge.net
> *Oggetto:* [Nagiosplug-help] Remote command execution failed:
> Permissiondenied (publickey, keyboard-interactive).
> 
>  
> 
> Dear Nagios oracles,
> 
>     I have added two services to a Nagios test server.  I would like to
> know roughly what misconfiguration I have.
> 
> These two errors messages pop up:
> 
> [1261054866] SERVICE NOTIFICATION: nagiosadmin;dd52;Swap
> Usage;UNKNOWN;notify-service-by-sms;Remote command execution failed:
> Permission denied (publickey,keyboard-interactive).
> 
> [1261054866] SERVICE NOTIFICATION: nagiosadmin;dd52;Total
> Processes;UNKNOWN;notify-service-by-sms;Remote command execution failed:
> Permission denied (publickey,keyboard-interactive).
> 
> On the Nagios server I can ssh into the target server without a password
> (dd52) using the public key.  The user on the Nagios server is nagios,
> and the target server is nagios.   Thus, SSH works well.
> 
> These are the two services I have in the config file that rests in
> /usr/local/nagios/etc/servers/dd52.cfg
> 
> # dd52.cfg
> define service{
>         use                             remote-service         ; Name of
> service template to use
>         host_name                       dd52
>         service_description             Total Processes
>         check_command                   check_remote_procs!22!250!400!RSZDT
>         #check_command                  check_remote_procs!250!400!RSZDT
>         }
> 
> define service{
>         use                             remote-service         ; Name of
> service template to use
>         host_name                       dd52
>         service_description             Swap Usage
>         check_command                   check_remote_swap!22!20!10
>         }
> 
> 
> The keys are readable by nagios: 
> root at abc:/usr/local/nagios/etc/keys# ls -l
> total 8
> -rw------- 1 nagios nagios 1675 2009-12-17 11:56 dd52
> root at abc:/usr/local/nagios/etc/keys# ls -ld
> drwxr-x--- 2 nagios nagios 4096 2009-12-17 11:56 .
> 
> Of course, if these keys were unreadable then I should have seen an
> error message like this, but I have not:
> Remote command execution failed: Warning: Identity file
> /usr/local/nagios/etc/keys/dd52 inaccessible: No such file or directory.
> 
> Has anybody got an idea?
> 
> Best wishes.
> 
> 
> PS. uname -a : Linux abc 2.6.28-17-generic #58-Ubuntu SMP Tue Dec 1
> 18:57:07 UTC 2009 i686 GNU/Linux
> 




More information about the Help mailing list