- [Show page]
- [Old revisions]
- [[unknown link type]]
- []
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux:skoleni:start [2014/06/24 15:27] admin |
linux:skoleni:start [2014/06/27 09:26] (current) vondra [Bonus] |
||
---|---|---|---|
Line 153: | Line 153: | ||
</code> | </code> | ||
| | ||
+ | ====== Mereni a ladeni vykonu ====== | ||
+ | <code> | ||
+ | vi /etc/collectd/collectd.conf | ||
+ | |||
+ | locate collection.cgi | ||
+ | /usr/share/doc/collectd-core/examples/collection.cgi | ||
+ | cp /usr/share/doc/collectd-core/examples/collection.cgi /usr/lib/cgi-bin/ | ||
+ | </code> | ||
+ | ===== MRTG a SNMPd ===== | ||
+ | <file bash /etc/snmp/snmpd.conf> | ||
+ | # sec.name source community | ||
+ | com2sec readonly default public | ||
+ | |||
+ | # GrupnSex.Name sec.model sec.name | ||
+ | group MyROGroup v1 readonly | ||
+ | group MyROGroup v2c readonly | ||
+ | group MyROGroup usm readonly | ||
+ | |||
+ | # incl/excl subtree mask | ||
+ | view all included .1 80 | ||
+ | |||
+ | # context sec.model sec.level match read write notif | ||
+ | access MyROGroup "" any noauth exact all none none | ||
+ | </file> | ||
+ | |||
+ | cfgmaker --zero-speed=1000000000 public@127.0.0.1 >/etc/mrtg.cfg | ||
+ | |||
+ | Rucni spusteni mrtg misto /etc/cron.d/mrtg | ||
+ | env LANG=C /usr/bin/mrtg /etc/mrtg.cfg | ||
+ | |||
+ | ===== Firewall Iptables ====== | ||
+ | tcpdump -i eth0 -n tcp port 25 | ||
+ | |||
+ | indexmaker /etc/mrtg.cfg >/var/www/mrtg/index.html | ||
+ | |||
====== Bonus ====== | ====== Bonus ====== | ||
<code> | <code> | ||
Line 162: | Line 197: | ||
xdotool key --window $WID F5 | xdotool key --window $WID F5 | ||
sleep 0.5 | sleep 0.5 | ||
+ | # next line needs tweaking when nagios changes its layout - XY coordinates of the click | ||
xdotool mousemove --sync 50 330 | xdotool mousemove --sync 50 330 | ||
sleep 0.5 | sleep 0.5 |
linux/skoleni/start.1403616435.txt.gz · Last modified: 2014/06/24 15:27 by admin