摘要: 1、使用htpasswd生成密码 使用apache生成/usr/local/apache2/bin/htpasswd -c ./htpasswd.users nagiosadmin 拷贝到nginx的服务器上,cp htpasswd.users /usr/local/nagios/etc/ 2、/u 阅读全文
posted @ 2016-05-17 14:42 巫谢 阅读(1093) 评论(0) 推荐(0) 编辑
摘要: 原因分析,nginx不支持post。 解决方法,重新编译nagios 1、vi /nagios-4.0.8/cgi/cmd.c 找到printf("<form method='post' action='%s'>\n", COMMAND_CGI); post修改为get 2、重新make,不需要ma 阅读全文
posted @ 2016-05-17 13:47 巫谢 阅读(802) 评论(0) 推荐(0) 编辑
摘要: 加上rewrite 阅读全文
posted @ 2016-05-17 11:02 巫谢 阅读(395) 评论(0) 推荐(0) 编辑
摘要: 使用nginx+nagios无法载入静态资源,看了下url中增加了一个/nagios 查看是/usr/local/nagios/etc/cgi.conf中url_html_path=/nagios 将这个改成url_html_path = /就可以了 阅读全文
posted @ 2016-05-17 10:56 巫谢 阅读(131) 评论(0) 推荐(0) 编辑