Common errors in Nagios

Source: Internet
Author: User
Tags log log log

First, the start times wrong

"Starting Nagios:this account isn't currently available"

Workaround:

Modify/ETC/PASSWD

Change the/sbin/nologin into/bin/bash

Second, Nagios installed, Web Access to the following error:

You do not have permission to view information for any host.

Check the HTTP server's access rights settings for this CGI.

Solution:

Vi/usr/local/nagios/etc/cgi.cfg

Change the value of Use_authentication to 0.

Use_authentication=0

and restart the Nagios service.

Service Nagios Restart

It is also possible:

Hostname and service_description in the configuration file use Chinese.

Advise hostname and service_description not to use Chinese

Third, the visit appears garbled

Typically, the Apache configuration file has a coding problem

Workaround:

Vim/usr/local/apache2/conf/httpd.conf

Finally add Adddefaultcharset utf-8

Four, appears the requested url/nagios/cgi-bin/statusmap.cgi is not found on this server error

Workaround:

Determine the installation Gd-devel package

And then back to the extract directory,

#make Clean

Recompile installation

#./configure--with-gd-lib=/usr/lib--with-gd-inc=/usr/include

Next

#./configure--with-command-group=nagcmd

#make all;

make install;

Make install-init;

Make install-config;

Make Install-commandmode;

Makeinstall-webconf

V. To view the Nagios.log log, the following error occurred:

Ndomod:could not Open Data sink! I ' ll keep trying, but some output may get lost ...

Solution Idea:

# vim/usr/local/nagios/etc/ndo2db.cfg

Ndo2db_user=nagios

Ndo2db_group=nagcmd

Note that the second, ndo2db group, is nagcmd. Because the previous system plus user Nagios is the Nagcmd group.

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/Servers/web/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.