Прикрутил мониторинг zabbix к серверу УКМ4. Все работает через UserParameters
UserParameter=mysql.status[*],"C:\Program Files\ukmserver\ukm-monitoring\agent\zmysql.cmd" $1 - как то можно добывать инфу о базе через extended-status (пока не разобрался)
UserParameter=mysql.version,"C:\Program Files\ukmserver\ukm-monitoring\agent\zmysql.cmd" version - возвращает версию mysql (можно сделать проверку на смену версии)
UserParameter=mysql.ping,"C:\Program Files\ukmserver\ukm-monitoring\agent\zmysql.cmd" ping - возвращает 1 если mysql is alive (сделал проверку раз в минуту)
UserParameter=apache[*],"C:\Program Files\ukmserver\ukm-monitoring\agent\zapache.cmd" $1 - различные проверки (список ниже)
zapache version: "1.4"
usage:
"C:\Program Files\ukmserver\ukm-monitoring\agent\zapache.cmd" version -- Version of this script.
"C:\Program Files\ukmserver\ukm-monitoring\agent\zapache.cmd" ping -- Check is Webserver running
"C:\Program Files\ukmserver\ukm-monitoring\agent\zapache.cmd" TotalAccesses -- Check total accesses.
"C:\Program Files\ukmserver\ukm-monitoring\agent\zapache.cmd" TotalKBytes -- Check total KBytes.
"C:\Program Files\ukmserver\ukm-monitoring\agent\zapache.cmd" Uptime -- Check uptime.
"C:\Program Files\ukmserver\ukm-monitoring\agent\zapache.cmd" ReqPerSec -- Check requests per second.
"C:\Program Files\ukmserver\ukm-monitoring\agent\zapache.cmd" BytesPerSec -- Check Bytes per second.
"C:\Program Files\ukmserver\ukm-monitoring\agent\zapache.cmd" BytesPerReq -- Check Bytes per request.
"C:\Program Files\ukmserver\ukm-monitoring\agent\zapache.cmd" BusyWorkers -- Check busy workers.
"C:\Program Files\ukmserver\ukm-monitoring\agent\zapache.cmd" IdleWorkers -- Check idle workers.
"C:\Program Files\ukmserver\ukm-monitoring\agent\zapache.cmd" WaitingForConnection -- Check Waiting for Connection processess.
"C:\Program Files\ukmserver\ukm-monitoring\agent\zapache.cmd" StartingUp -- Check Starting Up processess.
"C:\Program Files\ukmserver\ukm-monitoring\agent\zapache.cmd" ReadingRequest -- Check Reading Request processess.
"C:\Program Files\ukmserver\ukm-monitoring\agent\zapache.cmd" SendingReply -- Check Sending Reply processess.
"C:\Program Files\ukmserver\ukm-monitoring\agent\zapache.cmd" KeepAlive -- Check KeepAlive Processess.
"C:\Program Files\ukmserver\ukm-monitoring\agent\zapache.cmd" DNSLookup -- Check DNSLookup Processess.
"C:\Program Files\ukmserver\ukm-monitoring\agent\zapache.cmd" ClosingConnection -- Check Closing Connection Processess.
"C:\Program Files\ukmserver\ukm-monitoring\agent\zapache.cmd" Logging -- Check Logging Processess.
"C:\Program Files\ukmserver\ukm-monitoring\agent\zapache.cmd" GracefullyFinishing -- Check Gracefully Finishing Processess.
"C:\Program Files\ukmserver\ukm-monitoring\agent\zapache.cmd" IdleCleanupOfWorker -- Check Idle Cleanup of Worker Processess.
"C:\Program Files\ukmserver\ukm-monitoring\agent\zapache.cmd" OpenSlotWithNoCurrentProcess -- Check Open Slots with No Current Process.
Если нужно могу написать более подробную инструкцию по настройке zabbix агента и создание всего для мониторинга на стороне zabbix сервера.