I am trying to add a new item-key to my agent config. Specifically rpm.check.sh.jbrain.server
I have a working key and my new NOT working key:
When I test the item-key i get results back as expected from the `cmd`
I have no issues with seeing tomcat.mem.leak.status on my /var/log/zabbix/zabbix_agentd.log but I do not see rpm.check.sh.jbrain.server ... i cannot comprehend what I am doing wrong....
Any input is much appreciated
Using:
CentOS Linux release 7.3.1611 (Core)
zabbix-agent-5.0.0-0.2alpha2.el7.x86_64
Thanks,
Dave
I have a working key and my new NOT working key:
Code:
UserParameter=rpm.check.sh.jbrain.server,grep -E 'sh-jbrain-server-' /tmp/shsolutions-pkgs-zabbix | sed 's/sh-jbrain-server-//g' UserParameter=tomcat.mem.leak.status,grep -E -A1 "$(date --date='yesterday' +'%Y-%m-%d')|$(date '+%Y-%m-%d')" /var/log/tomcat/engine.log | grep -B1 OutOfMemoryError| head -1 | wc -l
Code:
zabbix_agentd -t rpm.check.sh.jbrain.server zabbix_agentd [28728]: Warning: both HostMetadata and HostMetadataItem defined, using [Jbrain-old-7] rpm.check.sh.jbrain.server [t|2.3.1.1-75] zabbix_agentd -t tomcat.mem.leak.status zabbix_agentd [29405]: Warning: both HostMetadata and HostMetadataItem defined, using [Jbrain-old-7] tomcat.mem.leak.status [t|0]
Code:
grep rpm.check.sh.jbrain.server /var/log/zabbix/zabbix_agentd.log | wc -l 0 grep tomcat.mem.leak.status /var/log/zabbix/zabbix_agentd.log | wc -l 32
Using:
CentOS Linux release 7.3.1611 (Core)
zabbix-agent-5.0.0-0.2alpha2.el7.x86_64
Thanks,
Dave
Comment