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

#6616
General Support / Re: SQL query failed
January 12, 2010, 02:45:01 PM
Hi!

Looks like your database is somewhat broken. Could you please run netxmsd with -D 9 option (highest debug level) for a short time and post netxmsd log to [email protected]?

Best regards,
Victor
#6617
General Support / Re: Questions about Netxms Console
January 08, 2010, 04:21:14 PM
Hello!

You cannot send SNMP traps from agent. Agent can only communicate with NetXMS server using it's own protocol. You can however send traps from NetXMS server simply by defining command type action and calling any trap sending utility, for example snmptrap from net-snmp package.

You can retrieve node's custom attributes in scripts in event processing policy in two ways:

1. If name of your attribute conforms to NXSL identifier naming conventions (contains only letters, digits, _ and $ and do not start with digit), you can access any attribute as attribute of node object. For example, to access custom attribute named attr1, you can use


$node->attr1


2. You can use NXSL function GetCustomAttribute. For example, to custom attribute named attr2, you can use


GetCustomattribute($node, "attr2")


Also, if you just need to add custom attribute's value to event or alarm message, you can use macro %{attribute_name}, for example, you can define alarm message as


Some alarm - custom attribute attr1 goes here: %{attr1}



Best regards,
Victor
#6618
General / Re: problem with development
January 08, 2010, 04:12:55 PM
Hello!

Did you set VID_PARAMETER variable before sending CMD_GET_PARAMETER request? You should have something like

msg.SetVariable(VID_PARAMETER, "Agent.Version");

before converting message into binary format and sending. Also, check VID_RCC variable in response message - may be it contains error.

Best regards,
Victor
#6619
Hello!

In fact, there are two timeouts - one on agent side, for script execution, and one on server side - for agent response to command. If you have external parameters with long execution time, you should also increase value for server's parameter AgentCommandTimeout, which is 2 seconds by default.

Best regards,
Victor
#6620
Try to replace netinfo.cpp with attached one.

Best regards,
Victor
#6621
General Support / Re: Not able to connect Database
January 07, 2010, 01:13:08 PM
Your database user netxms does not have access rights to database netxms. Try to grant required rights with the following MySQL query:


GRANT ALL ON netxms.* to netxms@localhost;


Best regards,
Victor
#6622
Hi!

You need Platform SDK, OpenSSL, and ZLib.  Others required only for some components:

DDK - for UPS subagent;
libgd - for nxhttpd;
DB library - for MSSQL database driver;
Scintilla - for management console;
Microsoft Speech SDK - for management console;
MySQL client - for MySQL database driver;
PostgreSQL client - for PostgreSQL database driver;
Oracle client - for Oracle database driver;

Packages not listed here are not needed for NetXMS build.

Best regards,
Victor
#6623
Probably something is wrong with headers you are using. Attached is my startup file for VC6, may be it will help. I use Platform SDK for Windows Server 2003, because many headers and libraries in VC6 distribution is outdated or missing.

Best regards,
Victor

#6624
Popravil node.cpp.
#6625
General Support / Re: SQlite failing
December 26, 2009, 04:06:53 PM
Could you please post complete error message from server's log?

Best regards,
Victor
#6626
Did you have libmysqlclient.so somewhere in the system? If yes, where?

Best regards,
Victor
#6627
Poprobujte zamenit' faili node.cpp i interface.cpp v src/server/core na prilozennie i peresobrat' server.
#6628
Please post your config.log

Best regards,
Victor
#6629
Polls / Smartphone client
December 26, 2009, 12:11:23 AM
For which smartphone platform you'd like NetXMS client to be developed? If you don't see any need for mobile client, please answer "I don't need smartphone client" so we know how important this feature is.

Best regards,
Victor
#6630
General / Re: problem with development
December 25, 2009, 12:18:18 PM
You have missed code for actual message reception. Instead of


// Initialize raw message receiving function
pMsgBuffer = (CSCP_BUFFER *)malloc(sizeof(CSCP_BUFFER));
RecvNXCPMessage(socketId, pRawMsg2, pMsgBuffer, RECEIVER_BUFFER_SIZE,0,0,0);

// Allocate space for raw message
pRawMsg2 = (CSCP_MESSAGE *)malloc(RECEIVER_BUFFER_SIZE);
pMsg2 = new CSCPMessage(pRawMsg2);


you should have something like


// Initialize raw message receiving function
pMsgBuffer = (CSCP_BUFFER *)malloc(sizeof(CSCP_BUFFER));
RecvNXCPMessage(0, NULL, pMsgBuffer, RECEIVER_BUFFER_SIZE,0,0,0);

CSCP_ENCRYPTION_CONTEXT *nullContext = NULL;
pRawMsg2 = (CSCP_MESSAGE *)malloc(RECEIVER_BUFFER_SIZE);
RecvNXCPMessage(socketId, pRawMsg2, pMsgBuffer, RECEIVER_BUFFER_SIZE,&nullContext,NULL,0);
pMsg2 = new CSCPMessage(pRawMsg2);


Best regards,
Victor