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 - Alex Kirhenshtein

#586
Ну и самое простое (если записи только добавляются) – delta по max:select count(*) from t1
#587
В данных, которые лежат в таблице – в них есть время добавления записи?
#588
Я бы возвращал время последней записи в виде unix timestamp (количество секунд) и потом сделал бы threshold с функцией delta.

Что-то типа:select extract(epoch from record_timestamp) from ... where ... order by record_timestamp desc limit 1

Запрос можно выполнять через DBQuery субагент: https://www.netxms.org/documentation/adminguide/subagents.html#dbquery
#589
Package structure was changed in M3: https://www.netxms.org/forum/announcements/debian-packages-for-version-2-0-m3-and-up/.
Remove existing package (don't purge or you'll loose configuration files) and install two packages: "netxms-dbdrv-mysql " and "netxms-server".
#590
Это сделано специально.
Если очень хочется – остановите сервер и поменяйте флаги в базе: update users set flags = flags|4 where id=0
#591
А в Event Log что-то пишется?
#592
Operation и Value игнорируется
#593
As temporary workaround – stop netxmsd and run following SQL query:update network_services set ip_bind_addr = 'UNSPEC' where ip_bind_addr = '0.0.0.0';
#595
Please note that if netxmsd is started without root permissions, ICMP and SNMP traps will not work (RAW sockets required for ICMP and SNMP traps are received on port 162).

If you running modern Linux you can set capabilities to overcome that:
sudo /sbin/setcap cap_net_bind_service,cap_net_raw=ep /opt/netxms/bin/netxmsd

To verify:
1) check with getcap:$ /sbin/getcap /opt/netxms/bin/netxmsd
/opt/netxms/bin/netxmsd = cap_net_bind_service,cap_net_raw+ep

2) This error should not appear anymore on log file: "[ERROR] Unable to bind socket to port 162 in function SNMPTrapReceiver: Permission denied"

P.S. setcap/getcap are from package libcap2-bin
#596
У вас JVM версии 6 или ниже; Jython собран при помощи JDK 7.
Я очень рекомендую вам обновить JVM на версию 8, потому что обновлений уже нет даже на 7-ю версию, не говоря уже про предыдущие.
#597
Общие вопросы / Re: nxshell
May 26, 2015, 05:14:40 PM
That's know bug, which was fixed in revision d73dee5
#598
Set "LogFile" in /etc/netxmsd.conf to some location where file can be created.
For example:LogFile=/var/log/netxmsd
#599
Hello. admin/netxms is default credentials, but you have another issue – WebUI can't connect to the server. Check that netxmsd is running and accepting connections on port 4701/TCP.
#600
sample nxagentd.conf: Subagent=ups.nsm
[ups]
Device = 0:"COM1:":MEGATEC


Check wiki for more details: https://wiki.netxms.org/wiki/Uninterruptible_Power_Supply_(UPS)_Monitoring