127 is mostly "command not found", check paths inside of /etc/init.d/netxms script
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote#
# ExternalParameter
#
# Add parameter handled by external command. To add multiple parameters, you
# should use multiple ExternalParameter entries. Please note that on Windows
# agent uses system process execution API for execution of specified
# command, so you cannot use pipes or shell commands. If you need to
# execute command via shell, use ExternalParameterShellExec instead.
#
# Syntax:
# ExternalParameter = <parameter_name>:<command_line>
# If you specify parameter name as "name(*)", then you can use $1 .. $9 in
# command line to substitute actual arguments passed from server.
#
# Examples:
# ExternalParameter = Test:echo test
# ExternalParameter = LineCount(*):cat $1 | wc -l
# ExternalParameter = Test2(*):myprog $1 $2
Quote from: Alex on October 03, 2008, 11:59:23 AM
Не знаю не знаю, но у меня на ляликсе все путем.
PC_ERR_NONE = 0 - всё хорошо
PC_ERR_BAD_PARAMS = 1 - кривые параметры запроса, на данный момент так отвечает только HTTP - если regexp неправильный
PC_ERR_CONNECT = 2 - не смогли подключится к host:port
PC_ERR_HANDSHAKE = 3 - ответ проверяемого сервера не совпал с ожидаемымServiceCheck.POP3(mail.netxms.org,testuser,testpassword)** Подключаемся на mail.netxms.org:110
<- +OK
-> USER testuser
<- +OK
-> PASS testpassword
<- +OK
** ОтключаемсяServiceCheck.SMTP(mail.netxms.org,[email protected])** Подключаемся на mail.netxms.org:25
<- 220-mail server banner line 1
<- 220-mail server banner line 2
<- 220 mail server banner line 3
-> HELO netxms-portcheck
<- 250 ...
-> MAIL FROM noreply@netxms-portcheck
<- 250 ...
-> RCPT TO: [email protected]
<- 250 ...
-> DATA
<- 354 ...
-> From: <noreply@netxms-portcheck>
-> To: [email protected]
-> Subject: NetXMS test mail
-> Date: ...
->
-> NetXMS test mail
-> .
<- 250 ...
-> QUIT
<- 221 ...
** ОтключаемсяServiceCheck.SSH(www.netxms.org,22)** Подключаемся на mail.netxms.org:22
<- SSH-major.minor-...
-> SSH-major.minor-NetXMS
** ОтключаемсяServiceCheck.HTTP(www.netxms.org,80,/,www.netxms.org,^HTTP/1\.[01] 200.*)ServiceCheck.HTTP(www.netxms.org,,/,www.netxms.org)** Подключаемся на www.netxms.org:80
-> GET / HTTP/1.1
-> Connection: close
-> Host: www.netxms.org
->
<- HTTP/1.1 200 OK
<- Content-type: ...
<- ...
** Отключаемся
** Сравниваем полученные данные с regexp-омServiceCheck.Custom(www.netxms.org,3306) - проверяем наличие mysql на www.netxms.org** Подключаемся на www.netxms.org:3306
** ОтключаемсяServiceCheck.Telnet(www.netxms.org,23)ServiceCheck.Telnet(www.netxms.org)** Подключаемся на www.netxms.org:23
** тут бинарный протокол, я не буду его описывать.
** ОтключаемсяC:\NetXMS\bin\nxdbmgr.exe init C:\NetXMS\lib\sql\dbinit_sqlite.sql