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:
- Sorry Dave, I can't let you do that...
-
- It seems that you have chosen to not use the authentication functionality of the CGIs.
-
- 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.
-
- 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:
- 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.
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 (,).
- authorized_for_system_information=nagiosadmin
-
- authorized_for_configuration_information=nagiosadmin
-
- authorized_for_system_commands=nagiosadmin
-
- authorized_for_all_services=nagiosadmin
-
- authorized_for_all_hosts=nagiosadmin
-
- authorized_for_all_service_commands=nagiosadmin
-
- 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.
- ./configure --with-group=nagios --with-user=nagios --with-command-group=nagcmd --with-gd-lib=/usr/lib --with-gd-inc=/usr/include
-
- make all
-
- make install
-
- make install-init
-
- make install-config
-
- make install-commandmode
-
- ===
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.