From 17916fed421ef18771f6e8f6e738f6a8f2596751 Mon Sep 17 00:00:00 2001 From: Erik Date: Mon, 18 May 2009 21:44:30 -0400 Subject: NRPE command definitions fix, place command alias in the brackets instead of command name --- config/nrpe2/nrpe2.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config') diff --git a/config/nrpe2/nrpe2.inc b/config/nrpe2/nrpe2.inc index b0f4f761..b4948799 100644 --- a/config/nrpe2/nrpe2.inc +++ b/config/nrpe2/nrpe2.inc @@ -144,7 +144,7 @@ function nrpe2_custom_php_write_config() foreach ($config['installedpackages']['nrpe2']['config'][0]['row'] as $cmd) { - $cmds[] = "command[{$cmd['command']}]=/usr/local/libexec/nagios/{$cmd['command']} -w {$cmd['warning']} -c {$cmd['critical']} {$cmd['extra']}\n"; + $cmds[] = "command[{$cmd['name']}]=/usr/local/libexec/nagios/{$cmd['command']} -w {$cmd['warning']} -c {$cmd['critical']} {$cmd['extra']}\n"; } $commands = implode($cmds); -- cgit v1.2.3