zoukankan      html  css  js  c++  java
  • 修改nagios密码和遇到的问题

    htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
    
    密码
    
    密码
    
    service httpd restart
    

      

    由于本屌丢掉一个s使/var/log/httpd/error.log中报错

    [Thu Mar 26 09:54:42 2015] [error] [client 192.168.28.116] (2)No such file or directory: Could not open password file: /usr/local/nagios/etc/htpasswd.users
    [Thu Mar 26 09:54:42 2015] [error] [client 192.168.28.116] access to /nagios failed, reason: verification of user id 'nagiosadmin' not configured
    [Thu Mar 26 09:54:45 2015] [error] [client 192.168.28.116] (2)No such file or directory: Could not open password file: /usr/local/nagios/etc/htpasswd.users
    [Thu Mar 26 09:54:45 2015] [error] [client 192.168.28.116] access to /nagios failed, reason: verification of user id 'nagiosadmin' not configured
    [Thu Mar 26 09:54:45 2015] [error] [client 192.168.28.116] (2)No such file or directory: Could not open password file: /usr/local/nagios/etc/htpasswd.users
    [Thu Mar 26 09:54:45 2015] [error] [client 192.168.28.116] access to /nagios failed, reason: verification of user id 'nagiosadmin' not configured
    [Thu Mar 26 09:54:48 2015] [error] [client 192.168.28.116] (2)No such file or directory: Could not open password file: /usr/local/nagios/etc/htpasswd.users
    [Thu Mar 26 09:54:48 2015] [error] [client 192.168.28.116] access to /nagios failed, reason: verification of user id 'nagiosadmin' not configured

    这是默认password使用的htpasswd.users文件造成的,后来笨屌直接cp htpasswd.user htpasswd.users。刷新网页,nagios登录成功。

  • 相关阅读:
    排序去重
    $(...)[0].attr is not a function问题
    daterangepicker的汉化和简单使用
    wx.openSetting的调整
    css3中-moz、-ms、-webkit与盒子模型
    动态翻滚的导航条
    CSS3 transition 浏览器兼容性
    jq实现两个input输入同时不为空时,改变确认框背景颜色
    js 监听input 实现数据绑定
    关于html 修改滚动条的问题
  • 原文地址:https://www.cnblogs.com/guoyabin/p/4367846.html
Copyright © 2011-2022 走看看