Ad Widget

Collapse

Zabbix agentd don’t work, when local time on a host has been changed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bogdan Kilchinskiy
    Junior Member
    • Mar 2018
    • 1

    #1

    Zabbix agentd don’t work, when local time on a host has been changed

    Hello everyone.
    I have some trouble with my zabbix-agentd on a host.
    When I changed local date and time on my host (current date and time plus one day), everything has been ok.
    But, after that I changed date and time (changed local date and time to current date and time). When I has been done it, zabbix-agentd quit its job.
    All keys what was send from zabbix server after this manipulation don't execute on a host. And zabbix agetnd log haven't any exception about that.
    On a host installed openSUSE OS.
    On a zabbix server installed Zabbix 2.2.
    Service zabbix agentd don't stop its work on a client (I checked using linux command: service zabbix-agentd status).
    Example:
    zabbix-agentd.service - Zabbix Monitor Agent
    Loaded: loaded (/usr/lib/systemd/system/zabbix-agentd.service; disabled)
    Active: active (exited) since Thu, 2018-03-29 15:12:48 EEST; 1h 25min ago
    Process: 31706 ExecStart=/usr/sbin/zabbix_agentd (code=exited, status=0/SUCCESS)
    CGroup: name=systemd:/system/zabbix-agentd.service
    ├ 31708 /usr/sbin/zabbix_agentd
    ├ 31709 /usr/sbin/zabbix_agentd: collector [idle 1 sec]
    ├ 31710 /usr/sbin/zabbix_agentd: listener #1 [waiting for connection]
    ├ 31711 /usr/sbin/zabbix_agentd: listener #2 [waiting for connection]
    ├ 31712 /usr/sbin/zabbix_agentd: listener #3 [waiting for connection]
    └ 31713 /usr/sbin/zabbix_agentd: active checks #1 [idle 1 sec]

    My zabbix-agentd.conf:
    LogFile=/var/log/zabbix/zabbix_agentd.log
    Timeout=30
    EnableRemoteCommands=1
    UnsafeUserParameters=1
    Hostname=kassa-2012-1.sh.atbmarket.com
    DebugLevel=4

    Server=172.18.68.17
    ServerActive=172.18.68.17


    UserParameter=i_hw_hddtemp,sudo /usr/sbin/smartctl -a /dev/sda |grep Temperature_Celsius | grep Old_age | awk {' print $10 '}
    UserParameter=i_hw_hddser,sudo /usr/sbin/smartctl -a /dev/sda | grep "Serial Number" | awk {' print $3 '}
    UserParameter=i_hw_mbser,sh /opt/sh/get_data_monitoring.sh|grep "Serial Number:" | awk {' print $3 '}
    UserParameter=i_hw_mbname,sh /opt/sh/get_data_monitoring.sh| grep "Product Name:" | awk {' print $3 '}
    UserParameter=i_hw_cputemp,sh /opt/sh/cpu_temp.sh
    UserParameter=i_psp_rpm_pspupdatever,rpm -qv psp-update
    UserParameter=i_psp_rpm_pspver,rpm -qv psp
    UserParameter=i_psp_pspver,echo -n `cat /home/user/bin/psp/psp.ver | awk {' print $1'}`
    UserParameter=i_psp_pspconfver,echo -n `cat /home/user/bin/psp/psp_config.ver | awk {' print $1 '}`
    UserParameter=i_psp_replver,echo -n `cat /home/user/bin/replicator/replicator.ver | awk {' print $1 '}`
    UserParameter=i_psp_replconfver,echo -n `cat /home/user/bin/replicator/replicator_config.ver | awk {' print $1 '}`
    UserParameter=i_os_cpuinfo,cat /proc/cpuinfo | grep -m1 "model name" | cut -d: -f2
    UserParameter=i_psp_nrro,isql-fb -u sysdba -p posmaster localhost:/home/user/bin/db/client.fdb -ch utf8 -i /opt/sh/i_psp_nrro.sql |tail -n2 | head -n1 | awk '{ print $1 }'
    UserParameter=i_psp_dbclientver,cat /home/user/bin/db/dbclient.ver | awk {' print $1 '}
    UserParameter=i_os_ip[*],/sbin/ifconfig $1 | grep "inet addr" | awk '{ print $$2 }' | cut -d: -f2
    UserParameter=i_os_mac[*],/sbin/ifconfig $1 | grep HWaddr | awk '{ print $$5 }'
    # UserParameter=i_hash_db,echo 'select * from PS_HashAllStructur_SELECT;' > /tmp/123.sql | isql-fb -u sysdba -p posmaster localhost:/home/user/bin/db/client.fdb -ch utf8 -i /tmp/123.sql |awk {'print $1'}|tail -n2|head -n1
    UserParameter=i_hash_db_client,echo 'select * from PS_HashAllStructur_SELECT;' > /tmp/123.sql | isql-fb -u sysdba -p posmaster localhost:/home/user/bin/db/client.fdb -ch utf8 -i /tmp/123.sql |awk {'print $1'}|tail -n2|head -n1
    UserParameter=i_md5_psp,/usr/bin/md5sum /home/user/bin/psp/PosServicePro.exe | awk {' print $1 '}
    UserParameter=i_md5_replic,/usr/bin/md5sum /home/user/bin/replicator/Replic.exe | awk {' print $1 '}
    UserParameter=i_rpm_status,tail -n1 /opt/STATUS_INSTALL_RPM | grep FINISH | wc -l
    UserParameter=i_diff_db_size,[[ -e /home/user/bin/db/diff/client.diff ]] && du -s /home/user/bin/db/diff/client.diff | awk {' print $1 '} || echo -n "0"
    UserParameter=i_fbqry[*],sh /home/user/bin/queryfirebird.sh $1 "$2"


    Maybe somebody knows about problem like that. How did you resolve it?

    Please, help me.

    Best regards BK.
Working...