Ad Widget

Collapse

Timeout while executing operation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ptader
    Member
    • Sep 2007
    • 52

    #1

    Timeout while executing operation

    Zabbix server and agent 1.4.4

    A couple of my scripts are timing out and not logging data. In the zabbix_server.conf: "Timeout=30" but when running a zabbix_get from the server it times out well before the 30 seconds are up. Anything I'm missing?

    Running the script on the client:
    [root@client ~]# time /usr/local/bin/myscript
    1

    real 0m0.471s (completes well under 1 second)
    user 0m0.014s
    sys 0m0.010s


    (using ssh to run the command from server)
    [root@zabbix_server ~]# time ssh -x -c blowfish client '/usr/local/bin/myscript
    1

    real 0m3.473s (under 4 seconds to complete)
    user 0m0.007s
    sys 0m0.008s


    Running the script with a zabbix_get, from the server
    [root@server ~]# time zabbix_get -s client -k mycheck
    zabbix_get [22678]: Timeout while executing operation.

    real 0m5.002s (always times out after 5 seconds. Why not 30?)
    user 0m0.000s
    sys 0m0.001s


    The last few lines of an strace:

    ...
    37
    poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 5000) = 1
    ioctl(3, FIONREAD, [195]) = 0
    recvfrom(3, "/\273\205\200\0\1\0\1\0\3\0\4\nclient\4company\3com \0\0\1\0\1\300\f\0\1\0\1\0\0T`\0\4\203\341\275A\30 0\27\0\2\0\1\0\0T`\0\f\3ns1\2es\3net\0\300\27\0\2\ 0\1\0\0T`\0\t\6FNSRV0\300\27\300\27\0\2\0\1\0\0T`\ 0\t\6fnsrv1\300\27\300A\0\1\0\1\0\0?l\0\4\306\200\ 2\n\300A\0\34\0\1\0\0\0008\0\20 \1\4\0\0\24\0\2\0\0\0\0\0\0\0\20\300Y\0\1\0\1\0\0T `\0\4\203\341\10x\300n\0\1\0\1\0\0T`\0\4\203\341\2 1\226", 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("123.456.789.000")}, [16]) = 195
    close(3) = 0
    socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3
    alarm(5) = 0
    connect(3, {sa_family=AF_INET, sin_port=htons(10050), sin_addr=inet_addr("123.123.123.123")}, 16) = 0
    write(3, "ZBXD\1", 5) = 5
    write(3, "\20\0\0\0\0\0\0\0", 8) = 8
    write(3, "mycheck\n", 16) = 16
    read(3, 0x7fbfffee28, 5) = ? ERESTARTSYS (To be restarted) (where the command pauses)
    --- SIGALRM (Alarm clock) @ 0 (0) ---
    rt_sigaction(SIGALRM, {0x400250, [ALRM], SA_RESTORER|SA_RESTART, 0x40a0c0}, {0x400250, [ALRM], SA_RESTORER|SA_RESTART, 0x40a0c0}, 8) = 0
    getpid() = 16269
    write(2, "zabbix_get [16269]: ", 20zabbix_get [16269]: ) = 20
    write(2, "Timeout while executing operation.", 34Timeout while executing operation.) = 34
    write(2, "\n", 1
    ) = 1
    exit_group(-1) = ?
    Process 16269 detached
    Last edited by ptader; 01-08-2008, 22:57.
Working...