Hallo,
I have the task to compare some monitoring solutions to replace the old system. One task is to measure the execution time of different check szenarios.
The thing I want to measure is:
* Execute a query of acutual cpu load or diskspace usage by the zabbix-agent
* send the results to zabbix server
* get an ok.
My command should work as a trapper-item, which I have created, but creates a fail from the server.
Is there a way to
* manually execute a an active check on the monitored system from the shell,
* without using a nested command execution like I had planned?
I have the task to compare some monitoring solutions to replace the old system. One task is to measure the execution time of different check szenarios.
The thing I want to measure is:
* Execute a query of acutual cpu load or diskspace usage by the zabbix-agent
* send the results to zabbix server
* get an ok.
My command should work as a trapper-item, which I have created, but creates a fail from the server.
time zabbix_sender -vv -c /etc/zabbix/zabbix_agentd.conf -s lampe1t -k root.size -o $(zabbix_agentd -t "vfs.fs.size[/,pfree]" | cut -c 50-58)
zabbix_sender [1692]: DEBUG: answer [{
"response":"success",
"info":"processed: 0; failed: 1; total: 1; seconds spent: 0.000087"}]
info from server: "processed: 0; failed: 1; total: 1; seconds spent: 0.000087"
sent: 1; skipped: 0; total: 1
real 0m0.007s
user 0m0.003s
sys 0m0.003s
zabbix_sender [1692]: DEBUG: answer [{
"response":"success",
"info":"processed: 0; failed: 1; total: 1; seconds spent: 0.000087"}]
info from server: "processed: 0; failed: 1; total: 1; seconds spent: 0.000087"
sent: 1; skipped: 0; total: 1
real 0m0.007s
user 0m0.003s
sys 0m0.003s
* manually execute a an active check on the monitored system from the shell,
* without using a nested command execution like I had planned?