aboutsummaryrefslogtreecommitdiffstats
path: root/config/nrpe2
diff options
context:
space:
mode:
authorErik <erik@erikkristensen.com>2009-05-18 21:44:30 -0400
committerErik <erik@erikkristensen.com>2009-05-18 21:44:30 -0400
commit17916fed421ef18771f6e8f6e738f6a8f2596751 (patch)
treeb2df027d6db3dd50ed9825cae04d6419a9a3e114 /config/nrpe2
parentcb331a55ab44eef169f3fbc3e752f2935439fa01 (diff)
downloadpfsense-packages-17916fed421ef18771f6e8f6e738f6a8f2596751.tar.gz
pfsense-packages-17916fed421ef18771f6e8f6e738f6a8f2596751.tar.bz2
pfsense-packages-17916fed421ef18771f6e8f6e738f6a8f2596751.zip
NRPE command definitions fix, place command alias in the brackets instead of command name
Diffstat (limited to 'config/nrpe2')
-rw-r--r--config/nrpe2/nrpe2.inc2
1 files changed, 1 insertions, 1 deletions
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);