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 - Beda

#1
General / SNMP enumerations in Object Tool
April 18, 2015, 04:40:59 PM
Hello,
I'd like to ask you if there is a way how to display string enumerations from a MIB file instead of an integer value in a SNMP Table Object Tool (or in MIB Explorer)?

The snmp integer enumerations are described for example here:
https://www.webnms.com/snmp/help/snmpapi/snmpv1/using_mibs_in_applns/enumintegers.html
and in the mib file (mymibfile.txt), they can look like this

severity OBJECT-TYPE
SYNTAX INTEGER {
info(0),
warning(1),
error(2),
fatalError(3)
}
MAX-ACCESS read-only
STATUS current
DESCRIPTION "Severity of the error"

Instead of a number (1), I would like to see the associated string (warning) in the table.

I tried to track the enumerations in code, but it seems to me that they don't even get to the netxms.mib file. Does NetXMS read the mib files (with .txt suffix) again or is it necessary to store the enumeration strings in the netxms.mib file? I'm afraid that modifying the netxms.mib file could cause a lot of trouble during parsing.

I could try to implement this functionality myself (if it isn't implemented yet), but now I feel a bit lost, so each hint or advice would help me.

I'm using NetXMS 2.0-M2 on Ubuntu.
#2
General Support / Adding Condition to Trusted Nodes
February 03, 2015, 06:22:10 PM
Hello,
I try to access a Node from Condition's Status calculation script using FindNodeObject() method.
The function still returns null, probably because the Condition isn't in the Node's "Trusted Nodes" list.
But I can't add the condition there, because conditions are hidden in the tree when I click Add in "Trusted Nodes".
FindNodeObject() works correctly if CheckTrustedNodes is set to 0 in Server Configuration, but it's only a workaround.
Version of NetXMS used: 2.0-M1.
#3
General Support / Object Tools for Conditions
January 29, 2015, 01:21:44 PM
Hello,
first, thank you for your great software and continuous development and support.

Maybe this should be a feature request, but I'm not sure that I don't miss already existing way how to do what I want, so I've chosen a General Support section. What I want to achieve is this:

In a Network Map I would want to represent an abstract device whose state is computed from more physical (and virtual) machines by a SNMP polling. I would want to represent the device by 1 icon (i.e. by 1 object), hence a Condition seems to be the right object for me so far.
But I would also want to be able to call a predefined Object Tool (on a predefined Node) from a right-click pop-up menu of the icon in the Map, which forces me to use an object of type Node instead of the Condition.

So far I've used a hack of the management console (I modified its sources), so I'm able to "chain" a Condition with a Node using the Condition's Custom Attribute with the ID of the Node. My modified console then displays a Tools item in a pop-up menu of the Condition. But I think that this modification does not correspond with an intended use of Condition objects, so I would want to ask:

  • Is there a way how to do this using existing objects?
  • If not, how (conceptually) could this functionality be implemented? As a new object? As a modification of an existing one? In another way? Maybe I could try to implement the modifications, but I don't want to corrupt a concept and the intended use of the objects, because I don't have an overall view of the project.
#4
General Support / Alarm Notifier - Repeated sound warning
December 14, 2013, 02:15:05 PM
Hi,
is there a way how to set Alarm Notifier up such that it'd repeatedly play selected sound during all the time when an alarm is in an Outstanding state? I'd want to hear a sound when the alarm is generated and then each e.g. 5 seconds until somebody chnges a state of the alarm.

I've tried inelegant solution using Alarm timeouts (SYS_ALARM_TIMEOUT terminated previous alarm and then created it again), but it needs extra rules (in Event Processing Policy) and it hides original time of creation of the alarm.
#5
General Support / Not displayed log messages
May 31, 2013, 12:27:01 PM
Hi,
when I run

netxmsd.exe -D9

and in NetXMS\etc\netxmsd.conf a variable LogFile is set to {syslog}, log messages aren't displayed in a console. But if the variable LogFile is set to a standard file, log messages are displayed. Is it a feature or a bug?
#6
Feature Requests / Disabling not allowed tools
May 31, 2013, 10:11:31 AM
This can look like a cosmetical issue, but I think it could significantly increase end-user frendliness of a Management Console.
Would it be possible to hide (or disable) toolbar and menu items not allowed to user because of his low access rights instead of displaying an error message "Access denied"?
#7
Currently, user with a right to "manage users" is able to change its own rights (which gives him power of a superuser). This solution works and is documented, which is good.
Unfortunately it is not possible to create a user with restricted rights (non-superuser) which can create new users.

I'm afraid that changing user management policy in NetXMS is not a simple task, nevertheless I tried to formulate some rules that could be used.
Let Bob be one of users:
0 - Bob can't change his own rights.
1 - Bob can't grant another user (or group) a right that Bob doesn't have.
2 - Bob can't remove another user (or group) a right that Bob doesn't have.
3 - Bob can't add users to groups that have at least one right that Bob doesn't have.
4 - Bob can't remove users from groups that have at least one right that Bob doesn't have.
5 - Bob can't delete user that have at least one right that Bob doesn't have.
6 - Other actions are allowed to Bob.

In another words these rules prevent Bob from changing his own rights, but allow him to manipulate with rights of all other users (but only with rights that Bob has). E.g. if Bob can only "Send SMS" and "Manage users", he can prevent (or grant) arbitrary user from sending SMS, but he isn't allowed to manipulate with "View event log" right of any user (including Bob himself).

Maybe this solution is too crazy, but I think that possibility to create a non-superuser which can create new users could be a helpful feature.
#8
Hi, is "nxdbmgr.exe export" supposed to work with other databases than SQLite? I'm using PostgreSQL and I get


C:\NetXMS\bin>nxdbmgr.exe export DBbackup
NetXMS Database Manager Version 1.2.7

ERROR: Schema version mismatch between dbschema_sqlite.sql and your database. Please check that NetXMS server installed correctly.
Database export failed.


Shouldn't dbschema_pgsql.sql be used?
I'm running NetXMS 1.2.7 on Windows7 with PostgreSQL 9.2.
#9
General / Management Console sources
April 26, 2013, 06:29:52 PM
Hi,
I would want to ask if it is possible to download a stable version of sources of a Management Console. I didn't find these sources in regular release packages and in actual state I can't be sure that sources of the console downloaded as an svn snapshot are stable.
Also I think that this state can be a bit confusing - I tried to make some changes in sources (including translating NetXMS into Czech) and I was unsuccesfully grepping Spanish words in source package of 1.2.6 (finally I found https://www.netxms.org/forum/general/about-the-language/ and the problem was solved).
#10
Windows / Compilation of a NetXMS console in Eclipse
April 26, 2013, 06:15:30 PM
Hi,
I would want to ask you, how to compile a NetXMS Management Console in Eclipse Indigo under Windows7. I've tried to experiment with Eclipse (it is a new IDE for me), but I didn't succeed. I tried to set the Eclipse Indigo according to
https://www.netxms.org/forum/installation/eclipse-junos-rcp-compile-problems-netxms-console/msg9001/#msg9001
but I couldn't run the console because of missing packages (org.netxms.api..., org.netxms.client...).
Please, could you give me a hint how to get sources of the console into the Eclipse and compile it?
Is "Import / Existing Projects into Workspace" a good way?
#11
General Support / nxdbmgr export
April 26, 2013, 06:10:38 PM
Hi, I know that Ithis topic was mentioned yet (for example  in https://www.netxms.org/forum/general-support/nxdbmbr-bug/msg7948/#msg7948).
Unfortunately in NetXMS 1.2.6 with PostgreSQL 9.2.4 under Windows7 after

C:\NetXMS\bin> nxdbmgr.exe export backup_file

I still get

NetXMS Database Manager Version 1.2.6
ERROR: cannot load schema file "C\lib\sql\dbschema_sqlite.sql" Database export failed.


Adding "DataDirectory = path" into netxmsd.conf doesn't help (unfortunately I don't understand how it is connected with the error and which path should I use). I can't find this issue in BugTracker, so I am afraid that I am missing something important.
Could you please tell me how should I export the database with nxdbmgr.exe correctly?
#12
General Support / Configuration of Perspectives
March 01, 2013, 04:41:40 PM
Hi, I would like to ask you two questions related to configuration of NetXMS:

First, is it possible to prevent some users from viewing some perspectives?
My goal is to prepair a "simple" perspective for non-experienced users and I would like to hide their "Default Perspective" button. I would like the default perspective to be visible only for more privileged users. Ideally, non-experienced users should not be able to customize their perspective at all.

And the second question: Is it possible (in some perspectives) to hide items in a context menu of objects in an Objects Browser?
A motivation is the same as in previous case: non-experienced users could be confused.
#13
General Support / Alarm Details tool bugs
March 01, 2013, 02:04:57 PM
Hi, maybe I've found some bugs in an Alarm Details tool in NetXMS 1.2.6 on 64b Windows7.
- First, it is not possible to edit comments attached to alarms (although an Edit "button" is visible and clickable).
- Second, when a state of an alarm is set to "Resolved" in Alarm Browser, Alarm Details window displays a "Terminated" state (after refresh).
- Similarly, when a state of an alarm is changed using a "Sticky Acknowledge" menu item, Alarm Browser displays an icon with a lock, but the Alarm Details window displays an icon without a lock.
#14
Windows / Compilation for Windows, missing files
February 15, 2013, 11:04:11 AM
Hi,
I encountered a following problem when compiling NetXMS 1.2.5 (stable) in Visual Studio 2010 Professional on 64b Windows7.
It seems that a file netxms.sln contains references to files not included in source tar.gz archive.
For example files
- src\libtre\xmalloc.c
- src\agent\core\messages.rc
- src\agent\subagents\dbquery\dbquery.vcproj
- src\libexpat\libexpat\libexpat.vcproj
- src\libnxmb\libnxmb.vcproj
- src\nxlptest\nxlptest.vcproj
- src\flow_analyzer\libipfix\libipfix.vcproj
- src\flow_analyzer\nxflowd\nxflowd.vcproj
- src\nxinstall\nxinstall.vcproj
are missing. I'm not sure if these files are necessary, but either some source files are missing or netxms.sln is not actual.
Please, could you upload a consistent version of stable sources and project file for VS?

And do you really use VS for compiling NetXMS for Windows or do you use another method (cross-compilation)? Maybe this is the most important part of the question for me, because my goal is to compile NetXMS for Windows from modified sources.
#15
Hi,
first, I want to sorry for my English.

I have a following problem:
In Object Tools I have created a new tool of type "SNMP Table".
It was identical to the tool "&Info->&Routing table (SNMP)" except for table columns.
After running that tool, displayed table was empty although I could see content of the table
in a MIB Browser.

I could replicate this problem by removing 4 columns from "&Info->&Routing table (SNMP)".
When one column (Metric) left, the table stayed empty.

I can't see actual status of a SNMP communication, so I don't know if SNMP request failed
or if another error occured (some progress bar would be a helpful feature).

I am using NetXMS 1.2.1 running on Windows 7.

Is it a bug or am I missing something?


        Beda