Hello!
I have updated my zabbix to 4.0.0 and now i have some nonworked templates duty to "timeout while executing a shell script error" .
But
on server script was executed less than 30 sec
Update: after setting timeout in agent conf this error was disappeared
I have updated my zabbix to 4.0.0 and now i have some nonworked templates duty to "timeout while executing a shell script error" .
But
Code:
cat /etc/zabbix/zabbix_server.conf | grep Timeout ### Option: VMwareTimeout # VMwareTimeout=10 ### Option: Timeout # Timeout=3 Timeout=30 ### Option: TrapperTimeout TrapperTimeout=300
Code:
systemctl status zabbix-server
● zabbix-server.service - Zabbix Server
Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2018-10-11 15:34:28 MSK; 4min 3s ago
Process: 8035 ExecStop=/bin/kill -SIGTERM $MAINPID (code=exited, status=0/SUCCESS)
Process: 8041 ExecStart=/usr/sbin/zabbix_server -c $CONFFILE (code=exited, status=0/SUCCESS)
Main PID: 8043 (zabbix_server)
CGroup: /system.slice/zabbix-server.service
├─8043 /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf
Code:
tail -f /var/log/zabbix/zabbix_server.log | grep servername 10161:20181011:154445.841 In get_value_agent() host:'servername.domain' addr:'servername.domain' key:'uHDD.discovery' conn:'unencrypted' 10163:20181011:154445.844 In get_values_snmp() host:'servername.domain' addr:'servername.domain' num:1 10163:20181011:154445.844 SNMP [[email protected]:161] 10196:20181011:154445.846 In get_values_snmp() host:'servername.domain' addr:'servername.domain' num:1 10196:20181011:154445.847 SNMP [[email protected]:161] 10187:20181011:154445.849 In get_values_snmp() host:'servername.domain' addr:'servername.domain' num:1 10187:20181011:154445.849 SNMP [[email protected]:161] 10161:20181011:154448.887 Item [servername.domain:uHDD.discovery] error: Timeout while executing a shell script.
Code:
C:\Windows\system32>powershell -NoProfile -ExecutionPolicy Bypass -File "C:\zabbix_agent\scripts\smartctl-disks-discovery.ps1".
{
"data":[
{
"{#DISKSN}":"",
"{#DISKMODEL}":"",
"{#DISKNAME}":"/dev/sda",
"{#DISKCMD}":"/dev/sda -dscsi",
"{#SMART_ENABLED}":"0",
"{#DISKTYPE}":"0"
},
{
"{#DISKSN}":"Z1W39D77",
"{#DISKMODEL}":"ST1000NM0033-9ZM173",
"{#DISKNAME}":"/dev/csmi0,0",
"{#DISKCMD}":"/dev/csmi0,0 -data",
"{#SMART_ENABLED}":"1",
"{#DISKTYPE}":"0"
},
{
"{#DISKSN}":"Z1W39RVY",
"{#DISKMODEL}":"ST1000NM0033-9ZM173",
"{#DISKNAME}":"/dev/csmi0,1",
"{#DISKCMD}":"/dev/csmi0,1 -data",
"{#SMART_ENABLED}":"1",
"{#DISKTYPE}":"0"
}
]
}
Code:
zabbix_server -V zabbix_server (Zabbix) 4.0.0 Revision 85308 1 October 2018, compilation time: Oct 1 2018 08:41:15 Copyright (C) 2018 Zabbix SIA