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

Valerio.FABRIZIO at sungard.com Valerio.FABRIZIO at sungard.com
Thu Dec 17 15:27:58 CET 2009


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20091217/81c29191/attachment.html>


More information about the Help mailing list