omd nagtrap config

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
skyerjoe
Posts: 56
Joined: Thu Mar 22, 2012 2:57 am

omd nagtrap config

Post by skyerjoe »

Hey guys

I tried to integrate the nagtrap addon from here http://nagtrap.org/doku.php/en:start in the omd distribution http://omdistro.org/

i v'e do the following install procedure:

http://nagtrap.org/doku.php/en:doku:installation


so i think sth is still wrong with the apache config ....also i'm not sure if this the right apache conf file ...

here is the modified config file:

/opt/omd/sites/testgui/etc/nagios/apache.conf:

Code: Select all

# Apache configuration for access to Nagios web GUI

# Handle locally installed files via the internal URI /noc/check_mk/local
# These are files stored below local/share/check_mk/web/htdocs
Alias /testgui/nagios/local /omd/sites/testgui/local/share/nagios/htdocs
<Directory /omd/sites/testgui/local/share/nagios/htdocs>
Order deny,allow
allow from all
</Directory>

ScriptAlias /testgui/nagios/cgi-bin /omd/sites/testgui/lib/nagios/cgi-bin
<Directory /omd/sites/testgui/lib/nagios/cgi-bin>
Order allow,deny
Allow from all
SetEnv NAGIOS_CGI_CONFIG "/omd/sites/testgui/etc/nagios/cgi.cfg"
</Directory>

Alias /testgui/nagios /omd/sites/testgui/share/nagios/htdocs
<Directory /omd/sites/testgui/share/nagios/htdocs>
Order allow,deny
Allow from all
# Rewrite rules for handling the local-hierarchy. All URI to static
# files are redirected, if those exist in local/. Thus the user
# even can override shipped static files.
RewriteEngine on
RewriteCond "/omd/sites/testgui/local/share/nagios/htdocs/$1" "-f"
RewriteRule "(.*)" "/testgui/nagios/local/$1"
</Directory>
and here is the section which i 've added for the nagtrap config:
#### own nagtrap site####
Alias /testgui/nagios/nagtrap /omd/sites/testgui/share/nagios/nagtrap/index.html
<Directory /omd/sites/testgui/share/nagios/nagtrap>
#Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
best regards

skyerjoe
Locked