Ad Widget

Collapse

weird UserParameter "ttystandard" error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nicolasg
    Member
    • Apr 2011
    • 50

    #1

    weird UserParameter "ttystandard" error

    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 :

    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
    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 :

    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]
    Item details can be found bellow :

    Key: ddinfo
    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.
  • aib
    Senior Member
    • Jan 2014
    • 1615

    #2
    Let me guess - Do you use any kind of SSH connection?
    http://stackoverflow.com/questions/1...-must-be-a-tty
    Sincerely yours,
    Aleksey

    Comment

    • nicolasg
      Member
      • Apr 2011
      • 50

      #3
      I forgot to use sudo

      Thanks for the reply.

      Comment

      Working...