nagios维护之常见问题

一、重启nagios 报错:

  Starting nagios:This account is currently not available.     #这个账户目前不可用;

  

  解决方法:

    a、编辑/etc/passwd

      把 nagios:x:501:501::/home/nagios:/sbin/nologin   修改为:

      nagios:x:501:501::/home/nagios:/bin/bash 

    b、重启nagios

二、nagios 监控出现It appears as though you do not have permission

  监控页面出现    

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.

  解决方法:

    a、修改/usr/local/nagios/etc/cgi.cfg 

      use_authentication=1 #把1修改为0

    b、重启nagios

 

    

 


__EOF__

本文作者语 默
本文链接https://www.cnblogs.com/weijie0717/p/4767986.html
关于博主:评论和私信会在第一时间回复。或者直接私信我。
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
声援博主:如果您觉得文章对您有帮助,可以点击文章右下角推荐一下。您的鼓励是博主的最大动力!
posted @   语~默  阅读(170)  评论(0编辑  收藏  举报
编辑推荐:
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
阅读排行:
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· Qt个人项目总结 —— MySQL数据库查询与断言
点击右上角即可分享
微信分享提示