Menu

Show posts

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 Menu

Messages - Victor Kirhenshtein

#6631
Для шаблонов надо использовать Apply вместо Bind.
#6632
Hi!

Could you please add the following to netxmsd.conf:


CreateCrashDumps = yes
DumpDirectory = <directory somewhere on local disk>


It will instruct NetXMS server to create dumps on each crash in the specified directory. When it crashes again, please send dump files (should be two files - with .info and .mdmp extensions) to [email protected].

Best regards,
Victor
#6633
General / Re: problem with development
December 09, 2009, 12:43:52 PM
You don't need command 0x0097 to read information from agent. You should use CMD_GET_PARAMETER (0x0041) and set name of the parameter to variable VID_PARAMETER (85). Agent will reply with command CMD_REQUEST_COMPLETED (0x001D). First, check variable VID_RCC (28). If it contains 0, then value of requested parameter will be in variable VID_VALUE (21). For example:

CSCPMessage msg;

msg.SetCode(CMD_GET_PARAMETER);
msg.SetId(requestId);
msg.SetVariable(VID_PARAMETER, "Agent.Version");

<send message and get response into CSCPMessage *response>

DWORD rcc = response->GetVariableLong(VID_RCC);
if (rcc == ERR_SUCCESS)
{
   char buffer[256];
   response->GetVariableStr(VID_VALUE, buffer, 256);
   // Now buffer contains value of requested parameter
}

Best regards,
Victor
#6634
General Support / Re: Not able to connect Database
December 09, 2009, 12:37:41 PM
Hi!

Try to connect to database with MySQL command line client:

mysql -h localhost -u netxms -p netxms

and check error messages.

Best regards,
Victor
#6635
Попробуйте так:

<parser>
   <file>*System</file>
   <rules>
      <rule>
         <source>Cissesrv</source>
         <id>24578</id>
      </rule>
      <rule>
         <source>Cissesrv</source>
         <id>24581</id>
      </rule>
      <rule>
         <source>Cissesrv</source>
         <match>(.*)</match>
         <event params="1">100017</event>
      </rule>
   </rules>
</parser>
#6636
Добрый день!

Настройками этого добиться нельзя, надо исправлять консоль. Постараюсь сделать к следующему релизу.
#6637
DCI LogWatch.Parser.xxx ne rabotajut poka. A v buduschem nado budet ukazivat' imja parsera (konfiguracionnogo faila).
#6638
Hi!

It seems that I have fixed the problem. Attached is logwatch.nsm for Windows x64. Could you please try it?

Best regards,
Victor
#6639
Hi!

Could you please post your parser configuration file? It may be just one rule which is not working.

Best regards,
Victor
#6640
General Support / Re: Timeout of web login
December 02, 2009, 11:04:35 PM
Attached.

Best regards,
Victor
#6641
General Support / Re: Alarm viewer and some questions
December 02, 2009, 01:29:24 AM
Hello!

For now, I have patched nxhttpd so "Alarms" page in web UI refreshes periodically. See this topic: https://www.netxms.org/forum/index.php/topic,780.msg3676.html#msg3676.

Best regards,
Victor
#6642
General Support / Re: Timeout of web login
December 02, 2009, 01:27:02 AM
Hello!

I have patchet nxhttpd so "Alarms" page will refresh automatically every 15 seconds, and so session should not timeout. Replace file src/nxhttpd/alarm.cpp with attached one and recompile. Let me know if you need recompiled Windows binary of nxhttpd.
Hope this helps!

Best regards,
Victor
#6643
A pochemu v pervom sluchae bil katalog netxms-0.2.31, a vo vtorom - netxms-0.2.27? Ja patch delal dlja versii 0.2.31.
#6644
Zamenite src/server/core/netinfo.cpp na prilozennij. Dolzno pomoch'.
#6645
General / Re: problem with development
December 01, 2009, 11:46:48 AM
In general, steps are following:

1. create CSCPMessage object
2. fill it with necessary variables and set correct command code
3. create raw message (CSCP_MESSAGE) vith CSCPMessage::CreateMessage method
4. send raw message to agent as usual
5. receive response using RecvNXCPMessage function
6. create CSCPMessage object from received raw message
7. read variables from message object

Best regards,
Victor