| 39 | defProperty('source1', "nodeA", "ID of a resource") |
| 40 | defProperty('source2', "nodeB", "ID of a resource") |
| 41 | defProperty('source3', "nodeC", "ID of a resource") |
| 42 | defProperty('source4', "nodeD", "ID of a resource") |
| 43 | defProperty('source5', "nodeE", "ID of a resource") |
| 44 | |
| 45 | #defProperty('sink1', "nodeA", "ID of a sink") |
| 46 | #defProperty('sink2', "nodeB", "ID of a sink") |
| 47 | #defProperty('sink3', "nodeC", "ID of a sink") |
| 48 | #defProperty('sink4', "nodeD", "ID of a sink") |
| 49 | #defProperty('sink5', "nodeE", "ID of a sink") |
| 50 | |
| 51 | defProperty('sinkaddr11', '192.168.4.10', "Ping destination address") |
| 52 | defProperty('sinkaddr12', '192.168.5.12', "Ping destination address") |
| 53 | |
| 54 | defProperty('sinkaddr21', '192.168.4.11', "Ping destination address") |
| 55 | defProperty('sinkaddr22', '192.168.2.12', "Ping destination address") |
| 56 | defProperty('sinkaddr23', '192.168.1.13', "Ping destination address") |
| 57 | |
| 58 | defProperty('sinkaddr31', '192.168.5.11', "Ping destination address") |
| 59 | defProperty('sinkaddr32', '192.168.2.10', "Ping destination address") |
| 60 | defProperty('sinkaddr33', '192.168.3.13', "Ping destination address") |
| 61 | defProperty('sinkaddr34', '192.168.6.14', "Ping destination address") |
| 62 | |
| 63 | defProperty('sinkaddr41', '192.168.1.10', "Ping destination address") |
| 64 | defProperty('sinkaddr42', '192.168.3.12', "Ping destination address") |
| 65 | |
| 66 | defProperty('sinkaddr51', '192.168.6.12', "Ping destination address") |
| 67 | |
| 68 | defApplication('ping_app', 'pingmonitor') do |a| |
| 69 | a.path = "/root/pingWrap.rb" |
| 70 | a.version(1, 2, 0) |
| 71 | a.shortDescription = "Wrapper around ping" |
| 72 | a.description = "ping application" |
| 73 | a.defProperty('dest_addr', 'Address to ping', '-a', {:type => :string, :dynamic => false}) |
| 74 | a.defProperty('count', 'Number of times to ping', '-c', {:type => :integer, :dynamic => false}) |
| 75 | a.defProperty('interval', 'Interval between pings in s', '-i', {:type => :integer, :dynamic => false}) |
| 76 | |
| 77 | a.defMeasurement('myping') do |m| |
| 78 | m.defMetric('dest_addr',:string) |
| 79 | m.defMetric('ttl',:int) |
| 80 | m.defMetric('rtt',:float) |
| 81 | m.defMetric('rtt_unit',:string) |
| 82 | end |
| 83 | end |