PHP发送日志到CACTI
1.PHP创建日志内容到本地服务器上
openlog("SquidwebLogin", LOG_PID | LOG_CONS, LOG_USER);
syslog(LOG_ALERT, $msg);
closelog();
2.转发日志到SYSLOG
vi /etc/rsyslog.conf
*.* @192.168.99.23
PHP发送日志到CACTI
1.PHP创建日志内容到本地服务器上
openlog("SquidwebLogin", LOG_PID | LOG_CONS, LOG_USER);
syslog(LOG_ALERT, $msg);
closelog();
2.转发日志到SYSLOG
vi /etc/rsyslog.conf
*.* @192.168.99.23
本文标题:PHP发送日志到CACTI
本文链接:https://www.haomeiwen.com/subject/rnodsttx.html
网友评论