User talk:Jbilyk: Difference between revisions

From Alpine Linux
(Added NTLM single sign-on under Apache)
m (nowiki'd a dead link. Corrected Google URL.)
 
(24 intermediate revisions by one other 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
Idea is to set up Nagios as an SNMP trap receiver, especially for HP Procurve switch alerts<br />
Prereqs:
Source: <nowiki>http://xavier.dusart.free.fr/joomla/index.php/en/nagios/47-traps-snmp-dans-nagios</nowiki> <br />
From http://samba.org/ftp/unpacked/lorikeet/mod_auth_ntlm_winbind/:
mod_auth_ntlm_winbind.c
configure.in
Makefile.in
-----
autoconf
alpine-sdk
apache-dev
apr-util-dev
apr-dev
samba (joined to a Windows Domain) with winbind running


Steps:
Add packages:<br />
working dir is where the above 3 source files are
nagios<br />
autoconf
nagios-web<br />
./configure
lighttpd<br />
make
net-snmp<br />
add to httpd.conf (module section):
perl<br />
LoadModule auth_ntlm_winbind_module lib/apache2/mod_auth_ntlm_winbind.so
snmptt (available from edge/testing)<br />
add to httpd.conf (virtual host):
<br />
AuthType NTLM
Create file /etc/snmp/snmptrapd.conf, and populate:<br />
NTLMauth on
traphandle default /usr/sbin/snmptt<br />
NTLMAuthHelper "/usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp"
disableAuthorization yes<br />
Require user jbilyk
donotlogtraps  yes<br />
-----
<br />
Restart apache and test
Edit /etc/conf.d/snmptrapd:<br />
OPTIONS="-On -Lsd -p /var/run/snmptrapd.pid"<br />
Start snmptrapd using init script.<br />
Edit /etc/snmptt.ini and insert contents found at source link.<br />
<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.
 
<br />
 
Test edit
https://www.google.com

Latest revision as of 02:00, 28 August 2023

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 https://www.google.com