/usr/share/augeas/lenses/dist/tests/test_nagiosobjects.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 | module Test_NagiosObjects =
let conf="
#
# Nagios Objects definitions file
#
define host {
host_name plonk
alias plonk
address plonk
use generic_template
contact_groups Monitoring-Team,admins
}
define service {
service_description gen
use generic_template_passive
host_name plonk
check_command nopassivecheckreceived
contact_groups admins
}
; This is a semicolon comment
define service{
service_description gen2
use generic_template_passive
host_name plonk
}
"
test NagiosObjects.lns get conf =
{}
{}
{ "#comment" = "Nagios Objects definitions file" }
{}
{}
{ "host"
{ "host_name" = "plonk" }
{ "alias" = "plonk" }
{ "address" = "plonk" }
{ "use" = "generic_template" }
{ "contact_groups" = "Monitoring-Team,admins" }
}
{}
{ "service"
{ "service_description" = "gen" }
{ "use" = "generic_template_passive" }
{ "host_name" = "plonk" }
{ "check_command" = "nopassivecheckreceived" }
{ "contact_groups" = "admins" }
}
{}
{ "#comment" = "This is a semicolon comment" }
{}
{ "service"
{ "service_description" = "gen2" }
{ "use" = "generic_template_passive" }
{ "host_name" = "plonk" }
}
|