标签:frontend 顺序 邮件 status moni option 不同 成功 family
1 A non well formed numeric value encountered [zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → CView->getOutput() → include() → make_status_of_zbx() → CFrontendSetup->checkRequirements() → CFrontendSetup->checkPhpMemoryLimit() → str2mem() in include/func.inc.php:410] 2 A non well formed numeric value encountered [zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → CView->getOutput() → include() → make_status_of_zbx() → CFrontendSetup->checkRequirements() → CFrontendSetup->checkPhpPostMaxSize() → str2mem() in include/func.inc.php:410] 3 A non well formed numeric value encountered [zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → CView->getOutput() → include() → make_status_of_zbx() → CFrontendSetup->checkRequirements() → CFrontendSetup->checkPhpUploadMaxFilesize() → str2mem() in include/func.inc.php:410]
sed -i ‘/$last = strtolower(substr($val, -1));/a$val = substr($val,0,-1);‘ /home/www/zabbix/include/func.inc.php
1 #!/bin/bash 2 3 echo "$3" > /tmp/zabbix_alert_message 4 /usr/bin/dos2unix -k /tmp/zabbix_alert_message 5 /bin/mail -s "$2" $1 < /tmp/zabbix_alert_message
1 [root@localhost ~]# grep -i remote /etc/zabbix/zabbix_agentd.conf 2 ### Option: EnableRemoteCommands 3 # Whether remote commands from Zabbix server are allowed. 4 EnableRemoteCommands=1 5 1为开启,0为关闭,默认为0
1 zabbix ALL=(ALL) NOPASSWD: /etc/rc.d/init.d/httpd restart #增加权限 2 Defaults:zabbix !requiretty #关闭TTY登录限制 3 4 若为关闭tty登录限制,无法成功使用sudo命令,可在visudo中打开sudo使用日志: 5 Defaults logfile=/var/sudo.log 6 Defaults !syslog 7 8 [root@localhost ~]# more /var/sudo.log 9 6月 22 16:41:21 : zabbix : sorry, you must have a tty to run sudo ; TTY=unknown 10 ; PWD=/ ; USER=root ; COMMAND=/etc/rc.d/init.d/httpd restart
标签:frontend 顺序 邮件 status moni option 不同 成功 family
原文地址:http://www.cnblogs.com/armo/p/7077297.html