Ticket #363 (closed defect: worksforme)

Opened 2 years ago

Last modified 21 months ago

NSClient nrpe checkservicestate check can't handle service names with equal

Reported by: kili68 Owned by: mickem
Priority: 1 Milestone:
Component: CheckSystem Version:
Severity: Bugs Keywords:
Cc:

Description

NSClient++ 0.3.7.493 2009-10-12 w32

./check_nrpe -H my_server -c checkServiceState -a ShowAll "SMED Shared Audit Trail Agent Service ID=OMS_PROD"

OK: SMED Shared Audit Trail Agent Service ID: not found

Change History

comment:1 Changed 2 years ago by mike2k

Have you tried escaping the equal sign? Try a backslash for example...

As you can see, everything after the equal isn't even passed to the nsclient daemon... You need to escape such characters before you can use them...

Also, you might want to use the service name instead of the display name...maybe that doesn't have the equal sign...

comment:2 Changed 2 years ago by mickem

in this case escaping wont really help since "nsclient++" will parse the command like so: [<keyword>[:<alias>=]]<value>

In this case the "keyword" is optional to make check_nt handling "simpler" so you can usually add the proper keyword to get around such issues (in this case the keyword is IIFC service):

Try with "service=SMED Shared Audit Trail Agent Service ID=OMS_PROD".

Michael Medin

comment:3 Changed 21 months ago by mickem

  • Status changed from new to closed
  • Resolution set to worksforme
Note: See TracTickets for help on using tickets.