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

#21
General Support / NXSL node down status
November 05, 2014, 10:00:02 AM
Im using a working "hack" to use dynamic proxy via Dummy DCI with TransformationScript to run a custom bashscript that do some checks.

In the script i check if proxynode dont have any critical status (>=4) because i couldnt find a way to check if a node is down with NXSL.
This will work as long proxynode does not have any other alarms with Critical that is not "Node Down".
But if the proxynode have a Critical alarm that is not "Node Down" it will be detected as proxynode is down...

Script is:

sub main() {
  myName = $node->name;
  // Find my proxy from myName="aaa-001-pc01"
  $node->name ~= "^([a-z0-9]+\-)";
  // Turn it into "aaa-proxynode"
  myProxy = $1."proxynode";

  // Check if myProxy exists
  nodeObj = FindNodeObject(null, myProxy);
  if(nodeObj == null) {
      return "ERR: Node ".myProxy." not found.";
  }
 
  // Check if myProxy is up
  checkPROXY = GetDCIValue(nodeObj, FindDCIByDescription(nodeObj, "Status"));
  if (checkPROXY >= 4) {
      return "OK but proxy unreachable";
  }
 
  val = -1;
  agentParam = "EXEC(proxyscript.sh ".myName.")";
  val = AgentReadParameter(nodeObj, agentParam);
  if(val == null) {
      return "ERR: Param ".agentParam." could not be retreived.";
  }

  return val;
}
#22
General Support / Native Agent not responding
October 02, 2014, 11:27:51 AM
We have had Native agent running on few devices that we later decided to only run ICMP ping polls for status.

In Polling options "Disable usage of NetXMS agent for polls" is checked, but we still get "Native agent not responding" even after a reboot of netxms server, upgrade and months after the change.

Do i missunderstand this option or is this a bug?
#23
Our setup is like this:

* Syslog Server parses log for all nodes
* NodeA and NodeB is Managed, alarms are working as intented when Syslog Server parser finds error entries.
* NodeC is Unmanaged because its not operative yet and are making alot of errors in syslog (As expected).
* Syslog Server parses log and push NodeC's error entries into NetXMS.
* NetXMS triggers threshold even if the node is set to unmanaged.

Is this correct or a bug?
#24
We are using custom parameter with bash script collecting different data inside OS or from a proxy towards http.

If a node is down, data collecting towards that node will still work if a proxy is used, but it will get NULL or ERROR data.
Is it possible to prevent DCI from adding data to DB via transformation?

Ie: if $node->status > 4: exit
#25
I managed to set SNMP and NXCP to disable via nxshell bulk, but could not find a way to set flags to enable.
https://www.netxms.org/documentation/javadoc/latest/org/netxms/client/objects/Node.html

And does a new discovered node get all flags enabled by default?
Wouldnt it be better if NetXMS disable SNMP/NetXMS poll if node does not reply to this when Network Discover finds it?
Ie trying x times and if no reply set flag to disable when creating the node.
#26
General Support / Management Console (Windows)
March 12, 2014, 09:10:59 AM
Hi

I have been having problem with my Management Console.

Running Windows 8 in a virtual envirement.
When trying to apply nodes to a Container, nothing happens after clicking "Manage" on container-rightclick.
Same problem in "Alarm Log" when trying to manage "Condition".

Using nxmc 1.2.9 and 1.2.12.
Do i have a problem with eclipse?
If so, is it possible to reset this?

On Windows 7 there is no problem with my nx user, so must be a local problem.
#27
Feature Requests / nxalarm - commands
March 07, 2014, 11:15:00 AM
With version 1.2.12 you can do this with "nxalarm":

Possible commands are:
   ack <id>       : Acknowlege alarm
   close <id>     : Notify system that incident associated with alarm is closed
   list           : List active alarms
   terminate <id> : Terminate alarm

Could you add Sticky Acknowledge (With and without custom time)?


Also, there is a typo in the "nxalarm -h"
Quoteack <id>       : Acknowlege alarm
A "d" is missing in Acknowledge.
Quoteack <id>       : Acknowledge alarm
#28
General Support / AutoAdd node if last value is X
December 11, 2013, 02:38:11 PM
Is it possible to autoadd a node if i have a Generic template gathering a value i want to decide where the node should be put?

Ex i have template that check for program version "Templates->Generic->AppVersion"

If AppVersion >=1.0 add to node to "Templates->Generiv_v1"
If AppVersion >=2.0 add to node to "Templates->Generiv_v2"
#29
General Support / Template with auto proxy node settings
November 28, 2013, 10:28:06 AM
Hi

I have been searching for a way to dynamic set proxy node in a template.

We have our hosts standard like this: xxx-000-unit (Ex: zxy-001-gw, zxy-001-srv01, zxy-001-pc1 etc and zxy-mainserv)

What i want is automatic add different proxy to nodes with a global template.
So zxy-001-gw is being checked with zxy-mainserv as proxy. And yxz-002-gw with yxz-mainserv as proxy.
And zxy-001-unit1 is being checked with zxy-001-srv01 as proxy. etc..

For now i have created template groups:
BySite->Site xzy-> Mainserv xzy: DCI having static proxy: xzy-mainserv
BySite->Site xzy-> Server xzy: DCI having static proxy: xzy-001-srv01
BySite->Site yxz-> Mainserv yxz: DCI having static proxy: yxz-mainserv ... etc
BySite=Template Group
Site xxx=Template Group
Mainserv xxx=Template
Server xxx=Template

Im able to set parameter on DCI with "%{node_name}", but not "Proxy Node" with a ScriptLibrary (%{node_name2site_name}) command that transform xzy-001-gw to xzy-mainserv

Hopefully i have descriped it good enough, if not please ask for more info