[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[augeas-devel] [PATCH] nrpe: fixed #218 - error caused by unused '=' in lens



---
 lenses/nrpe.aug            |    2 +-
 lenses/tests/test_nrpe.aug |    4 ++++
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/lenses/nrpe.aug b/lenses/nrpe.aug
index 2936bc8..ee16f4c 100644
--- a/lenses/nrpe.aug
+++ b/lenses/nrpe.aug
@@ -30,7 +30,7 @@ let command =
   let cbrkt = del /\]/ "]" in
     [ key "command" .
     [ obrkt . key /[^]\/\n]+/ . cbrkt . eq
-            . store /[^=\n]+/ . del /\n/ "\n" ]
+            . store /[^\n]+/ . del /\n/ "\n" ]
     ]
 
 
diff --git a/lenses/tests/test_nrpe.aug b/lenses/tests/test_nrpe.aug
index 53a6c9c..8bfe475 100644
--- a/lenses/tests/test_nrpe.aug
+++ b/lenses/tests/test_nrpe.aug
@@ -46,6 +46,7 @@ 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
@@ -71,6 +72,9 @@ include_dir=/etc/nrpe/cfgdir/ \n
       { "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 " }
     }
     { }
-- 
1.7.5.4



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]