News:

We really need your input in this questionnaire

Main Menu
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 - tomaskir

#106
General Support / Re: Container event processing
August 10, 2016, 01:10:32 PM

object = FindObject("Container name");

if (object == null || object->type != 5) {
  // object not found, or its not a container
  return null;
}

return object->status;


References:
https://wiki.netxms.org/wiki/NXSL_Function_Reference
https://wiki.netxms.org/wiki/NXSL:NetObj
#107
You need to retrieve the nodes from the container/template when running a script over it.

Example:

children = GetObjectChildren($object);

foreach (child : children) {
  // watch out, a child can be a node, or another container, or rack, etc.
  println(child->name);
}

#108
If you have a $node object available (which should be in EPP Condition scripts), you have multiple options:

Get a single known attribute:
https://wiki.netxms.org/wiki/NXSL:GetCustomAttribute

Get all custom attributes of a node:

attributes = $node->customAttributes;
foreach(attrib : attributes->keys) {
  // name
  println(attrib);

  // value
  println(attributes[attrib])
}
#109
General / Re: Help with Java API
August 09, 2016, 02:41:33 PM
Just a side note:
If you just need to modify GeoLocation data, consider using just a NXSL script, the "Node" object in NXSL has methods for GeoLocation retrieval and manipulation.

https://wiki.netxms.org/wiki/NXSL:Node
#110
General / Re: Help with Java API
August 09, 2016, 02:32:22 AM
You need to call "s.syncObjects();" after login, so it syncs server objects to the local client.

Also, please use [code] tags when pasting code next time :)
#111
General Support / Re: GPS Directly from SNMP?
August 08, 2016, 10:16:01 PM
http://git.netxms.org/public/netxms.git?js=1
Development happens in the "develop" branch.

You can find good guides on how to get the client running in Eclipse here on the forums and on the wiki.
Example: https://www.netxms.org/forum/windows/compilation-of-a-netxms-console-in-eclipse/
#112
General Support / Re: GPS Directly from SNMP?
August 08, 2016, 07:57:20 PM
No, world map is geolocation only for now.

There are multiple requests on the forums and in bug-tracer to allow topology and links etc. to diplay on the world map.
As far as I know, Victor said its planed, but I dont think any time soon.
#113
General Support / Re: GPS Directly from SNMP?
August 08, 2016, 06:59:32 PM
You can write a NXSL script which will read the GPS loc and assign it to the node.
I can then be for example a Hook::ConfigurationPoll, or similiar.

Check out the setGeoLocation method of the NXSL "Node" object:
https://wiki.netxms.org/wiki/NXSL:Node

Or, like you mentioned, you can do it with nxshell.
#114
Create an unmanaged object without any address.
You can create as many of these as you need.

Use those in your racks.
#115
General Support / Re: NetXMS video tutorial series
August 03, 2016, 01:09:22 PM
No, but there should be plenty of videos/tutorials on how to setup MySQL on Linux already :)
#116
General Support / Re: NetXMS video tutorial series
August 02, 2016, 08:02:40 PM
If you turn on annotations in the video, it should tell you how to deal with that :)
#117
Yes, each event has its own, you can see them in event definitions in Configuration > Events.
#118
Create an "Send E-Mail" action, with message text like this: '[%S] %n: %m'.
Then simply use that action in your EPPs.

Here is more info:
https://www.netxms.org/documentation/adminguide/event-processing.html#macros-for-event-processing
#119
Try setting "CheckTrustedNodes" to 0 in Server Configuration and restarting the server.

Here is a Wiki article on the topic:
https://wiki.netxms.org/wiki/SG:Security_Issues
#120
You can also configure a global "ThresholdRepeatInterval" in Server Configuration.

Value is in seconds.