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

#226
If tables are already created - run "nxdbmgr upgrade"
#227
General Support / Re: Force DCI poll from NXSL?
December 11, 2020, 10:43:14 AM
You can call forcePoll() method on the DCI (https://www.netxms.org/documentation/nxsl-latest/#_instance_methods_5)


dciId = FindDCIByName($node, "My.Custom.DCI");
if (dciId > 0) {
  dci = GetDCIObject($node, dciId);
  if (dci != null) {
    dci->forcePoll();
  }
}
#228
General Support / Re: Set a delay alert up/down via email
December 09, 2020, 10:38:16 PM
You can use action timers for this. Set action delay and key (for example NODE_DOWN_%i - macros are the same as in other places of EPP, %i - object id) in NODE_DOWN rule. Then cancel timer with the same key in NODE_UP rule. Sample config attached.

When SYS_NODE_UP is generated, new action will be scheduled to be executed in 5 minutes. If during this time SYS_NODE_UP is generated for the node - action will be canceled, otherwise you'll get single email with 5 minute delay.
#229
Да, скорее всего так и есть. Попробуйте прописать зависимость от базы, которую вы используете.
#230
Тут есть несколько путей решения проблемы:

1) увеличить параметр Samples в настройках трешхолда - тогда он будет срабатывать только если трешхолд совпадает n семплов подряд (например "polling time=1min, samples=3, last > 70" сработает только если температура больше 70 в течении трех минут).
2) кроме отсылки мейла, добавить в это правило EPP action=script, в котором на ноде выставлять время последней отсылки, что-то типа

SetCustomAttribute($node, "lastSent", time());

и фильтром на этом же правиле проверять:
if (lastSent@$node != null && lastSent@$node + 3600 < time()) { // 3600 - разница в секундах
  return false;
}
return true;


(альтернативный вариант - сделать правило с stop processing - или еще что-то на скриптах)

2) сделать трешхолд с функцией Script и скриптом вида:

if ($1 > 70) { return true; }
if ($dci->hasActiveThreshold && $1 > 65) { return true; }
return false;


с таким скриптом трешхолд сработает на превышении 70-и градусов, а уйдет в нормальное состояние только когда температура просядет ниже 65.
#231
According to systemctl output, netxms is installed in /usr, but it tries to load modules from /usr/local/bin - this looks like you mixed binaries from different versions.
I recommend to clean both versions, then configure and make install again.

Which distro do you use?
#232
You are running netxmsd as user "josemb" which does not have write access to /var/log.
Either run netxmsd as root, or change configuration file location.

Quote from: jbriseno on December 05, 2020, 02:02:33 AM
Hi, Filipp

I deleted the /var/log/netxmsd file

josemb@hpserver1:~$ netxmsd -D 6
Using configuration file "/etc/netxmsd.conf"
FATAL ERROR: Cannot open log file
#233
Quote from: jbriseno on December 04, 2020, 09:16:54 PM
Finally, I check the netXMS server log file. I attach the latest lines.

2020.12.04 16:43:18.937 *I* [logger             ] Log file opened (rotation policy 2, max size 4194304)
2020.12.04 16:43:18.937 *I* [logger             ] Log rotation policy set to 2 (size=16777216, count=4)
2020.12.04 16:43:18.937 *I* [                   ] Core agent version 3.6-300-g287f599693
2020.12.04 16:43:18.937 *I* [                   ] Additional configuration files was loaded from /etc/nxagentd.conf.d
2020.12.04 16:43:18.937 *I* [logger             ] Debug level set to 0
...


that's agent log file, not server.
#234
This hook is executed on every configuration poll (by default it's once an hour)
#235
Add to configuration pool hook (Scripting Liibrary -> Hook::ConfigurationPoll):

$object->enableEtherNetIP(false);
#236
Общие вопросы / Re: Gauge Chart
October 23, 2020, 08:30:44 AM
В edit mode не все компоненты доступны (там вообще есть проблемы с этим режимом).
Правый клик на дешборде в дереве -> Properties -> Dashboard Elements
#237
На данный момент - только изменением статуса объекта (алармом или скриптовывм DCI который возвращает статус ноды)
#238
Thank you, I've registered issue as https://track.radensolutions.com/issue/NX-1968.
#239
General Support / Re: Not all Interfaces are appearing
October 16, 2020, 11:00:27 AM
switch to "Last Values" tab, there will be list of all active DCIs. You can access history / charts from there.
#240
Announcements / Re: NetXMS 3.5 released
October 15, 2020, 10:32:13 PM
Try now, I've resigned repository.

Quote from: mdirks on October 15, 2020, 04:34:10 PM
On ubuntu 16 or 18 it is still 3.5.133

M. Dirks - ITeeCo

Quote from: Victor Kirhenshtein on October 14, 2020, 10:51:49 AM
3.5.136 is now available in repository.

Best regards,
Victor