Opened 3 years ago
Closed 16 months ago
#419 closed defect (worksforme)
Problem with executing a script by NSCA Agent in passive mode.
| Reported by: | phd | Owned by: | MickeM |
|---|---|---|---|
| Priority: | 1 | Milestone: | |
| Component: | Core | Version: | 0.3.7 |
| Severity: | Bugs | Keywords: | CheckExternalScripts |
| Cc: |
Description
When I setting an execution of a script (vbs very basic) by the NSCA agent in passive mode it runs properly.
Vbs :
…..
Sub SendMessageNagios?(Text, flag_connexion)
if flag_connexion > 0 Then
Wscript.Echo "Critical: Problem Sonde : " & Text
Wscript.Quit(2)
else
Wscript.Echo "OK: All Sondes = OK "
Wscript.Quit(0)
end if
End Sub
……
In the logs I see well that the text should be returned to Nagios. Nagios but unfortunately did not get the message text:
2010-11-15 14:13:11: debug:modules\NSCAAgent\NSCAThread.cpp:191: Executing (from NSCA): Sondes
2010-11-15 14:13:11: debug:NSClient++.cpp:1073: Injecting: check_edith:
2010-11-15 14:13:11: debug:NSClient++.cpp:1109: Injected Result: CRITICAL 'Critical: Problem Sonde : 2010-11-09 15:30:22,526 INFO [ProbeMain?] Test WS '
2010-11-15 14:13:11: debug:NSClient++.cpp:1110: Injected Performance Result:
My problem seems to be similar to the following:
http://nsclient.net/nscp/discussion/topic/693
He missed part of the message text.
nagios.log :
[1289816573] INITIAL SERVICE STATE: aaliyah;Sondes;OK;HARD;1;
Do you have a solution?
Thank you
Pierre
Change History (1)
comment:1 Changed 16 months ago by mickem
- Resolution set to worksforme
- Status changed from new to closed









Presumably fixed in 0.4.0 as this has been rewritten...