-
Incident report
-
Resolution: Won't fix
-
Trivial
-
None
-
2.2.11
I'm trying to configure action to run script after trigger get some threshold.
In the events of the host I see that ssh comand fails with error:
"Public key authentication failed: Invalid key data, not base64 encoded"
But I able connect to this machines with private key used in configuration.
I've tried to debug it and found these lines in the log file:
9615:20151202:191859.079 ssh_run() supported authentication methods:'publickey,password' 9615:20151202:191859.079 End of ssh_run():NOTSUPPORTED 9615:20151202:191859.079 End of zbx_execute_script_on_terminal():FAIL 9615:20151202:191859.079 End of zbx_execute_script():FAIL 9615:20151202:191859.079 In add_command_alert() 9615:20151202:191859.079 End of add_command_alert() 9615:20151202:191859.079 In DCget_nextid() table:'alerts' num:1 9615:20151202:191859.079 query [txnlev:1] [select max(alertid) from alerts where alertid between 0 and 9223372036854775807] 9615:20151202:191859.080 End of DCget_nextid() table:'alerts' [210676:210676] 9615:20151202:191859.080 query [txnlev:1] [insert into alerts (alertid,actionid,eventid,clock,message,status,err or,esc_step,alerttype) values (210676,38,1424822,1449076739,'hostname.com':/etc/zabbix/java_dump.sh',2,'Public key authentication failed: Invalid key data, not base64 encoded',1,1);
The same key makes authorizations without any problems:
ssh -i key.pem [email protected]
Server is configured to support SSH:
13339:20151202:192800.721 Starting Zabbix Server. Zabbix 2.2.11 (revision 56693). 13339:20151202:192800.722 ****** Enabled features ****** 13339:20151202:192800.722 SNMP monitoring: YES 13339:20151202:192800.722 IPMI monitoring: YES 13339:20151202:192800.722 WEB monitoring: YES 13339:20151202:192800.722 VMware monitoring: YES 13339:20151202:192800.722 Jabber notifications: YES 13339:20151202:192800.722 Ez Texting notifications: YES 13339:20151202:192800.722 ODBC: YES 13339:20151202:192800.722 SSH2 support: YES 13339:20151202:192800.722 IPv6 support: YES 13339:20151202:192800.722 ****************************** 13339:20151202:192800.722 using configuration file: /etc/zabbix/zabbix_server.conf
Why it alerting about "base64"?