免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 8489 | 回复: 5

nagios 用户和密码无效的问题 [复制链接]

论坛徽章:
0
发表于 2010-04-09 12:31 |显示全部楼层
[root@centos5-7 nagios-3.2.0]# tail /var/log/httpd/error_log
[Thu Apr 08 19:59:50 2010] [error] [client 192.168.1.1] (2)No such file or directory: Could not open password file: /usr/local/nagios/etc/htpasswd.users
[Thu Apr 08 19:59:50 2010] [error] [client 192.168.1.1] access to /nagios failed, reason: verification of user id 'nagiosadmin' not configured
[Thu Apr 08 19:59:51 2010] [error] [client 192.168.1.1] (2)No such file or directory: Could not open password file: /usr/local/nagios/etc/htpasswd.users
[Thu Apr 08 19:59:51 2010] [error] [client 192.168.1.1] access to /nagios failed, reason: verification of user id 'nagiosadmin' not configured
[Thu Apr 08 20:00:47 2010] [error] [client 192.168.1.1] (2)No such file or directory: Could not open password file: /usr/local/nagios/etc/htpasswd.users
[Thu Apr 08 20:00:47 2010] [error] [client 192.168.1.1] access to /nagios failed, reason: verification of user id 'nagiosadmin' not configured
[Thu Apr 08 20:00:48 2010] [error] [client 192.168.1.1] (2)No such file or directory: Could not open password file: /usr/local/nagios/etc/htpasswd.users
[Thu Apr 08 20:00:48 2010] [error] [client 192.168.1.1] access to /nagios failed, reason: verification of user id 'nagiosadmin' not configured
[Thu Apr 08 20:00:53 2010] [error] [client 192.168.1.1] (2)No such file or directory: Could not open password file: /usr/local/nagios/etc/htpasswd.users
[Thu Apr 08 20:00:53 2010] [error] [client 192.168.1.1] access to /nagios failed, reason: verification of user id 'nagios' not configured
[root@centos5-7 nagios-3.2.0]# ll /usr/local/nagios/etc/htpasswd.user
-rwxrwx--- 1 apache apache 26 Apr  8 19:54 /usr/local/nagios/etc/htpasswd.user
[root@centos5-7 nagios-3.2.0]# more /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#        enforcing - SELinux security policy is enforced.
#        permissive - SELinux prints warnings instead of enforcing.
#        disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
#        targeted - Only targeted network daemons are protected.
#        strict - Full SELinux protection.
SELINUXTYPE=targeted
[root@centos5-7 nagios-3.2.0]# setenforce 0
   帮我看看

论坛徽章:
0
发表于 2010-04-09 12:38 |显示全部楼层
我在web下能访问,但是输入密码后提示
Authorization Required
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.

论坛徽章:
1
摩羯座
日期:2014-05-01 14:18:58
发表于 2010-04-09 12:45 |显示全部楼层
ll /usr/local/nagios/etc/htpasswd.user


No such file or directory: Could not open password file: /usr/local/nagios/etc/htpasswd.users

论坛徽章:
0
发表于 2010-04-09 13:13 |显示全部楼层
本帖最后由 jacky_hui 于 2010-04-09 13:14 编辑

mv /usr/local/nagios/etc/htpasswd.user  /usr/local/nagios/etc/htpasswd.users

你设的文件名跟配置文件中的不一样。

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
发表于 2010-04-09 13:49 |显示全部楼层
检查下web认证文件 /usr/local/nagios/etc/htpasswd.users是否已经有了

论坛徽章:
0
发表于 2010-04-09 17:25 |显示全部楼层
你们太帅了,我没太注意
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP