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

#5746
That's very strange, I never run into this problem. Could you please provide a complete code snippet to reproduce this problem?

Best regards,
Victor
#5747
Hi!

First, you have to obtain DCI configurator:

DataCollectionConfiguration dciConfig = session.openDataCollectionConfiguration(nodeId);

then, create new DCI:

final long id = dciConfig.createItem();

then, obtain newly created DCI object:

DataCollectionItem dci = dciConfig.findItem(id);

add threshold:

Threshold t = new Threshold();
t.setFunction(Threshold.F_LAST);  // or any other function
// and so on, set all required threshold attributes
dci.getThresholds().add(t);

save DCI:

dciConfig.modifyItem(dci);

and finally, close DCI configuration:

dciConfig.close();

Hope this helps!

Best regards,
Victor
#5748
General Support / Re: Agent PDH.CounterValue
November 28, 2011, 05:00:12 PM
Hi!

What do you get - error or incorrect value? Also, try to run agent in debug mode - it should log PDH error when server requests this parameter.

Best regards,
Victor
#5749
General Support / Re: Threshold
November 28, 2011, 04:51:36 PM
Hi!

Unfortunately this is not possible. You can only create additional DCI with numeric type and put threshold on it.

Best regards,
Victor
#5750
V versii 1.0.13 net tablici images. Pri upgrade skoree vsego vilezet ta-ze oshibka, kogda nxdbmgr popitaetsja sozdat' etu tablicu.
#5751
A chto v loge agenta? Poprobujte esche agenta zapustit' v debug mode - s kljuchom -D 9. Pered etim log luchshe postavit' v fail.
#5752
Dobrij den'!

1.0.14 ja esche ne sobral. Na dnjah sdelaju, vilozu na sait kak obichno. Read-only dostup k svn est':

https://svn.netxms.org/public/netxms/trunk - vetka 1.1.x
https://svn.netxms.org/public/netxms/branches/1.0.x - vetka 1.0.x
#5753
Eto mozet bit', esli postavlen 32bit agent na 64bit server.
#5754
Hi!

Old versions ccan be downloaded from here: https://www.netxms.org/download/archive/.

Best regards,
Victor
#5755
General Support / Re: Windows Events logging
November 16, 2011, 10:52:48 AM
Hi!

I have changed system default locale in call to EvtOpenPublisherMetadata to LANG_NEUTRAL. It's very good to know that this was a solution.

Best regards,
Victor
#5756
General / Re: How to get the "object tree" and
November 15, 2011, 06:17:10 PM
Hi!

In nxmc we use Eclipse viewers, so code to got parent/child relations is actually decoupled into separate pieces. Simple code to print object tree, which you can use as an example:



private void printObject(GenericObject object, int level)
{
for(int i = 0; i < level; i++)
System.out.print(' ');
System.out.println(object.getObjectName());

for(GenericObject o : object.getChildsAsArray())
printObject(o, level + 2);
}

public void main() throws Exception
{
final NXCSession session = connect();  // obtain session somehow

session.syncObjects();

GenericObject object = session.findObjectById(1, EntireNetwork.class);

printObject(object, 0);

session.disconnect();
}


Best regards,
Victor
#5757
General Support / Re: Windows Events logging
November 15, 2011, 06:07:56 PM
Hi!

You can install test agent on same machine, using the following procedure:

1. Stop netxms agent service
2. Remove agent service by running nxagentd.exe -R
3. Install test agent into separate directory. This is most important! You will have to copy nxagentd.conf.

To recover after test agent uninstall, do the following:

1. Ensure that uninstall has removed agent service
2. Install agent service by running nxagentd -I -c <full_path_to_nxagentd.conf>

Best regards,
Victor
#5758
A kakaja imenno versija Windows?

#5759
General Support / Re: Cable disconnect alarm
November 15, 2011, 02:26:58 PM
It general, it is not possible to distinguish from outside if node was shut down or cable was disconnected. The only situation where it can be distinguished that I can think of is following:

Assumptions:

1. If node is off (shutdown), it still have power and link on NIC is up
2. Node is connected to managed switch and port is known

Then you can check port state on switch - if it is down, then most likely cable is disconnected (or node was completely powered off). If it is up, but node is not responding, then node was shutdown.

Also, if node in question is a server with management board (like HP iLO), you can double check server state via management board.

Best regards,
Victor
#5760
General Support / Re: Cable disconnect alarm
November 14, 2011, 11:37:06 PM
Hi!

You mean NetXMS server itself or monitored node? For monitored node, server will generate SYS_NODE_DOWN event if node is unreachable. You can create a rule in event processing policy to send email, generate alarm, etc. as a reaction to this event.

Best regards,
Victor