Skrevet av Emne: Apache directives needed to use the NAGIOS CGI interface  (Lest 2440 ganger)

ATC

  • Gjest
Apache directives needed to use the NAGIOS CGI interface
« på: 27. ſeptember 2008, 18:24 pm »
  • [applaud]0
  • [smite]0
  • The manual is quite unclear on exactly what is needed when you want to use the NAGIOS CGI interface.



    ATC

    • Gjest
    [Solved] Apache directives needed to use the NAGIOS CGI interface
    « Svar #1 på: 27. ſeptember 2008, 18:24 pm »
  • [applaud]0
  • [smite]0
  • Add the following to your httpd.conf file:

    # Added for NAGIOS
    ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/

        AllowOverride AuthConfig
        Options ExecCGI
        Order allow,deny
        Allow from all


    Alias /nagios/ /usr/local/nagios/share/


    AllowOverride AuthConfig
    order allow,deny
    allow from all

    # End of NAGIOS

    In addition you may have to edit your access.conf file, and we recommend you add a strict .htaccess file. Here is our
    /usr/local/nagios/sbin/.htaccess file:

    AuthName "Nagios Access"
    AuthType Basic
    AuthUserFile /usr/local/nagios/etc/htpasswd.users
    require valid-user

    The htpasswd file is created with the htpasswd utility as usual.