Ticket #62 (closed enhancement: worksforme)

Opened 5 years ago

Last modified 5 years ago

None

Reported by: anonymous Owned by: mickem
Priority: 6 Milestone:
Component: NRPEListener Version: 0.2.5
Severity: Patches Keywords: None
Cc: None

Description

First of all, great job on the project!

The only problem I'm having is being able to monitor services with CheckServiceState that contain spaces, such as "FLEXlm License Manager", etc. I've tried numerous methods for escaping the space but nothing seems to work. If there is a way to accomplish this, please provide me with an example. Otherwise, can you please fix this as soon as possible?

Thanks!

  • Bill Kimura

Change History

comment:1 Changed 5 years ago by mickem

  • Status changed from new to closed
  • Resolution set to fixed

several rather embarrassing bugs (I sometimes wonder what I do) that I have fixed... The syntax is (BTW) nothing strange from the command line for instance:

./check_nrpe -H 192.168.0.33 -c CheckServiceState -a Event\ Log=stopped

would work fine, but " and weel as ' or what ever you fancy should work equally well.

(will be fixed in the next nightly as well as the next release)

MickeM

comment:2 Changed 5 years ago by anonymous

  • Status changed from closed to reopened
  • Resolution fixed deleted

I am having the same problem with service check and service name with spaces. was this resolved? What was the resolution? Problem i have is service "World Wide Web Publishing"

comment:3 Changed 5 years ago by anonymous

acutally using the latest version of NSClient++ 0.2.7,

check_ntwww!SERVICESTATE -l World Wide Web Publishing Service -d SHOWALL And that one doesnt work because of the spaces.

All other servicestate checks i have with no spaces works fine.

comment:4 Changed 5 years ago by mickem

it was resolved in the nightly build, not the latest version, which are you using? (that would be in: NSClient++-20070620-2235.zip)

MickeM

comment:5 follow-up: ↓ 7 Changed 5 years ago by mickem

  • Status changed from reopened to closed
  • Resolution set to worksforme

Just checked myself and it seems to work with nsclient as well as NRPE..

... -v SERVICESTATE -l "Event Log" -d SHOWALL

The above seemed to work like a charm with the latest nightly...

comment:6 Changed 5 years ago by anonymous

  • Severity changed from Bugs to Patches
  • Cc None added
  • Component changed from CheckSystem to None
  • Summary changed from CheckServiceState doesn't work for services with spaces to None
  • Priority changed from 1 to 6
  • Version changed from 0.2.7 to 0.2.5
  • Milestone 0.3.0 deleted
  • Keywords None added
  • Type changed from defect to enhancement

comment:7 in reply to: ↑ 5 Changed 5 years ago by parrz6@…

  • Component changed from None to NRPEListener

Replying to mickem:

Just checked myself and it seems to work with nsclient as well as NRPE..

... -v SERVICESTATE -l "Event Log" -d SHOWALL

The above seemed to work like a charm with the latest nightly...

I am missing something. I just downloaded the recommend nightly build and then I tried the latest build. I am still having problems checking services with spaces.

check_nrpe -H <ip address> -c check_service -a Symantec AntiVirus? (I have tried it with single and double quotes)

What am I missing?

Ken

Note: See TracTickets for help on using tickets.