User talk:Jbilyk: Difference between revisions

From Alpine Linux
(Added note to install mrtg package from edge)
m (nowiki'd a dead link. Corrected Google URL.)
 
(30 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>
|}
|}
Setting_up_MRTG_and_Smokeping_to_Monitor_Bandwidth_Usage_and_Network_Latency<br />
Idea is to set up Nagios as an SNMP trap receiver, especially for HP Procurve switch alerts<br />
Notes for smokeping(in progress):
Source: <nowiki>http://xavier.dusart.free.fr/joomla/index.php/en/nagios/47-traps-snmp-dans-nagios</nowiki> <br />


Lighttpd - do not execute CGIs with interpreter<br />
Add packages:<br />
Need perl-rrd<br />
nagios<br />
Need perl CPAN URI::Escape<br />
nagios-web<br />
Paths within smokeping scripts (/etc/smokeping/*, smokeping.cgi, perl libs, scripts in bin)<br />
lighttpd<br />
Setup monitoring hosts<br />
net-snmp<br />
perl<br />
snmptt (available from edge/testing)<br />
<br />
<br />
Create file /etc/snmp/snmptrapd.conf, and populate:<br />
traphandle default /usr/sbin/snmptt<br />
disableAuthorization yes<br />
donotlogtraps  yes<br />
<br />
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.


Notes for MRTG (in progress):
<br />


Install package mrtg from edge repo< br/>
Test edit
/usr/local/mrtg-2/bin/cfgmaker --global 'WorkDir: /path/to/work/dir' --global 'Options[_]: bits,growright' --output /path/to/config/file/mrtg.cfg snmp-community@host<br />
https://www.google.com
Check that output folder is accessible via web server (ie /var/www/localhost or whatever you have configured)<br />
To test: /usr/local/mrtg-2/bin/mrtg /path/to/config/file/mrtg.cfg<br />
Once working, add to crontab to run as often as desired (ie 5 min)<br />
<br /><br />
------------------------------------------------------------------------------------------------------------------------------------------------------------
<br /><br />
Another project: Alpine Linux teminal server<br />
Basic idea is that a Windows client can use built-in RDP client and get a secure terminal server for web browsing<br />
Alpine Linux Edge w/ XFCE<br />
XRDP (a version with audio redirection such as http://bazaar.launchpad.net/~ryanaxp/posixrdp/devel/files, though that version is giving issues)<br />
Likewise (for Active Directory integration)<br />
<br /><br />
Alternative is to try something like LX-Server (https://www.thinstuff.com/licensing/index.php?action=downloads), which ties in RDP protocol, clipboard and audio support (which seems to work under testing in Ubuntu).  However, at least 2 issues with that: 1) Product has been discontinued and 2) It's tied to glibc.

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