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 - 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 / Re: Object Tools for Conditions
February 02, 2015, 02:56:56 PM
OK, this looks like a very powerful tool.
Unfortunately I'd want to create a SNMP Table tool which (according to the admin-guide) doesn't support neither macro substitution nor setting a target IP.
And without the target IP setting I can't predefine a SNMP Table tool which is independent on IP of the selected node.
#4
General Support / Re: Object Tools for Conditions
February 02, 2015, 01:11:42 PM
Thank you, you helped me a lot.
The first part is clear, now I am able to set a status of the node based on other nodes.
But I'm afraid that I don't fully understand the second part. How can I hard-code a target node to the Object Tool?
#5
General Support / Re: Object Tools for Conditions
January 30, 2015, 11:22:06 AM
Thank you for your immediate response.

Unfortunately, in my case it is important on which node the Tool is called, because it is a SNMP table tool.

The Condition has an advantage of being able to compute its status based on values from multiple objects, which I need.
But I'd also want to display predefined Object Tool on a predefined node in a pop-up menu of the condition.

The first solution which came on my mind is adding 2 optional parameters to each Object Tool:

  • target node - the node on which the tool will be called regardless of the selected object
  • displaying objects - list of objects (including non-node ones) that will have this tool in their pop-up menus
Tools without these parameters would work as today.
Do you think this solution could be consistent with current concept of the NetXMS?
Could this be achieved in a less complicated way?
#6
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.
#7
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.
#8
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?
#9
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"?
#10
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.
#11
After replacing files in C:\NetXMS\lib\sql by your files, export works.
Thank you very much.
#12
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.
#13
General Support / Re: Alarm Details tool bugs
May 24, 2013, 12:41:04 PM
Thank you, now displaying of alarm states works perfectly.
Do you have an idea in which version the editting of alarm comments could be fixed (I didn't find this issue in a bug tracker)?

Beda
#14
General / Re: Management Console sources
May 10, 2013, 03:14:30 PM
Thank you,
this helped me a lot.

            Beda