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登录成功。

  • 相关阅读:
    委托示例一则
    JQuery学习笔记(3)JQuery中的DOM操作
    JQuery学习笔记(2)JQuery选择器
    把.net的web开发补起来,徐图之
    今天把swagger补了一下
    Azure Cosmos DB Core (SQL)
    wcf callback channel问题多多
    gitlab安装
    Kubernetes
    搜索功能实现
  • 原文地址:https://www.cnblogs.com/guoyabin/p/4367846.html
Copyright © 2011-2022 走看看