/usr/share/augeas/lenses/dist/tests/test_bbhosts.aug is in augeas-lenses 1.2.0-0ubuntu1.3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 | module Test_bbhosts =
let conf = "
# A comment
page firstpage My first page
group-compress A group
1.2.3.4 amachine # http://url.to/monitor https://another.url/to/monitor cont;http://a.cont.url/to/monitor;wordtofind
1.2.3.5 amachine2 # http://url.to/monitor https://another.url/to/monitor !cont;http://a.cont.url/to/monitor;wordtofind
group-only dns VIP DNS
10.50.25.48 mydnsmachine.network #
10.50.25.49 myotherdnsmachine.network #noping noconn !ssh dns;mydnstocheck
# a comment in a group
page anotherpage A new page
# a comment in a page
group-compress My test
192.168.0.2 myhost # https://myurl.com:1256 noconn pop3 imap2 ssh
192.168.0.3 myhost2 # !imap2 telnet dns
group-compress DownTime
0.0.0.0 myhost3 # DOWNTIME=fping,http:*:1800:1015:\"Frontal 01 Redirect Amazon eteint entre 18h et 10h\"
0.0.0.0 myhost4 # ftps imaps imap4 pop-3 pop2s pop smtp smtps ssh ssh1 ssh2 telnet telnets
"
test BBhosts.lns get conf =
{}
{ "#comment" = "A comment" }
{}
{ "page" = "firstpage"
{ "title" = "My first page" }
{}
{ "group-compress" = "A group"
{ "host"
{ "ip" = "1.2.3.4" }
{ "fqdn" = "amachine" }
{ "probes"
{ "url" = "http://url.to/monitor" }
{ "url" = "https://another.url/to/monitor" }
{ "cont" = ""
{ "url" = "http://a.cont.url/to/monitor" }
{ "keyword" = "wordtofind" } } } }
{ "host"
{ "ip" = "1.2.3.5" }
{ "fqdn" = "amachine2" }
{ "probes"
{ "url" = "http://url.to/monitor" }
{ "url" = "https://another.url/to/monitor" }
{ "cont" = "!"
{ "url" = "http://a.cont.url/to/monitor" }
{ "keyword" = "wordtofind" } } } }
{} }
{ "group-only" = "VIP DNS"
{ "col" = "dns" }
{ "host"
{ "ip" = "10.50.25.48" }
{ "fqdn" = "mydnsmachine.network" }
{ "probes" } }
{ "host"
{ "ip" = "10.50.25.49" }
{ "fqdn" = "myotherdnsmachine.network" }
{ "probes"
{ "noping" = "" }
{ "noconn" = "" }
{ "ssh" = "!" }
{ "dns" = ""
{ "url" = "mydnstocheck" } } } }
{ "#comment" = "a comment in a group" }
{}
{} } }
{ "page" = "anotherpage"
{ "title" = "A new page" }
{}
{ "#comment" = "a comment in a page" }
{}
{ "group-compress" = "My test"
{ "host"
{ "ip" = "192.168.0.2" }
{ "fqdn" = "myhost" }
{ "probes"
{ "url" = "https://myurl.com:1256" }
{ "noconn" = "" }
{ "pop3" = "" }
{ "imap2" = "" }
{ "ssh" = "" } } }
{ "host"
{ "ip" = "192.168.0.3" }
{ "fqdn" = "myhost2" }
{ "probes"
{ "imap2" = "!" }
{ "telnet" = "" }
{ "dns" = "" } } }
{}
}
{ "group-compress" = "DownTime"
{ "host"
{ "ip" = "0.0.0.0" }
{ "fqdn" = "myhost3" }
{ "probes"
{ "DOWNTIME"
{ "probe" = "fping" }
{ "probe" = "http" }
{ "day" = "*" }
{ "starttime" = "1800" }
{ "endtime" = "1015" }
{ "cause" = "Frontal 01 Redirect Amazon eteint entre 18h et 10h" }
} } }
{ "host"
{ "ip" = "0.0.0.0" }
{ "fqdn" = "myhost4" }
{ "probes"
{ "ftps" = "" }
{ "imaps" = "" }
{ "imap4" = "" }
{ "pop-3" = "" }
{ "pop2s" = "" }
{ "pop" = "" }
{ "smtp" = "" }
{ "smtps" = "" }
{ "ssh" = "" }
{ "ssh1" = "" }
{ "ssh2" = "" }
{ "telnet" = "" }
{ "telnets" = "" }
} } } }
|