Hello,
I've got a problem with UserParameter number of files monitoring. UserParameter is set on:
UserParameter=command[*], ls -1 $1 | grep "$2" | wc -l
On zabbix server was set:
type: zabbix agent (active)
key: command[/path, .txt]
period 60s
and server recieved data twice in minute. The first signal was 160 (correct value) and the second one was 0 (incorrect value). How it is possible?
When I change monitoring type to "zabbix agent" correct value was recieved from host.
Please help.
Thanks
I've got a problem with UserParameter number of files monitoring. UserParameter is set on:
UserParameter=command[*], ls -1 $1 | grep "$2" | wc -l
On zabbix server was set:
type: zabbix agent (active)
key: command[/path, .txt]
period 60s
and server recieved data twice in minute. The first signal was 160 (correct value) and the second one was 0 (incorrect value). How it is possible?
When I change monitoring type to "zabbix agent" correct value was recieved from host.
Please help.
Thanks
Comment