Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

duplicate command definitions breaks nrpe_command #2

Open
davidlwillson opened this issue Jul 22, 2015 · 0 comments
Open

duplicate command definitions breaks nrpe_command #2

davidlwillson opened this issue Jul 22, 2015 · 0 comments

Comments

@davidlwillson
Copy link

When the /etc/nagios/nrpe.cfg contains two definitions of a command like this:

command[check_users]=/usr/lib64/nagios/plugins/check_users -w 5 -c 10
command[check_users]=/usr/lib64/nagios/plugins/check_users -w 5 -c 10

command[check_total_procs]=/usr/lib64/nagios/plugins/check_procs -w 150 -c 200
command[check_total_procs]=/usr/lib64/nagios/plugins/check_procs -w 800 -c 900

and puppet tries to define the command like this:

nrpe_command { 'check_users' :
  command => '/usr/lib64/nagios/plugins/check_users -w 5 -c 10',
}

nrpe_command { 'check_total_procs' :
  command => '/usr/lib64/nagios/plugins/check_procs -w 400 -c 500',
}

it silently, and persistently fails like this:

Notice: /Stage[main]/Profile::Drw::Nrpe/Nrpe_command[check_users]/command: command changed '' to '/usr/lib64/nagios/plugins/check_users -w 5 -c 10'

Notice: /Stage[main]/Profile::Drw::Nrpe/Nrpe_command[check_total_procs]/command: command changed '' to '/usr/lib64/nagios/plugins/check_procs -w 400 -c 500'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant