Six major Nagios FAQs

Source: Internet
Author: User

Nagios FAQ 1:

It appears as though you do not have permission to view information for any of the hosts you requested

Temporary solution:

Sed-I's/use_authentication = 1/use_authentication = 0/G'/usr/local/nagios/etc/cgi. cfg

(If authentication is canceled, you can browse the host status, but cannot execute External commands on nagios web)

Solution:

Users logging on to the nagios web interface must match the user configured in/usr/local/nagios/etc/cgi. cfg. They cannot be manually added or separated by commas.

Nagios FAQ 2:

 
 
  1. Sorry Dave, I can't let you do that...  
  2.  
  3. It seems that you have chosen to not use the authentication functionality of the CGIs.  
  4.  
  5. I don't want to be personally responsible for what may happen as a result of allowing unauthorized users to issue commands to Nagios,so you'll have to disable this safeguard if you are really stubborn and want to invite trouble.  
  6.  
  7. Read the section on CGI authentication in the HTML documentation to learn how you can enable authentication and why you should want to. 

Cause: Authentication Not Enabled

Solution: enable authentication to solve the problem. edit the file/usr/local/nagios/etc/cgi. cfg, set use_authentication to 1 (0/1 off/enabled) use_authentication = 1, and restart nagios service nagios restart

Nagios FAQ 3:

 
 
  1. It appears as though you do not have permission to view information for any of the hosts you requested...  
  2.  
  3. If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI  
  4.  
  5. and check the authorization options in your CGI configuration file. 

Cause: the authenticated user is incorrect.

Enable authentication: The authenticated user must be nagiosadmin by default in the cgi. cfg configuration file. If you create another user, add it. Multiple users are separated by commas (,).

 
 
  1. authorized_for_system_information=nagiosadmin 
  2.  
  3. authorized_for_configuration_information=nagiosadmin 
  4.  
  5. authorized_for_system_commands=nagiosadmin 
  6.  
  7. authorized_for_all_services=nagiosadmin 
  8.  
  9. authorized_for_all_hosts=nagiosadmin 
  10.  
  11. authorized_for_all_service_commands=nagiosadmin 
  12.  
  13. authorized_for_all_host_commands=nagiosadmin 

If it is not nagiosadmin, you must add it later. For example, authorized_for_system_information = nagiosadmin, admin

Nagios FAQ 4:

An error occurred while calling an external command. The permission may be insufficient.

Solution:

Temporary solution:

Chown-R nagios. nagcmd/usr/local/nagios/var/rw

Chmod-R 777/usr/local/nagios/var/rw

Why is it solved on a temporary basis? After nagios is restarted, the permission will be restored, but you still do not have the permission to execute it.

Solution:

When installing nagios, You must select the correct user and then install nagios.

 
 
  1. ./configure --with-group=nagios --with-user=nagios --with-command-group=nagcmd --with-gd-lib=/usr/lib --with-gd-inc=/usr/include  
  2.  
  3. make all  
  4.  
  5. make install  
  6.  
  7. make install-init  
  8.  
  9. make install-config  
  10.  
  11. make install-commandmode 
  12.  
  13. === 

Rw agios. cmd permission is nagios. nagios. You also need to add web users to the nagios group so that you have the permission to execute nagios. cmd.

Nagios FAQ 5:

3D browsing error, prompting to download statuswrl. cgi

Solution: Install the 3D browser plug-in.

The reason is that there is no plug-in that supports the 3D browsing of the company. The object-oriented 3D modeling language of the company needs to be installed with the support plug-in for browsing. The Cortona vrml Client is an excellent plug-in for the 3D browsing of the company.

Http://download.pcpop.com/Down/48664.html

Http://down2.pcpop.com/softdown/exp/cortvrml.zip

Nagios FAQ 6:

The image cannot be viewed when you view the help document.

The reason is that the url is incorrect.

Image source address http: // nagios_ip/pub/images/reachability1.png

Actual address/usr/local/nagios/share/docs/images/reachability1.png

Solution: Configure apache to add an alias

Alias/pub "/usr/local/nagios/share/docs"

Apachectl restart

Restart apache

Have you learned these common problems and solutions of nagios? I believe this is a very useful resource and hope these methods can help you solve the problem.

Related Article

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.