Ad Widget

Collapse

UserParameter fails with signal 13 SIGPIPE

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sparksnl
    Junior Member
    • Jan 2012
    • 2

    #1

    UserParameter fails with signal 13 SIGPIPE

    Hi,

    I am trying to extend the agent, it should check on my opensuse server if new patches are available. I have added this to the agentd.conf

    UserParameter=check.suse.updates, /usr/bin/zypper lu --repo 1 | /usr/bin/grep -ci "no update"

    However it doesn't work. I have changed the debug level of the agent and get these error messages

    13528:20120113:213024.990 Run remote command [ /usr/bin/zypper lu --repo 1 | /usr/bin/grep -ci "no update"] Result [1] [0]...
    13528:20120113:213024.990 Sending back [0]
    13528:20120113:213024.991 Got signal [signal:13(SIGPIPE),sender_pid:13528]. Ignoring ...
    13528:20120113:213024.991 Process listener error: ZBX_TCP_WRITE() failed: [32] Broken pipe

    testing with zabbix_get seems to be fine:
    intelatom:/var/log/zabbix # zabbix_get -s 192.168.0.50 -k check.suse.updates
    0

    Any idea what's going wrong?

    I am running the 1.8.10 version.

    Thanks,
  • sparksnl
    Junior Member
    • Jan 2012
    • 2

    #2
    Forget it. I solved it by executing it in a crontab and let zabbix check the output.

    Comment

    Working...