Opened 12 months ago
Closed 12 months ago
#538 closed defect (invalid)
Failed to parse arguments for command
| Reported by: | Remc0 | Owned by: | mickem |
|---|---|---|---|
| Priority: | 1 | Milestone: | |
| Component: | NRPE | Version: | 0.4.0-nightly |
| Severity: | Bugs | Keywords: | |
| Cc: |
Description
Hi Michael,
We are upgrading our NT domain to a Windows 2008 R2 domain, so it is also time to upgrade our nsclients to the newest 0.4.x version. But testing with that I ran into some problems.
I have some script aliases I want to check:
[/settings/external scripts/alias] COUNTER_CONTEXT_SWITCHES=inject checkCounter ShowAll "Counter:ContextSwitches=\System\Context Switches/sec" ShowAll MaxWarn=35000 MaxCrit=45000 COUNTER_PAGES=inject checkCounter ShowAll "Counter:Memory pages/sec=\Memory\Pages/sec" MaxWarn=300 MaxCrit=500 PROC_QUEU_LENGTH=inject checkCounter ShowAll "Counter:Processor queu length/sec=\System\Processor Queue Length" MaxWarn=10 MaxCrit=15 CHECKTASKS=inject CheckTaskSched "filter=exit_code ne 0" "syntax=%title% (%most_recent_run_time%)" warn=>0
But due to the escape character \ it generates errors in the log like:
2012-06-21 15:12:30: l:d:\source\nscp\trunk\modules\checkexternalscripts\commands.hpp:99: Failed to parse arguments for command 'COUNTER_CONTEXT_SWITCHES', using old split string method: unknown escape sequence: inject checkCounter ShowAll "Counter:ContextSwitches=\System\Context Switches/sec" ShowAll MaxWarn=35000 MaxCrit=45000 2012-06-21 15:12:30: l:d:\source\nscp\trunk\modules\checkexternalscripts\commands.hpp:99: Failed to parse arguments for command 'COUNTER_PAGES', using old split string method: unknown escape sequence: inject checkCounter ShowAll "Counter:Memory pages/sec=\Memory\Pages/sec" MaxWarn=300 MaxCrit=500 2012-06-21 15:12:30: l:d:\source\nscp\trunk\modules\checkexternalscripts\commands.hpp:99: Failed to parse arguments for command 'PROC_QUEU_LENGTH', using old split string method: unknown escape sequence: inject checkCounter ShowAll "Counter:Processor queu length/sec=\System\Processor Queue Length" MaxWarn=10 MaxCrit=15
Please allow these characters, so I can do some checks. Or give me another way of doing it. I couldn't find it in the documentation.
I am running the latest nightly 0.4.1.4
Thanks,
Warm greetings from Aruba,
Remco.
Change History (1)
comment:1 Changed 12 months ago by Remc0
- Resolution set to invalid
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.








