User talk:Jbilyk: Difference between revisions

From Alpine Linux
m (added perl as makedepends for php in howto)
(remove rt4 stuff)
(19 intermediate revisions by the same user not shown)
Line 2: Line 2:
|<div style="font-size: 1.5em; font-weight:bold;"> [[Image:Underconstruction_clock_icon_gray.svg‎|64px|left|link=]] This page is a work in progress ... </div><p style="text-align: center; font-size: 87%;">This page is still being developed.</p>
|<div style="font-size: 1.5em; font-weight:bold;"> [[Image:Underconstruction_clock_icon_gray.svg‎|64px|left|link=]] This page is a work in progress ... </div><p style="text-align: center; font-size: 87%;">This page is still being developed.</p>
|}
|}
NTLM single sign on under Apache<br />
Idea is to set up Nagios as an SNMP trap receiver, especially for HP Procurve switch alerts<br />
Prereqs:<br />
Source: http://xavier.dusart.free.fr/joomla/index.php/en/nagios/47-traps-snmp-dans-nagios <br />
From http://samba.org/ftp/unpacked/lorikeet/mod_auth_ntlm_winbind/:<br />
 
mod_auth_ntlm_winbind.c<br />
Add packages:<br />
configure.in<br />
  nagios<br />
  Makefile.in<br />
  nagios-web<br />
-----<br />
  lighttpd<br />
autoconf<br />
  net-snmp<br />
  alpine-sdk<br />
  perl<br />
  apache-dev<br />
  snmptt (available from edge/testing)<br />
  apr-util-dev<br />
  apr-dev<br />
  samba (joined to a Windows Domain) with winbind running<br />
<br />
<br />
Steps:<br />
Create file /etc/snmp/snmptrapd.conf, and populate:<br />
working dir is where the above 3 source files are<br />
traphandle default /usr/sbin/snmptt<br />
  autoconf<br />
  disableAuthorization yes<br />
  ./configure<br />
  donotlogtraps yes<br />
  make<br />
<br />
add to httpd.conf (module section):<br />
Edit /etc/conf.d/snmptrapd:<br />
LoadModule auth_ntlm_winbind_module lib/apache2/mod_auth_ntlm_winbind.so<br />
  OPTIONS="-On -Lsd -p /var/run/snmptrapd.pid"<br />
add to httpd.conf (virtual host):<br />
Start snmptrapd using init script.<br />
  AuthType NTLM<br />
Edit /etc/snmptt.ini and insert contents found at source link.<br />
NTLMauth on<br />
<br />
NTLMAuthHelper "/usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp"<br />
To be continued once my testing is complete :). With the config done as above, snmp traps will simply be logged to syslog since they're all unknown to snmptrapd.
Require user jbilyk<br />
 
-----<br />
<br />
Restart apache and test<br />
 
---------------------------------------------<br />
Test edit
PHP in Apache (temp until package made)<br />
http://www.google.com
Checkout aports git repo<br />
modify APKBUILD, adding --with-apxs2 to configure string<br />
add makedepends apr-util-dev apr-dev and apache-dev perl<br />
run abuild -r<br />
Since package doesn't completely build like that, wait until build fails<br />
Copy /usr/src/aports/main/php/pkg/php/usr/lib/apache2/libphp5.so to /usr/lib/apache2/<br />
Add the following to /etc/apache2/httpd.conf:<br />
LoadModule php5_module lib/apache2/libphp5.so
DirectoryIndex index.html index.php
AddHandler php5-script php
AddType text/html php
Restart apache.

Revision as of 21:53, 16 June 2011

This page is a work in progress ...

This page is still being developed.

Idea is to set up Nagios as an SNMP trap receiver, especially for HP Procurve switch alerts
Source: http://xavier.dusart.free.fr/joomla/index.php/en/nagios/47-traps-snmp-dans-nagios

Add packages:

nagios
nagios-web
lighttpd
net-snmp
perl
snmptt (available from edge/testing)


Create file /etc/snmp/snmptrapd.conf, and populate:

traphandle default /usr/sbin/snmptt
disableAuthorization yes
donotlogtraps yes


Edit /etc/conf.d/snmptrapd:

OPTIONS="-On -Lsd -p /var/run/snmptrapd.pid"

Start snmptrapd using init script.
Edit /etc/snmptt.ini and insert contents found at source link.

To be continued once my testing is complete :). With the config done as above, snmp traps will simply be logged to syslog since they're all unknown to snmptrapd.


Test edit http://www.google.com