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

Topics - Yarda

#1
Hello geeks,

To your knowledge, is there an easy way how to generate WAR file out of the webui folder? I know about the eclipse plugin and it works just fine; however, to be able to setup autobuilds performed by Jenkins, I would rather need to generate such stuff right of the command line... Any suggestions?

Thank you for your time and advices.

Yarda.
#2
Hello geeks,

I have the following question. Does NetXMS support some kind of licensing mechanism for let say the number of monitored devices? I mean, I would like to restrict my end customer to be able to monitor only a certain number of devices/types of devices and if they want to add more for what they've purchased the license, an error message pops-up and they cannot until they get back to me and get a new license file placed on their server side.

We sell specific devices and would like our customers to pay for the number of devices they can monitor.

Thank you,
Y.
#3
General Support / Creating my own nxmc skin
December 11, 2012, 04:43:39 PM
Hello geeks. If I touch webui/webapp/Core/theme/classic.css I can easily change colors in the web client. I am trying to achieve style changes for the 'thick' nxmc... and have no luck. Any boost on that, please?
#4
Hello geeks,

I've been playing with processing of traps and generation of events and alarms recently. All works as described. Tho', I am facing a situation I am not successful to cover / or even mentally resolve with the basic knowledge of the framework.

For all the possible situations, our lovely device emits traps with the same trap OID and just by analyzing the content of these traps we know what is going on underneath... The device consists of many cards/subcomponents where each can have a different status at the same moment. One of the trap parameters tells exactly the current status of the subcomponent related to the trap... Identification of the subcomponent is another parameter. Of course there are more parameters inside each trap telling more about sub-subcomponents... :) (But these are probably not important at the moment.)

To describe my issue more practically I will say that I need to see in the Alarm browser (for example) that subcomponent A of my monitored device has a "minor" problem, B ~ "minor", C ~ "critical", no problem on D, and so on. Of course when I receive a trap clearing one of the problems, I need to remove its related alarm in NetXMS too (not from the log, of course; just from the list of active alarms.)

I tried to experiment with the Event Processing Policy panel in a way to register a set of policies for my the only one event that is issued upon receiving my special kind of trap.

I even tried to look at the NXSL (for the Filtering script)... whether that is the way to go or not. But that appeared to be a bit above my "101" lesson... :)

Would you have any suggestions for me, please.

Thank you,
Yarda.
#5
General Support / Performance with Custom attributes
November 13, 2012, 05:50:33 PM
Hello geeks,

This is a design question... We have our own HW that communicates over SNMP. So we created a brand new server driver on the NetXMS side so that it collects all info we need thru "Custom attributes". It works. My concern falls into Performance of such solution. Currently, we are talking about approximately 250 Custom attributes and about approximately hundreds of devices to monitor simultaneously.

Do you have a general idea how such monitoring configuration will work in respect to let say performance of PostgreSQL database? We're currently using an alternative NMS and it is performing not very well when it comes into database.

Would you have a general advice when these "Custom attributes" are the best approach and when we better think about changing/enriching the NetXMS DB model and putting some tables in.

Thank you for advices.

Yarda.
#6
Hello geeks,

I am still completely new to NetXMS... Tho' I have the Eclipse/RAP environment up and running, all works as I imported existing projects from trunk/webui/webapp into workspace. It is fine. And now trying to prototype a bit...

I noticed a duplication of source code in the repository.

For example content of:

./webui/webapp/ObjectView/src/org/netxms/ui/eclipse/objectview/objecttabs/helpers/

is duplicated with

./src/java/netxms-eclipse/ObjectView/src/org/netxms/ui/eclipse/objectview/objecttabs/helpers/

Why is that duplication and what is the developement workflow I should follow?

I added a brand new "tab" to src/java/netxms-eclipse/ObjectView/src/org/netxms/ui/eclipse/objectview/objecttabs. It compiles from the command line, however, I cannot see that file in my eclipse nor I can debug it. As I said above, I am confused about the code duplication and how should I work as a potential developer when extending the existing code...

Thank you for your time and advices.

Yarda.
#7
Hello geeks,

I am completely new to NetXMS... On the other hand, currently responsible for evaluating the product for our possible company future usage. :)

I am trying to get the 1.2.4 work (also tried the 1.2.3); however, even though all compiles smoothly, I always get the following "Error initializing component locks table" when trying to run the server.


$netxmsd -c ../etc/netxmsd.conf -D 9

[08-Nov-2012 09:16:33] Log file opened
[08-Nov-2012 09:16:33] Code page set to ?
[08-Nov-2012 09:16:33] Platform subagent "/data2/NetXMS/binaries/1.2.4/lib/libnsm_linux.so" successfully loaded
[08-Nov-2012 09:16:33] Debug callback set for DB library
[08-Nov-2012 09:16:33] Database driver "/data2/NetXMS/binaries/1.2.4/lib/libnxddr_mysql.so" loaded and initialized successfully
[08-Nov-2012 09:16:33] DBConnect: server=localhost db=netxms login=root schema=
[08-Nov-2012 09:16:33] New DB connection opened: handle=0x625450
[08-Nov-2012 09:16:33] Successfully connected to database netxms@localhost
[08-Nov-2012 09:16:33] Successful sync query: "SELECT var_value FROM metadata WHERE var_name='SchemaVersion'" [162 ms]
[08-Nov-2012 09:16:33] Successful prepare: "SELECT var_value FROM config WHERE var_name=?" [9 ms]
[08-Nov-2012 09:16:33] Successful prepared sync query: "SELECT var_value FROM config WHERE var_name=?" [9 ms]
[08-Nov-2012 09:16:33] Successful prepare: "SELECT var_value FROM config WHERE var_name=?" [0 ms]
[08-Nov-2012 09:16:33] Successful prepared sync query: "SELECT var_value FROM config WHERE var_name=?" [0 ms]
[08-Nov-2012 09:16:33] Successful prepare: "SELECT var_value FROM config WHERE var_name=?" [1 ms]
[08-Nov-2012 09:16:33] Successful prepared sync query: "SELECT var_value FROM config WHERE var_name=?" [0 ms]
[08-Nov-2012 09:16:33] DBConnect: server=localhost db=netxms login=root schema=
[08-Nov-2012 09:16:33] New DB connection opened: handle=0x6295d0
[08-Nov-2012 09:16:33] DBConnect: server=localhost db=netxms login=root schema=
[08-Nov-2012 09:16:33] New DB connection opened: handle=0x629940
[08-Nov-2012 09:16:33] DBConnect: server=localhost db=netxms login=root schema=
[08-Nov-2012 09:16:33] New DB connection opened: handle=0x6267b0
[08-Nov-2012 09:16:33] DBConnect: server=localhost db=netxms login=root schema=
[08-Nov-2012 09:16:33] New DB connection opened: handle=0x627040
[08-Nov-2012 09:16:33] DBConnect: server=localhost db=netxms login=root schema=
[08-Nov-2012 09:16:33] New DB connection opened: handle=0x649180
[08-Nov-2012 09:16:33] Database Connection Pool initialized
[08-Nov-2012 09:16:33] Successful sync query: "SELECT var_value FROM metadata WHERE var_name='Syntax'" [0 ms]
[08-Nov-2012 09:16:33] Successful prepare: "SELECT var_value FROM config WHERE var_name=?" [0 ms]
[08-Nov-2012 09:16:33] Successful prepared sync query: "SELECT var_value FROM config WHERE var_name=?" [0 ms]
[08-Nov-2012 09:16:33] ConfigReadStr: name=ServerID value="17349805A3799A50"
[08-Nov-2012 09:16:33] Successful prepare: "SELECT var_value FROM config WHERE var_name=?" [1 ms]
[08-Nov-2012 09:16:33] Successful prepared sync query: "SELECT var_value FROM config WHERE var_name=?" [0 ms]
[08-Nov-2012 09:16:33] DBLockStatus="ERROR"
[08-Nov-2012 09:16:33] Error initializing component locks table


When cleaning the DB, I get this:


$nxdbmgr -c ../etc/netxmsd.conf check
NetXMS Database Manager Version 1.2.4

Checking database (excluding collected data):
Database is locked by server ? [er]
Do you wish to force database unlock? (Y/N) Y
Database lock removed
Database doesn't contain any errors
Database check completed


The string inside square brackets (Database is locked by server) is falsy, apparently, but did not try to debug it in gdb, at least not yet. There must be something with my environment, but what could that be...? :((

My environment:


$uname -a

Linux my 3.4.9-gentoo #1 SMP PREEMPT Mon Aug 27 14:23:03 CEST 2012 x86_64 Intel(R) Core(TM)2 CPU T5500 @ 1.66GHz GenuineIntel GNU/Linux


Zipped configure.log attached...

It doesn't seem to be related to DB or DB driver. In my multiple attempts I used Postgres 9.2, 9.1 and Mysql 5.1.62 (running locally on my workstation but also remotely on different Linux distributions.) In all cases the same "lock" problem appeared consistently.

When the above reported failure happens, I can take a look at the DB and see an entry in config table - I am not sure if that tells me much, but is still something whispering me the problem is not about databases...


mysql> select * from config;
+----------+------------------+------------+---------------------+
| var_name | var_value        | is_visible | need_server_restart |
+----------+------------------+------------+---------------------+
| ServerID | 17349805A3799A50 |          1 |                   0 |
+----------+------------------+------------+---------------------+
1 row in set (0.00 sec)


All compiled with gcc-4.5.4 / going to experiment with 4.6.3 now... (It is not a stable version for Gentoo, but I'll give it a try anyhow...)

Thank you for your insight and advices.

Cheers,
Yarda.