Available solutions
厂商集成和社区集成由第三方创建,未经Zabbix验证。Zabbix不对其功能或质量负责。
Zabbix community templates
1 Contributed to the zabbix/community-templates repositorycommunity-templates / template_needrestart
Template for needrestart to check if the server needs a reboot / restart of services after package upgrade.www.kaneo-gmbh.deInstall packagesapt install needrestartZabbix agent user parameter:UserParameter=needrestart.kernel,sudo needrestart -b -r l -k | grep ´NEEDRESTART-KSTA:´ | grep -Eo ´[0-9]´UserParameter=needrestart.libs,sudo needrestart -b -r l -l | grep NEEDRESTART-SVC | wc -lsudoers entry:# allow zabbix to check for needrestart in batch listing modezabbix ALL = NOPASSWD: /usr/sbin/needrestart -b -r l *
2022
5 y ago