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

#1
General Support / System.CurrentTime clarification
October 05, 2022, 01:32:48 AM
Hi,

agent and server version 3.9.178
I created a DCI with the agent parameter System.CurrentTime.
I validated timezone settings for multiple windows servers on which agents are running and the collected time is the same.
Should System.CurrentTime represent the current local time of the windows server where the agent is installed?

Thanks. 
#2
Version = 3.9.178
Windows Server 2019
Postgres Db backend

Receiving these on NetXMS core server - it does appear the watchdog has restarted in every occurrence.

Alarm
Thread "Poll Manager" is not responding

and server.log entries?
2021.09.06 19:28:28.406 *E* [watchdog           ] Thread "Poll Manager" does not respond to watchdog thread
2021.09.06 19:28:28.421 *I* [watchdog           ] Thread "Poll Manager" returned to running state
#3
Feature Requests / Jira Cloud Integration
July 14, 2021, 12:01:39 AM
Hi,

We are implementing Jira (Cloud Version) and looking to integrate with NetXMS.  It would be great if you had Jira integration for the Cloud version. 

I can make it work as-is. I have determined to use NetXMS Action to create issue via Jira Rest API, and create Alarm comment with JiraIssue={issueKey}.  Using Jira Webhooks, update NetXMS on issue status change (I have extended WebAPI to support updates via a GraphQL API).  Jira would Acknowledge Alarm when assigned and add Alarm comment with user assigned JiraUserAssigned={jiraUserName}.  On Jira issue close, Resolve Alarm and add comment as needed.  Then as routine maintenance, terminate resolved alarms using scripting. 

It would be helpful to have update access to the NetXMS alarm helpdeskReference field using similar session methods such as session.updateAlarm(Alarm alarm) or session.linkHelpdeskIssue(long alarmId, string helpdeskReference).

Is there any visual indication in NetXMS Alarm browser for helpdesk linked alarms?

Thanks.
#4
The System.Services agent table is great! 
Even better would be to add
Configured "logon as" or "run as" account.
Startup type "auto (delayed start)"

Thanks.
#5
Hi,

NetXMS Agent version = 3.5.90

I have added a DCI to track memory use of the NetXMS Agent process using built-in Process.WkSet("nxagentd.exe").
Overtime I see a trend of increased memory use - I have attached chart of trend.  You can see the drops indicating restart of node or agent service.
Is this a memory leak?
What is normal memory use?

Thanks.
#6
Version 3.4
It would be very helpful to allow change owner of scheduled task from any admin user account.  My work-a-round - I have created a special user and edit scheduled task so that the event is logged as that user.  We have several scheduled nodes with startup/shutdown times with associated scheduled tasks.  I plan to create a conditional script for maintenance mode enter/leave to account for node being placed in maintenance manually to over-ride schedule.

Thanks.
#7
The Object Tool is very useful for building tools that require context.  Adding a dropdown or list of choices input field would be a helpful addition.
#8
Would be helpful to have DCI right-click context tool.  This could enable remediation for DCI's in alert status.  I do currently have an Object Tool that uses Alarm message context.
#9
General Support / Create new Zone using nxshell
October 01, 2020, 06:15:48 PM
Hi,

Is it possible to create a new zone using nxshell in version 3.5?

Thanks.
#10
General Support / nxshell-3.2.451 python version
April 22, 2020, 03:41:56 AM
from launched nxshell-3.2.451

print sys.version
2.7.1 (default:0df7adb1b397, Jun 30 2017, 19:02:43)

is there any plans to upgrade the embedded python to version 3.x?

thanks.
#11
Hi,

Windows version 2.2.13.  Agent tunnels have been working now for just over 1 year.  Some nodes have alerts "Native agent is not responding" and have been changed to "unbound" in Agent Tunnel Manager.  I have found the problem to be the certificate created by tunnel has expired. 

Location of generated agent tunnel certificate = C:\Windows\System32\config\systemprofile\AppData\Local\nxagentd\certificates 

It appears when the agent is first "bound", this certificate is created with one year expiration.

Fixing the problem is a matter of "Bind to" existing node.  However, this resets some of the "Instance Discovery" DCI's, which I use a lot of. 

Is there a way to rebind without loosing dci data?
Can you change the default expiration of the generated tunnel certificate?
Other remedies?

Thanks.
#12
Hi,

Current version is 2.2.13 for Windows.  I am retrieving $node->alarms and wish to resolve alarm->ackBy and alarm->resolvedBy to fullName of user.  It appears the UserDBObject Class has this info, I just can't find how to get an instance.

Thanks.
#13
Hi,

Could anyone provide info of any enhancements to the WebSvc (HTTP/REST API) that will be in 3.x?
If no documentation, any source code links for WebSvc 3.x?

Thanks.
#14
Version 2.2.13
C:\NetXMS\bin> .\nxshell.exe -u myUserName -P myPass ..\var\scripts\myscript.py
Traceback (most recent call last):
  File "..\var\scripts\myscript.py", line 256, in <module>
    objectTools = session.getObjectTools()
        at org.netxms.client.objecttools.ObjectTool.<init>(ObjectTool.java:96)
        at org.netxms.client.NXCSession.getObjectTools(NXCSession.java:7256)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError: org/simpleframework/xml/Serializer
#15
Hi, I am coding in python using nxshell version 2.2.8

Looking at some post about how to create new data collector items - this works!
https://www.netxms.org/forum/general-support/how-to-create-dci-using-netxms-java-api-version-2-1-m3/msg22320/#msg22320

However, the API Reference marks this method as Deprecated.  Going forward, what is/will be the proper API call(s) to create DCI's?
https://www.netxms.org/documentation/javadoc/latest
createItem(DataCollectionObject object)
Deprecated.

Thanks.
#16
Hi, I am coding in python using nxshell 2.2.8 and having problems retrieving Event Processing Policies

    epp = session.getEventProcessingPolicy()
        at java.util.Objects.requireNonNull(Objects.java:203)
        at java.util.Arrays$ArrayList.<init>(Arrays.java:3813)
        at java.util.Arrays.asList(Arrays.java:3800)
        at org.netxms.client.events.EventProcessingPolicyRule.<init>(EventProcessingPolicyRule.java:135)
        at org.netxms.client.NXCSession.getEventProcessingPolicyInternal(NXCSession.java:5897)
        at org.netxms.client.NXCSession.getEventProcessingPolicy(NXCSession.java:5912)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
java.lang.NullPointerException: java.lang.NullPointerException

    epp = session.openEventProcessingPolicy()
        at java.util.Objects.requireNonNull(Objects.java:203)
        at java.util.Arrays$ArrayList.<init>(Arrays.java:3813)
        at java.util.Arrays.asList(Arrays.java:3800)
        at org.netxms.client.events.EventProcessingPolicyRule.<init>(EventProcessingPolicyRule.java:135)
        at org.netxms.client.NXCSession.getEventProcessingPolicyInternal(NXCSession.java:5897)
        at org.netxms.client.NXCSession.openEventProcessingPolicy(NXCSession.java:5926)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
java.lang.NullPointerException: java.lang.NullPointerException
#17
Hi, I am coding in python using nxshell 2.2.8 and having problems retrieving ScriptLibrary (need rows from table script_library)

the below code retrieves script id and name, but source = None.
scripts = session.getScriptLibrary()
for script in scripts:
    pprint('id={0} name={1} source={2}'.format(
             script.getId()
            ,script.getName()
            ,script.getSource()
        )
    )

'id=1 name=Filter::SNMP source=None'
'id=2 name=Filter::Agent source=None'
'id=3 name=Filter::AgentOrSNMP source=None'
'id=4 name=DCI::SampleTransform source=None'
'id=11 name=Hook::StatusPoll source=None'
'id=12 name=Hook::ConfigurationPoll source=None'
'id=13 name=Hook::InstancePoll source=None'
'id=14 name=Hook::TopologyPoll source=None'
'id=15 name=Hook::CreateInterface source=None'
'id=16 name=Hook::AcceptNewNode source=None'
'id=17 name=Hook::DiscoveryPoll source=None'
'id=18 name=Hook::PostObjectCreate source=None'
'id=10000 name=testTraverse source=None'
#18
Hi, I am coding in python using nxshell 2.2.8 and having problems retrieving EventObjects (need rows from table event_cfg)

    session.syncEventObjects()
AttributeError: 'org.netxms.client.NXCSession' object has no attribute 'syncEventObjects'

    events = session.getEventObjects()
AttributeError: 'org.netxms.client.NXCSession' object has no attribute 'getEventObjects'

    events = session.getCachedEventObjects()
AttributeError: 'org.netxms.client.NXCSession' object has no attribute 'getCachedEventObjects'

    event = session.findEventObjectByCode(1)
AttributeError: 'org.netxms.client.NXCSession' object has no attribute 'findEventObjectByCode'

#19
like missing semicolon.  Version 2.2.8
#20
General Support / Expand All in conjunction with Filter
January 31, 2017, 10:07:51 PM
When filtering objects it would be very useful to have Expand All functionality to show where in the Infrastructure Services tree the node is referenced.