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 - Filipp Sudanov

#976
General Support / Re: Move Netxms
July 20, 2021, 07:33:40 PM
Yes, e.g. for DCI with ID 291 there are consecutive SYS_THRESHOLD_REACHED events without SYS_THRESHOLD_REARMED in between.

Can you show output of the following on your database:
select * from event_cfg where event_name like '%REARM%';
select * from thresholds where item_id = 291;
#977
General Support / Re: Move Netxms
July 19, 2021, 02:11:39 PM
If you select that threshold last(10)>1000 and click "Edit...", is SYS_THRESHOLD_REARMED event present in "Deactivation event" field?

Check Event Log for that node. Does SYS_THRESHOLD_REARMED event happen?

Could it be that somewhere in rules 1..17 there is a rule that would also react to SYS_THRESHOLD_REARMED?
#978
General Support / Re: SNMP UNSUPPORTED
July 19, 2021, 11:40:15 AM
Checked what we have in log - the line that you would be looking for looks like this
2021.07.19 11:32:30.489 *D* [                   ] Node(OpenWrt.lan)->getMetricFromSNMP(.1.3.6.1.2.1.31.1.1.1.6.3): snmpResult=0
but it's actually debug level 7, not 6 (so would produce event more lines of log).

Probably better approach would be to collect tcpdump on your NetXMS server - you can filter by particular IP address so the dump won't be too big. It wold be good to collect three cases - netxms gets data normally, when DCI goes to unsupported and getting with snmpget.
#979
В свойствах интерфейсов на закладке Polling есть Expected state. По умолчанию он выставляется в то состояние, в котором был интерфейс при его создании. Можно там поставить IGNORE тогда события, что интерфейс ушел в DOWN не должны создаваться.
Массовое изменение можно сделать в hook::ConfigurationPoll скрипте - там нужно будет в цикле проходить по всем интерфейсам ноды.

Или вручную запустить скрипт, который пройдет по всем нодам и по интерфейсам. А для новых интерфейсов, создаваемых в системе добавить обработку в Hook::CreateInterface
#980
General Support / Re: List Node IP in Summary Table
July 16, 2021, 04:38:03 PM
Just tried this
- created a DCI, type: Internal, parameter: Dummy(ip), data type: string, transformation script: return $node->ipAddr;
- checked in last values that this DCI actually collects the IP address
- created summary table, added column named IP addr, DCI name: Dummy(ip)

so there's no need for an OID - DCIs are identified by parameter and parameter in this case is "Dummy(ip)"
#981
General Support / Re: SNMP UNSUPPORTED
July 16, 2021, 04:15:06 PM
What exactly version of NetXMS are you using? Are you collecting directly, or via NetXMS proxy?

Can you try setting debug level 6 for a moment and do manual poll of that DCI? On the server you can change debug level on the fly in Tools -> Server console by issuing e.g.
debug 6
#982
General Support / Re: snmp traps rate
July 02, 2021, 05:29:16 PM
The processing has several steps:
- trap arrives
- event generated
- event processed by EPP and some actions are executed.

It's important to understand on what stage the delay are. Can you check timestamps in snmp trap log, event log and alarm log to see where it's delaying?

Also, there's a built-in template for netxms server performance monitoring. If you upgraded from previous versions, that template does not get upgraded automatically (you need to change ImportConfigurationOnStartup server configuration parameter and restart the server, or you can take /share/netxms/templates/netxms_server.xml file from the file system of the server and import it using web/desktop client.
#983
General Support / Re: Netxms and smtp port 587
June 30, 2021, 06:02:07 PM
No, currently not. You need to use for email forwarder like postfix.
#984
Let's try to exclude the option that transformation scripts get randomly delayed. Try wrapping transformation scripts in something like
trace(0, $object->id . ":" . $dci->id . " tranformation script start");
...
trace(0, $object->id . ":" . $dci->id . " tranformation script end");


first parameter of trace() defines the log level. This way you should get some stats on the actual duration of the transformation scripts.

#985
General Support / Re: Move Netxms
June 21, 2021, 11:09:38 PM
You can use nxdbmgr for database migration
nxdbmgr migrate conf_file_with_config_for_connection_to_old_database.conf

there are several parameters to skip collected data and logs, to exclude most add following to the above command
-s -Z alarm -Z audit -Z event -Z snmptrap -Z syslog -Z winevent
#986
Collection of server log would be beneficial here. Can you set debug level 6 for client.* tag (issue "debug client.* 6" in Tools->Server Console or you can set this in server configuration file).
nxpush is creating the same connection as nxmc, so sessions of both will be visible under this tag. Each new connecting gets a new session id which is visible in the debug tag, e.g. client.session.1234.

Then, when you encounter a nxpush nang, you should be able to find and grep out a corresponding session from the log file.
#987
General Support / Re: Syncer Thread not responding
June 16, 2021, 12:03:04 PM
There's out of the box template for server monitoring which has a number of DCIs for queue and thread wait time monitoring. If you were upgrading from previous version this may not have imported, unless ImportConfigurationOnStartup server configuration parameter is set to "Always".
You can just take this template file from server file system and import it via nxmc - it's here: share/netxms/templates/netxms_server.xml

Monitoring of database is also a good thing. If you use Postgres, there is subagent for it which provides a number of parameters that could be useful.
#988
I'd probably just use some big number for default value like %{signal_min:999999999}
Also you can use hook scripts to add some default value for custom attribute on node creation or configuration poll if attribute is not present yet.
#989
Another option could be to create push DCIs use PushDCIData(). You can e.g. do this from a transormation script of of another DCI.
#990
Hi!

By filtering the was as it's in alarms do you mean filtering by entering text in filter field or sorting by clicking on the column headers.

Problem with filtering of table DCI is described in this issue: https://track.radensolutions.com/issue/NX-1871
There are plans to have some out-of-the-box DCI grouping mechanism, issue for this is here: https://track.radensolutions.com/issue/NX-777