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

#1
General Support / Object tools from the alarm browser?
February 03, 2011, 06:41:57 PM
Hi!

I am wondering about the object tools from the alarm browser.
I wish to send data by right clicking on an alarm in the browser and select object tools and then for example "create ticket", to create a ticket in the ticket system.
The idea would be to invoke either an action or some command on the netxms server which then sends for example alarm text, time when the alarm was triggered and which user that created the ticket.

Is this doable? Can I send this data from the alarm browser?
Or is it purely an "object" tool?

The reason why I wish to do this instead of an automatic creation is that otherwise the ticket system will be filled with a lot of new tickets, which is not fun to handle.
We are still trimming the system and adding more nodes and alarms so I have not had time to fix situations to remove excessive alarms, yet :)

Thanks in advance!

Best regards,
Dan
#2
General Support / Limit user access to a specific DCI?
January 24, 2011, 04:17:53 PM
Hi!

Sorry if this has already been covered in the forum, but I was unable to find it.

Is there any way to limit the view for specific users, or groups, to a DCI or alarms?
I am thinking about the same way to limit the view of an object.

I have nodes with a lot of different DCI's and a lot of different users accessing the same server.
The service desk group should see all the alarms, which they do today.
But then I have a few other users that should only be able to see some of the alarms, for example if application A is down that will create a critical alarm, I would only want them to see that alarm.
If application B goes down on the same node, I don't want them to see that alarm.

It is possible to do it with another Netxms server instance and just forward the necessary alarms for those nodes to the "new" instance, but, it would be great if it was possible to do it in the same server. :)

Best regards,
Dan
#3
Hello!

I have a server running Windows 2008 R2.
I have installed the netxms agent, we are currently running version 1.0.4, and is able to connect, it is stated as "Active" under the nodes "Overview".

In the netxms configuration file I have created a number of external parameters which all runs as they should from the command line, but when I try to connect and run it through NetXMS I receive the following error message: "Cannot get parameter: Communication failure".

If I look in the event viewer on the windows machine I can see that there are a number of errors related to the agent containing this error message:
"Unable to create temporary file to hold process output: The system cannot find the path specified"

I have other windows servers running with the same configuration and they are running fine.
Where is it trying to create the temporary file?
Could it be a file system access problem?

Thanks for your help!
#4
Hi!

I found this in the forum, which is a great way to differentiate events:

Quote from: Victor Kirhenshtein on August 20, 2010, 09:54:41 AM
Hi!

I would suggest to change alarm key in your configuration for %m (message text) to DC_%i_%5 - that would create separate alarms for different nodes, even if they have same message text. But anyway, that is not important for sending e-mails. From information you have sent it is not clear why you getting e-mail only for 1 DCI - I should see configuration and values of all 4 DCIs. Also, was it your intention to send e-mails every minute as long as there are files matching filter?

Best regards,
Victor


But, when I use it in already existing events in my event processing policy, it is blank.
If I try to set it as a text message, the macro parameter is shown as a blank, i.e null or nothing.

I configure the DCI that uses these events from a template that distributes to my nodes.

When I create a new DCI on one of my nodes, not through a template, and then test it, the macro %5 shows output, which I think is the correct one.

Could there be a problem because I use a template?

Best regards,
Dan
#5
Hi!

I am using 1.0.1.

I found the following post very helpful,

Quote from: Victor Kirhenshtein on February 25, 2010, 06:40:53 PM
In 1.0.0-rc1 I have added new NXSL function FindNodeObject. It takes two arguments: current node object and ID or name of node of interest. It can be used as following:


sub main()
{
   // Search for node named "gateway"
   gw_node = FindNodeObject($node, "gateway");
   
   if (gw_node == null)
      return 0;   // No such node or access denied

   // from here, gw_node can be used in a same way as $node, for example:
   status = GetDCIValue(gw_node, FindDCIByDescription(gw_node, "Status"));

   return 1;
}



I have tried doing this with the following code,

server_name = "" . plaza . ".se"; // this gives me the server name in the var, as this is different depending on which node that the DCI is running on
server_name_node = FindNodeObject($node, server_name);
return server_name_node;

This only gives me "null" which would indicate that the server with the server_name is non-existant.
But I have also set the node name manually, instead of using the var, which works as it should, but this means a lot of manual work and a generated name in a var is much more flexible :)

So my question is, is there something I am missing, or is it just not possible to use the variable instead of a static argument?

Best regards,
Dan
#6
General Support / Monitor heartbeat?
June 21, 2010, 06:03:29 PM
Hi!

I am trying to monitor if a DCI is not updated within a certain interval, like a heartbeat.
If the "monitored" DCI is not updated within a scheduled interval, then it should create the alarm.

I am thinking about using the data collection transformation for this, but I don't know if there is any built in function or any other way to check the date for the last update on a DCI?

Is this the way to go or is there a better way to create such a heartbeat monitoring?

Keep up the great work!

Best regards,
Dan
#7
Hi,
Im running 0.2.30 under ubuntu intrepid.
Netxms where running fine during configuration until I tried to configure new users and groups, like adding new access, removing access, adding users to groups, as well as deleting some of them.
This happens when running it both as a daemon and in the foreground,

netxmsd  -c /etc/netxms/netxmsd.conf
Using configuration file "/etc/netxms/netxmsd.conf"
Configuration file OK
[14-Oct-2009 17:06:05] Platform subagent "/usr/lib/libnsm_linux.so" successfully loaded
[14-Oct-2009 17:06:05] Database driver "/usr/local/lib/libnxddr_pgsql.so" loaded and initialized successfully
[14-Oct-2009 17:06:05] Stalled database lock removed
[14-Oct-2009 17:06:05] Listening for SNMP traps on UDP socket 0.0.0.0:162
[14-Oct-2009 17:06:05] Listening for client connections on TCP socket 0.0.0.0:4701
[14-Oct-2009 17:06:05] NetXMS Server started

NetXMS Server V0.2.30 Ready
Enter "help" for command list or "down" for server shutdown
System Console

netxmsd: Segmentation fault

When I restart netxms and connect again, the deleted and altered groups/users are still there.

I am able to add nodes and change other things without any hazard.

I am running it with PostgreSQL 8.3.8

I have attached an strace of a crash.

Anyone got an idea what could be wrong?
#8
Hi guys!

I'm running 0.2.26 and trying to add a new user, which is not an administrator, to only to view maps and alarms, but this user should also be able to acknowledge and also terminate alarms.

I am able to acknowledge and terminate alarms, and I can see all the current alarms in the alarm browser, but when I try to view my newly created map "overview", I can only view the "default" one.
My own map, "overview" is created with a "container" as a root object.

I've added a user, alarmoperator, under the group "Operator" which has the default properties,
- view snmp trap log
- view event database
- delete alarms

My user does not have any other system rights.

I have added the group "Operator" to have the following rights and properties on both the objects "Entire network" and "All services",
- Read
- View alarms
- Acknowledge alarms
- Terminate alarms

My containers under "all services" are set to inherit the rights from parent container.

My question is, how do I add the new map so my new user can view it?
I am able to view the map as the administrator, but not as a "regular" view only user.

Couldn't find anything regarding this in the user manual.
Hopefully someone knows what I am doing wrong!

Thanks in advance

Best regards,
Dan