/usr/share/augeas/lenses/dist/tests/test_nrpe.aug is in augeas-lenses 1.10.1-2.
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 | module Test_nrpe =
let command = "command[foo]=bar\n"
test Nrpe.command get command =
{ "command"
{ "foo" = "bar" }
}
let item = "nrpe_user=nagios\n"
test Nrpe.item get item =
{ "nrpe_user" = "nagios" }
let include = "include=/path/to/file.cfg\n"
test Nrpe.include get include =
{ "include"
{ "file" = "/path/to/file.cfg" }
}
let comment = "# a comment\n"
test Nrpe.comment get comment =
{ "#comment" = "a comment" }
let empty = "# \n"
test Nrpe.empty get empty =
{ }
(* Debian bug #749919 *)
let allowed_hosts_1 = "allowed_hosts=127.0.0.1\n"
test Nrpe.item get allowed_hosts_1 =
{ "allowed_hosts" = "127.0.0.1" }
let allowed_hosts_2 = "allowed_hosts=127.0.0.1, 127.0.0.2\n"
test Nrpe.item get allowed_hosts_2 =
{ "allowed_hosts" = "127.0.0.1, 127.0.0.2" }
let lns = "
#
# server address:
server_address=127.0.0.1
nrpe_user=nagios
nrpe_group=nagios
include=/etc/nrpe_local.cfg
command[check_users]=/usr/lib/nagios/check_users -w 5 -c 10
command[check_load]=/usr/lib/nagios/check_load -w 15,10,5 -c 30,25,20
command[check_mongoscl_proc]=/usr/lib64/nagios/plugins/check_procs -c 1:1 --ereg-argument-array=mongosCL
command[test_command]= foo bar \n
include=/etc/nrpe/nrpe.cfg
include_dir=/etc/nrpe/cfgdir/ \n
# trailing whitespaces \n"
test Nrpe.lns get lns =
{ }
{ }
{ "#comment" = "server address:" }
{ "server_address" = "127.0.0.1" }
{ }
{ "nrpe_user" = "nagios" }
{ "nrpe_group" = "nagios" }
{ }
{ "include"
{ "file" = "/etc/nrpe_local.cfg" }
}
{ }
{ "command"
{ "check_users" = "/usr/lib/nagios/check_users -w 5 -c 10" }
}
{ "command"
{ "check_load" = "/usr/lib/nagios/check_load -w 15,10,5 -c 30,25,20" }
}
{ "command"
{ "check_mongoscl_proc" = "/usr/lib64/nagios/plugins/check_procs -c 1:1 --ereg-argument-array=mongosCL" }
}
{ "command"
{ "test_command" = " foo bar " }
}
{ }
{ "include"
{ "file" = "/etc/nrpe/nrpe.cfg" }
}
{ "include_dir"
{ "dir" = "/etc/nrpe/cfgdir/" }
}
{ }
{ "#comment" = "trailing whitespaces" }
|