Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # -*- sh -*-
- : << =cut
- =head1 NAME
- Network - Plugin to measure packet loss.
- =head1 NOTES
- Random info here..
- =head1 AUTHOR
- Contributed by sawo
- =head1 LICENSE
- 1337 license
- =head1 MAGIC MARKERS
- #%# family=auto
- #%# capabilities=autoconf
- =cut
- if [ "$1" = "autoconf" ]; then
- echo yes
- exit 0
- fi
- if [ "$1" = "config" ]; then
- cat <<'EOM'
- graph_title Ping Statistics - EDYN-LNK-02 - Pkt. Loss(%)
- graph_vlabel Packet Loss (%) per 100 packets
- holdcroft2.label Holdcroft(192.168.0.3)
- parkway2.label Parkway(10.232.149.66)
- sandicliffe2.label Sandicliffe(10.10.11.2)
- sandicliffeGW2.label Sandicliffe GW Router(195.171.82.208)
- tguk2.label TGUK(10.232.170.220)
- tldarby2.label TLDarby(172.22.223.129)
- google2.label Google DNS (8.8.8.8)
- graph_scale no
- graph_category Network
- graph_info EDYN-LNK-02 Packet Loss (%")
- EOM
- exit 0;
- fi
- testvar=$(find /home/public/EDYN-LNK-02/192.168.0.3.txt -mmin -60)
- if [ -n $testvar ]; then
- echo -n "holdcroft2.value "
- cut -d' ' -f1 $testvar
- else
- echo -n "holdcroft2.value "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement