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

#5701
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
#5702
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
#5703
A kakaja imenno versija Windows?

#5704
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
#5705
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
#5706
General Support / Re: HP EVA integration
November 14, 2011, 11:35:44 PM
Hi!

Sorry, I forgot to add it to source distribution. Script is attached. It is very simple perl script which uses SSSU to get information from EVA, so you can use it on any machine with Perl and SSSU. Add the following line to your nxagentd.conf:

ExternalParametersProvider = <path>/hp_eva_collect_data.pl

and restart agent. After configuration poll, you should see additional parameters for each controller, disk shelf, and disk in EVA.

Best regards,
Victor
#5707
General Support / Re: WMI Query to monitor eventviewer
November 13, 2011, 03:39:17 PM
No, I do it today. Version 1.1.7 will include this feature. If it is needed right now, I van make cudtom build of agent.

Best regards,
Victor
#5708
General Support / Re: WMI Query to monitor eventviewer
November 13, 2011, 11:17:29 AM
Hi!

I have added special option to get number of rows in WMI query result set - if you give %%count%% as property name, agent will return number of rows.

Best regards,
Victor
#5709
General Support / Re: Windows Events logging
November 12, 2011, 02:26:58 PM
Hello!

Sorry for delay with that. I do some additional testing, but was unable to reproduce this issue, even by installing event sources without english resources. Agent either give different error or renders text as it should. I have made small changes in log watch subagent, and add logging of message file name after EvtFormatMessage failure, so at least it will be possible to see what application causing this issue. Patched agent version can be downloaded here: https://www.netxms.org/download/dev/nxagent-1.1.6.2-x64.exe.

Best regards,
Victor
#5710
Feature Requests / Re: Android client
November 12, 2011, 09:56:57 AM
Hi!

Done in 1.1.6 client. In the next release, I also plan to add possibility to configure different sounds for different alarm priorities.

Btw, how are overall impression with Android client? Is it useful, what functions are most desired in mobile client?

Best regards,
Victor

#5711
Zdes' glavnaja problema v tom, chto ne suschestvuet universal'nogo algoritma, po kotoromu mozno opredelit', proizoshel li sbros schetchika, ili eto normal'noe izmenenie znachenija. Edinstvennij poka variant, kotorij ja vizu - eto dat' vozmoznost' dlja kazdogo DCI zadavat' maksimal'noe teoreticheski vozmoznoe znachenie del'ti - togda server budet ignorirovat' takie piki.
#5712
General Support / Re: NetXMS cannot read first interface
November 11, 2011, 10:25:25 AM
Hi!

Yes, it's ok. That way it's far less chance that problem will be forgotten :)

Best regards,
Victor
#5713
Hi!

Java console is only compatible with server version 1.1.x. I recommend you to upgrade to server version 1.1.6.

Best regards,
Victor
#5714
Da, dejstvitel'no. Ja vecherom vilozu fail.
#5715
General Support / Re: servers correlation
November 10, 2011, 04:17:02 PM
Hi!

Currently there are no way to detect alarm ack/termination by operator and do some actions. It's a good idea to add a hook for that. I'll think how it can be implemented.

Best regards,
Victor