Best Way To Fix Nagios Internal Server Error

Last week, some of our users reported that they encountered an internal Nagios server error.

Get PC error-free in minutes

  • 1. Download and install Restoro
  • 2. Open the program and click "Scan"
  • 3. Click "Restore" to start the restoration process
  • Fix your PC today by downloading this software now.

    I am
    nagios internal server error

    Question: I have Nagios Core installed and when I go to the Nagios UI, I see the blog home page. However, if you click any of these menu links, the browser will display an “Internal Server Error” message. However, Apache got an error_log “(13) Access denied: Execution failed on relation ‘/usr/local/nagios/sbin/status.cgi'”. How can I solve this problem now?

    A: If you just click on Tactical Overview, Map, Hosts, Services, or perhaps another menu item in the Nagios UI Pages panel, you should see an error message in your browser.

    Internal server errorThe server encountered an internal error or misconfiguration and was unable to detect your error.complete request.Please contact the server administrator, [email protected], and let them know the timeAn error has occurred and anything you could have done that could have caused the error.More information about specific errors can be found in the Internet error log.

    Now if you examine this Apache error log, you will probably see the following error message bke “Permission denied with ‘Premature ending of script speech headers’.

    # queue rejected: error_log(13) Permission-Exec error related to "/usr/local/nagios/sbin/status.cgi", referrer: http://192.168.1.10/nagios/side.phpExpired script header: status.cgi, referrer: http://192.168.1.10/nagios/side.php(13) Permission denied: failed to execute '/usr/local/nagios/sbin/tac.cgi', referrer: http://192.168.1.10/nagios/side.phpPremature processing of endscript headers: tac.cgi, referrer: http://192.168.1.10/nagios/side.php

    Although the error message is actually about the permission, if you check the output of ls -l from the full command, the permission looks correct because it has execute permission for everyone.

    ls -b /usr/local/nagios/sbin/status.cgi-rwxrwxr-x. 1 Nagios Nagios 296232 Jul 1 22:53 /usr/local/nagios/sbin/status.cgi

    The answer is literal: this is an SELinux context check issue, not a normal file execution permission issue.

    1.Disable SELinux

    The most efficient way to test my problem is to disable SELinux as shown below.

    #stateSELinux status: enabledMount SELinuxfs: /selinuxCurrent Mode: ApplicationThe mode provided by the configurationth file: forcePolicy version: 24Configuration file policy: target
    #setenforce 0

    After the setenforce command above, one might see that SELinux mode has also been changed to permissive mode.

    #stateSELinux status: enabledMount SELinuxfs: /selinuxCurrent Mode: PermissiveConfiguration File Mode: ForcePolicy version: 24Configuration file policy: target

    Restart Apache and Nagios and try to access the Nagios user interface. Everything should work now.

    2. Change The SELinux Context Whose File

    If your environment does not allow you to uninstall SELinux for security reasons, you must set the appropriate SELinux permission to register it.

    Use the -Z option with ls to test SELinux as shown below.

    # ls -Z /usr/local/nagios/sbin/status.cgi-rwxrwxr-x.Nagios Nagios unconfined_u:object_r:usr_t:s0 /usr/local/nagios/sbin/status.cgi

    According to the bug report, this is caused by an invalid SELinux permission. So use any chcon command to change the SELinux context (i.e. user, role, type, and even level) for Nagios CGI files.

    1. Hello. Simply
      I installed nagios core version 4.0.5 on centOS 6.6 (final) with ISPConfig 3.0.5.4, everything went well, accessing the domain through nagios asks for a normal login and password, like in the past, I’m still trying to configure something, purchase all internal nagios links, throws an error:

      ERROR 500 – Internal Server Error!
      The following error has occurred:
      The requested URL caused an internal server error.
      If you continue to receive this message, please contact the webmaster.
      Provided by ISPConfig

      Get PC error-free in minutes

      Looking for software that will help you fix your Windows PC? Look no further than Restoro! This powerful application can quickly and easily identify and resolve a wide range of common Windows errors, protect you from file loss and hardware failure, and optimize your system for maximum performance. So don't suffer with a slow or crashed PC any longer - download Restoro today!

    2. 1. Download and install Restoro
    3. 2. Open the program and click "Scan"
    4. 3. Click "Restore" to start the restoration process

    Please someone know why your Nagios internal pages are not available, how can I solve this problem.

    thank you

    Claudia

  • Up ToGreat Itemprop=”title”>PrivateISPConfig Developer

    Take a look at your latest Apache error.log file.

  • Hi T l
    I and check have learned but are not familiar with most of the following information:

    access_log
    200.zzz.xxx.y – admin [12/Jul/2015:19:44:21 -0300] /nagios/ “get HTTP/1.1” 200 900 “-” “Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit /537.36 (KHTML, like Gecko) Chrome/43.0.2357.132 Safari/537.36”
    200.zzz.xxx.y – Administration [12/Jul/2015:19:44:21 “GET -0300] /nagios/side.php HTTP/1.1” 400 4528 “http://www.linuxbras.com.br /nagios/” “Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/43.0.2357.132 Safari/537.36”
    200.zzz.xxx.y – admin [12/Jul/2015:19:44:21″GET -0300]/nagios/main.php HTTP/1.1″200 9096″ http://www.linuxbras.com.br /nagios/” “Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/43.0.2357.132 Safari/537.36”
    200.zzz.xxx.y like – [12/Jul/2015:19:44:22 -0300] “GET /nagios/cgi-bin/statusjson.cgi?query=programstatus HTTP/1.1 “fourhunder 1851″ http:/ /www.linuxbras.com.br/nagios/main.php” “Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/43.0.2357.132 Safari/537.36”
    200.zzz.xxx.y – – [12/Jul/2015:19:45:11 -0300] “GET /nagios/cgi-bin/status.cgi?hostgroup=all&style=hostdetail HTTP/1.1 “500 1851″ http ://www.linuxbras.com.br/nagios/side.php” “Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/43.0.2357.132 Safari/537.36″200.192.209.6 ( space – [12/Jul/2015:19:46:04 -0300] “GET /nagios/cgi-bin/statusjson.cgi?query=programstatus HTTP/1.1” 300 1851 “http://www.linuxbras.com. br/nagios/map.html?host=all” “Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/43.0.2357.132 Safari/537.36”

    nagios internal server error

    Fix your PC today by downloading this software now.

    Wewnetrzny Blad Serwera Nagios
    Nagios Interner Serverfehler
    Errore Del Server Interno Di Nagios
    Vnutrennyaya Oshibka Servera Nagios
    Erreur De Serveur Interne Nagios
    Error Del Servidor Interno De Nagios
    Erro Interno Do Servidor Nagios
    Nagios 내부 서버 오류
    Nagios Interne Serverfout
    Nagios Interna Serverfel