I'd like to monitor the CPU usage on a server where I can not install a zabbix agent. However, I can login to that server with SSH.
So I thought I had found a solution: create an SSH-agent item which connects to that host and executes the 'sar' command.
And indeed, it does work - except that, several times a day the item becomes 'not supported'. The log file shows errors such as 'Cannot read data from SSH server'.
Seems like, whenever the system is heavily used the ssh command times out, causing Zabbix to give up - and hence no values are measured until the item is re-enabled. And of course, it's exactly when the server is heavily used that I'd need to monitor and possibly send alerts.
Is there a better way to retrieve this information? Is there a way to avoid the time-out, or to avoid zabbix from setting the item not-supported?
So I thought I had found a solution: create an SSH-agent item which connects to that host and executes the 'sar' command.
And indeed, it does work - except that, several times a day the item becomes 'not supported'. The log file shows errors such as 'Cannot read data from SSH server'.
Seems like, whenever the system is heavily used the ssh command times out, causing Zabbix to give up - and hence no values are measured until the item is re-enabled. And of course, it's exactly when the server is heavily used that I'd need to monitor and possibly send alerts.
Is there a better way to retrieve this information? Is there a way to avoid the time-out, or to avoid zabbix from setting the item not-supported?
Comment