- [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 | ||
hardware:majak [2016/02/23 21:39] admin |
hardware:majak [2016/02/28 01:45] (current) admin |
||
---|---|---|---|
Line 9: | Line 9: | ||
- | Overit funkcnost majaku na strane serveru muzete na dvou kontrolnich mistech | + | ====== Overit funkcnost majaku ====== |
+ | na strane serveru muzete na dvou kontrolnich mistech | ||
1. zapsat primo na /dev/ttyUSB0 | 1. zapsat primo na /dev/ttyUSB0 | ||
echo start_blink > /dev/ttyUSB0 | echo start_blink > /dev/ttyUSB0 | ||
Line 38: | Line 39: | ||
</code> | </code> | ||
- | ===== Konfigurace Inetd.conf ===== | + | ====== Konfigurace nagiosu ====== |
+ | <code> | ||
+ | define command { | ||
+ | command_name notify-by-majak | ||
+ | command_line /usr/bin/printf "%b" "Neco je $SERVICESTATE$" | nc 10.0.5.5 6555 | ||
+ | } | ||
+ | </code> | ||
+ | |||
+ | ====== Konfigurace Inetd.conf ====== | ||
<code> | <code> | ||
6555 stream tcp nowait majak /home/majak/bin/majak.sh noarg | 6555 stream tcp nowait majak /home/majak/bin/majak.sh noarg | ||
</code> | </code> | ||
- | ===== Poslouchajici skript majak.sh ====== | + | ====== Poslouchajici skript majak.sh ======= |
Musite pridat uzivatele //majak// a napriklad na Debianu ho jeste dat do skupiny 'dialout', protoze jinak nema prava sahat na /dev/ttyUSB0. | Musite pridat uzivatele //majak// a napriklad na Debianu ho jeste dat do skupiny 'dialout', protoze jinak nema prava sahat na /dev/ttyUSB0. | ||
hardware/majak.1456259963.txt.gz · Last modified: 2016/02/23 21:39 by admin