Hi,
I'm having a very strange issue with a custom item in Zabbix, basically we want to monitor the datadog service output to detect if any of the processes are not running :
I have done similar custom check using grep but this time the item is not supported in the Zabbix frontend, the error message I get when I click on the red X icon is :
Item details can be found bellow :
UserParameter :
This is only happening when I try to grep for the datadog-agent info output, if I use grep on a file or another kind of output the item is working fine with no issues...
Increase the debug level on the agent side didn't help, this is driving me crazy..
Can someone please help ?
Regards,
Nicolas.
I'm having a very strange issue with a custom item in Zabbix, basically we want to monitor the datadog service output to detect if any of the processes are not running :
Code:
service datadog-agent info
===================
Collector (v 3.7.2)
===================
Status date: 2015-03-10 10:22:33 (4s ago)
Pid: 2529
Platform: Linux-2.6.32-431.20.3.el6.x86_64-x86_64-with-centos-6.5-Final
Python Version: 2.6.6
Logs: <stderr>, /var/log/datadog/collector.log
===================
Dogstatsd (v 3.7.2)
===================
Dogstatsd is not running.
You can get more details in the logs:
<stderr>, /var/log/datadog/dogstatsd.log
Received value [standard in must be a ttystandard in must be a ttystandard in must be a tty] is not suitable for value type [Numeric (unsigned)] and data type [Decimal]
Key: ddinfo
Type: Zabbix Agent
Type of information: numeric (unsigned)
Data Type: Decimal
Type: Zabbix Agent
Type of information: numeric (unsigned)
Data Type: Decimal
UserParameter :
UserParameter=ddinfo, /etc/init.d/datadog-agent info | grep "is not running" -q ; rc=$?; if [ $rc -eq 1 ];then echo 1;elif [ $rc -eq 0 ]; then echo 0;fi;
This is only happening when I try to grep for the datadog-agent info output, if I use grep on a file or another kind of output the item is working fine with no issues...
Increase the debug level on the agent side didn't help, this is driving me crazy..
Can someone please help ?
Regards,
Nicolas.
Comment