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

#1
General Support / strange Critical interface Status
January 22, 2021, 11:15:09 PM
What does the Critical interface status mean?
#2
My server property UseDNSNameForDiscoveredNodes has the value 0  but the Nodes accessible via Zone proxy running on Amazon VPS receive the name like "ip-192-168-213-2.eu-central-1.compute.internal" as the Object name. This name is probably some internal Amazon DNS name.
On Zone proxies which are not running on Amazon VPS the IP address is assigned but there are no such DNS names available.

Is the property UseDNSNameForDiscoveredNodes not working on proxies or did I understand something wrong?
#3
General / SSH.Command with different port
December 29, 2020, 03:13:54 PM
I've seen that that the SSH.Command uses fixed port 22.
It would be useful to have the possibility to specify different port. Can I add the fifth optional parameter port with default value 22 to the SSH.Command? Would you add it this change to your sources?
#4
After I increased the number of monitored Nodes via one proxy agent, I see lot of following messages in the agent log:
2020.12.28 13:23:52.562 *E* [                   ] Unable to accept incoming connection (24 Too many open files)
2020.12.28 13:23:53.066 *E* [                   ] Unable to accept incoming connection (24 Too many open files)
2020.12.28 13:23:56.570 *E* [                   ] Unable to accept incoming connection (24 Too many open files)


I've tried to increase the operating system value for max number of open file descriptors but even the value 65535 is not sufficient.

The CPU usage and other parameters of the proxy agent and server are OK.
I use some SNMP DCIs for and some script DCIs which start Agent actions on the proxy agent, but the number of DCIs is lower than 65535.

Objects............: 4404
Monitored nodes....: 1221 (approximately 900 via this proxy agent)
Collectible DCIs...: 14683


What does this message mean?
Is there any possibility to solve the problem?
#5
I am not sure if it is a bug or a feature  ;).

I use "Parent template name should match the following template (comma separated regular expression list)" filter for some Object Tools. This works correctly if the user has at least Read access right to Templates. If the user does not have this right, the tool will not appear in the Command section of the Node.

I think think that is not the expected behavior because a normal user does not need to see Templates for his daily work, but he needs to use Object tools.

Would it be possible to solve this problem and allow using this filter without having the Read access right to Templates?
#6
General Support / Force DCI poll from NXSL?
December 11, 2020, 09:59:08 AM
Is it possible to force DCI poll from a NXSL script?

I collect DCI values every 15 minutes because they change rarely and have NSXL script object commands which change the monitored state (for example on/off a display screen or input source).
It would be useful to check/change the state of DCI immediately after the command execution and not to wait 15 minutes for the next polling cycle or force the DCI poll manually.
#7
General Support / Ping status behind zone proxy
November 20, 2020, 10:48:15 AM
I use zones. If the proxy node for a zone is down the nodes monitored via SNMP are in Unknown Staus, which is correct state, but the nodes monitored by ping only are reported as down and they have Critical Status.
What is worst that the down state of the node monitored by ping sometimes reported before the down state of the proxy, which suggests that the node is really down.

Is it possible to have Unknown Status for all nodes behind a proxy and not report the nodes as down in case the proxy node is down?

#8
General / Sending e-mails from NXSL script
July 09, 2020, 04:42:13 PM
I need more complex condition for e-mail notification than simple send same email to the same recipients when the same alarm is generated.
The easiest way to achieve this is to use a NXSL script as the Event Processing Policy action. The only problem is that there is no possibility to send an e-mail from a NSXL script therefore I've added the NSXL function SendMail which allows this.

Please add the changes to the original repositories.
Code: https://github.com/netxms/netxms/pull/39
Documentation: https://github.com/netxms/nxsl-doc/pull/5
#9
General / PostgreSQL subagent
July 07, 2020, 02:35:41 PM
PostgreSQL is supported database but there was no subagent for PostgreSQL monitoring therefore I crated one.

The skeleton of the PostgreSQL subagent is similar to the Oracle subagent with some small changes.

I do not have Windows development environment and I didn't find any description what is needed therefore I've tested it on Debian only but I don't use any non-Windows specific features therefore I thing after adding of pgsql.vcxproj and pgsql.vcxproj.filters files it will be possible to compile the subagent on Windows and it will work.

Please add the agent and its documentation to the original repositories.

The changes are there as Pull requests.
Code: https://github.com/netxms/netxms/pull/38
Documentation: https://github.com/netxms/netxms-doc/pull/3
#10
I've tried to migrate the data form PostgreSQL format to TimescaleDB. But it failed with following error messages:


# nxdbmgr migrate /etc/netxmsd.conf.pgsql
NetXMS Database Manager Version 3.3.340 Build 3.3-340-gdde893b7a5 (UNICODE)

Source:
        Driver: pgsql.ddr
        DB Name: netxms
        DB Server: 127.0.0.1
        DB Login: netxms

Target:
        Driver: pgsql.ddr
        DB Name: timescale
        DB Server: 127.0.0.1
        DB Login: netxms

Options:
        Skip audit log.............: no
        Skip alarm log.............: no
        Skip event log.............: no
        Skip syslog................: no
        Skip SNMP trap log.........: no
        Skip collected data........: no
        Skip data collection schema: no

Confirm database migration? (Yes/No) y
Database driver pgsql.ddr loaded
Connected to source database


WARNING!!!
This operation will clear all configuration and collected data from destination database before migration.
Are you sure? (Yes/No) y
Database successfully cleared
Migrating table config
Migrating table config_clob
Migrating table config_values
Migrating table users

...

Migrating table idata_160 to idata
Migrating table tdata_160 to tdata
Migrating table idata_164 to idata
ERROR: unable to insert data to destination table (23505 ERROR:  duplicate key value violates unique constraint "2161_2161_idata_sc_default_pkey"
DETAIL:  Key (item_id, idata_timestamp)=(1227, 2020-05-19 02:01:11+02) already exists.)
ERROR: unable to insert data to destination table (23505 ERROR:  duplicate key value violates unique constraint "2161_2161_idata_sc_default_pkey"
DETAIL:  Key (item_id, idata_timestamp)=(1227, 2020-05-19 14:25:13+02) already exists.)
ERROR: unable to insert data to destination table (23505 ERROR:  duplicate key value violates unique constraint "2161_2161_idata_sc_default_pkey"
DETAIL:  Key (item_id, idata_timestamp)=(1227, 2020-05-19 05:13:12+02) already exists.)

...

ERROR: unable to insert data to destination table (23505 ERROR:  duplicate key value violates unique constraint "2721_2721_idata_sc_default_pkey"
DETAIL:  Key (item_id, idata_timestamp)=(1227, 2020-05-28 22:45:14+02) already exists.)
ERROR: unable to insert data to destination table (23505 ERROR:  duplicate key value violates unique constraint "2721_2721_idata_sc_default_pkey"
DETAIL:  Key (item_id, idata_timestamp)=(1227, 2020-05-29 01:59:14+02) already exists.)
Database migration failed.


The server version is 3.3.340 on Debian.
Did I do something wrong or PostgreSQL uses different keys than TimescaleDB?
How can I correct the problem?
#11
I wanted to configure a common graph for several DCI values with the same instance (they have same Instance Discovery script).

I used {instance-name} in the Title and Group fields, but it didn't work. All instances were displayed in one graph and the displayed Title of the graph contained the text {instance-name} instead of its value.
Then I tried to use {instance} in the Title and Group fields and everything works as I need. Even the title of the chart contains the name of the instance, so the contents of {instance-name}, even though I have {instance} used in the Title configuration.

it seems confusing to me and is probably not an intention.
#12
I've tried to use vmgr.nsm. It works fine with ESXi hypervisors but when try to connect to a vCenter server it fails with following error:
2020.05.21 11:11:47.611 *W* [                   ] VMGR: Unable to add connection URL "esx://[email protected]/?no_verify=1" for connection name "vcenter"

The configuration is following:
[vmgr:vcenter]
Url = esx://[email protected]/?no_verify=1
Login = root
Password = XXX



The password in the real configuration is different but it is OK. I can login with this login and password to vCenter Web UI.

Did I do something wrong or supports vmgr.nsm ESXi hypervisors only?
#13
General Support / Stacked graph draw problem
May 18, 2020, 09:22:00 PM
I've a stacked graph with 7 values on the Performance tab and it is sometimes presented not correctly.
When I change the graph to not stacked it is always correct.
#14
General Support / Stacked graph error
May 11, 2020, 11:03:20 PM
I have probably found an error in stacked graph presentation.
If I have a stacked graph on the Performance tab it is displayed correctly.
After double click on the graph a new tab with this graph is open but this new graph is not stacked.

I can check the Stacked option in the Properties of the graph tab after opening and the graph is displayed correctly but I think it is an error that this setting is not taken from the original Performance tab. I think it is confusing that after double click on a performance graph a graph in another format is displayed.

I have attached a template with Dummy DCIs from my test therefore you can easily reproduce the problem.

#15
When I open Configuration - Web Service Definitions in the Web Management Console or in the Windows Management Console I get following error message: "Cannot get web service definitions: Access denied".
What does this error mean?
#16
I use executeSSHCommand in my script and it sometimes doesn't return value. I've set  DebugLevel = 9 and there is following message in the agent log:
2020.04.09 13:12:51.493 *D* [comm.cs.1          ] GetListValue(): result is 500 (INTERNAL_ERROR)

The behavior is very strange. The problem occurs only on Raspberry Pi or on x64 linux accesed from other server and even in this case it doesn't occur every time.
I wrote a C program to test it. It has two parameters first is sleep time in seconds a the second one is the return value (output to stdout).


The log is attached.
   

#17
I've found that the ssh.nsm is missing in nxagent-3.2.451-linux-x86_64.tar.gz and nxagent-3.2.451-linux-x86_64.apkg.
The Debian package seems to be OK.

Is it an intention or it was removed by mistake?
#18
General Support / Source node and templates?
March 24, 2020, 11:18:47 AM
I have some SSH DCIs which run the ssh commands on different server using Source node setting.
It works fine when I configure the DCI directly on a Node but different Nodes needs to use different Source nodes therefore I have problem to convert these commands to templates.

When I set  the Source node in the template the same Source node is copied to all Nodes a when I leave it empty it is empty on all Nodes.

I've tried to set the SSH Proxy on the Node, but it is not used by the SSH DCIs. I probably din 't understood the SSH Proxy functionality and I didn't find any description in the Administrator Guide.

What is the reason for SSH Proxy and how it works?

Is it possible to configure what I need (= different Source nodes for DCIs assigned from a template)?

Thank you in advance for any help.