equal
deleted
inserted
replaced
14 |
14 |
15 Arborist is a monitoring toolkit that follows the UNIX philosophy |
15 Arborist is a monitoring toolkit that follows the UNIX philosophy |
16 of small parts and loose coupling for stability, reliability, and |
16 of small parts and loose coupling for stability, reliability, and |
17 customizability. |
17 customizability. |
18 |
18 |
19 This adds fping sweeping support to Arborist monitoring, which is an |
19 This adds fping sweeping support to Arborist monitoring, providing an |
20 efficient means to check the ICMP reachability of many, many hosts |
20 efficient method to check the ICMP reachability of many, many hosts |
21 simultaneously. |
21 simultaneously. |
22 |
22 |
23 It requires the fping binary to be installed in your path. Use your |
23 It requires the fping binary to be installed in your path. Use your |
24 package manager of choice. |
24 package manager of choice. |
25 |
25 |
26 |
26 |
27 ## Prerequisites |
27 ## Prerequisites |
28 |
28 |
29 * Ruby 2.2 or better |
29 * Ruby 2.4 or better |
30 |
30 |
31 |
31 |
32 ## Installation |
32 ## Installation |
33 |
33 |
34 $ gem install arborist-fping |
34 $ gem install arborist-fping |
52 require 'arborist/monitor/fping' |
52 require 'arborist/monitor/fping' |
53 |
53 |
54 Arborist::Monitor 'ping check' do |
54 Arborist::Monitor 'ping check' do |
55 every 10.seconds |
55 every 10.seconds |
56 match type: 'host' |
56 match type: 'host' |
57 include_down true |
|
58 use :addresses |
|
59 exec 'fping', '-e', '-t', '150' |
57 exec 'fping', '-e', '-t', '150' |
60 exec_callbacks( Arborist::Monitor::FPing ) |
58 exec_callbacks( Arborist::Monitor::FPing ) |
61 end |
59 end |
62 |
60 |
63 That's it. |
61 That's it. |
64 |
62 |
65 |
63 |
66 ## License |
64 ## License |
67 |
65 |
68 Copyright (c) 2016, Michael Granger and Mahlon E. Smith |
66 Copyright (c) 2016-2018, Michael Granger and Mahlon E. Smith |
69 All rights reserved. |
67 All rights reserved. |
70 |
68 |
71 Redistribution and use in source and binary forms, with or without |
69 Redistribution and use in source and binary forms, with or without |
72 modification, are permitted provided that the following conditions are met: |
70 modification, are permitted provided that the following conditions are met: |
73 |
71 |