CGI乱码的解决:
Status Grid For
It appears as though you do not have permission to view information for any of the hosts you requested...
If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI
and check the authorization options in your CGI configuration file.
There doesn't appear to be any host status information in the status log...
Make sure that Nagios is running and that you have specified the location of you status log correctly in the configuration files.
Sorry, but hostgroup '%s' doesn't seem to exist...
出现以上报错,解决办法:修改Apache2 的配置文件httpd.cfg,最后地方添加入一行:AddDefaultCharset UTF-8 (注释:这里UTF有区分大小写)
Status Grid For
It appears as though you do not have permission to view information for any of the hosts you requested...
If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI
and check the authorization options in your CGI configuration file.
There doesn't appear to be any host status information in the status log...
Make sure that Nagios is running and that you have specified the location of you status log correctly in the configuration files.
Sorry, but hostgroup '%s' doesn't seem to exist...
出现以上报错,解决办法:修改Apache2 的配置文件httpd.cfg,最后地方添加入一行:AddDefaultCharset UTF-8 (注释:这里UTF有区分大小写)

本文介绍了如何解决CGI程序中出现的乱码问题。主要通过修改Apache2的配置文件httpd.cfg,在文件末尾添加特定配置来实现字符集的统一设置。
362

被折叠的 条评论
为什么被折叠?



