Forgive my English, I'm Brazilian.
After several attempts to get this monitoring by snmp and not working (I did not find the OID or there are no rsrsrs)
I'm trying to get zabbix to connect via ssh on my mikrotik router, so I can send a ping command to an ip from the internet.
The purpose of this is to monitor my load balancing link.
I'm using Debian GNU / Linux 9 (stretch) and zabbix 3.4.4.
I'll explain exactly how I'm going to do this.
First I created a user named zabbix on my router with read permission, I installed sshpass (apt get install sshpass) to be able to send the password along with the command to my router, after that I tested the connection
sshpass -p routerpassword ssh userrouter@iprouter ping 8.8.8.8 and everything works perfectly.
I configured the zabbix agent to use the user parameter and executed the command, edited the agent configuration file and added the command
UserParameter = item, sshpass -p routerpassword ssh userrouter@iprouter ping router 8.8.8.8, I saved the file and restarted the zabbix agent.
I ran into the following error
Could not create directory '/var/lib/zabbix//.ssh'
Failed to verify host key.
And that does not return the expected value, I created the .ssh file inside the / var / lib / zabbix directory and left it empty, so I edited the / etc / ssh / sshd_config file and added the lines
Root of AllowUsers
AllowUsers zabbix
I saved the file and restarted the ssh service,
now I come across the following error
Failed to verify host key.
And I do not know what else to do.
After several attempts to get this monitoring by snmp and not working (I did not find the OID or there are no rsrsrs)
I'm trying to get zabbix to connect via ssh on my mikrotik router, so I can send a ping command to an ip from the internet.
The purpose of this is to monitor my load balancing link.
I'm using Debian GNU / Linux 9 (stretch) and zabbix 3.4.4.
I'll explain exactly how I'm going to do this.
First I created a user named zabbix on my router with read permission, I installed sshpass (apt get install sshpass) to be able to send the password along with the command to my router, after that I tested the connection
sshpass -p routerpassword ssh userrouter@iprouter ping 8.8.8.8 and everything works perfectly.
I configured the zabbix agent to use the user parameter and executed the command, edited the agent configuration file and added the command
UserParameter = item, sshpass -p routerpassword ssh userrouter@iprouter ping router 8.8.8.8, I saved the file and restarted the zabbix agent.
I ran into the following error
Could not create directory '/var/lib/zabbix//.ssh'
Failed to verify host key.
And that does not return the expected value, I created the .ssh file inside the / var / lib / zabbix directory and left it empty, so I edited the / etc / ssh / sshd_config file and added the lines
Root of AllowUsers
AllowUsers zabbix
I saved the file and restarted the ssh service,
now I come across the following error
Failed to verify host key.
And I do not know what else to do.

Comment