HEX
Server: Apache
System: Linux vpshost0650.publiccloud.com.br 4.4.79-grsec-1.lc.x86_64 #1 SMP Wed Aug 2 14:18:21 -03 2017 x86_64
User: bandeirantesbomb3 (10068)
PHP: 8.0.7
Disabled: apache_child_terminate,dl,escapeshellarg,escapeshellcmd,exec,link,mail,openlog,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,php_check_syntax,php_strip_whitespace,popen,proc_close,proc_open,shell_exec,symlink,system
Upload Files
File: //opt/puppetlabs/puppet/share/augeas/lenses/dist/tests/test_nrpe.aug
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 =
    { }


  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" }