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

#766
Это новый web интерфейс, он в стадии разработки, публикуется "на посмотреть". Десктопная версия такая тоже есть.
Старый веб интерфейс доступен, nxmc-legacy-4.1.333.war
#767
а как именно она слегла? ругается, просто страница не открывается?

Типовая процедура - удалить .war файл, перезапустить tomcat, снова положить .war файл
#768
General Support / Re: Mapping Events and EPP
May 17, 2022, 11:08:41 AM
You can use Tools->Export to export all EPP rules. This would give .xml file.
#769
Yup, looks like a bug, will have a look.
#770
В трансформационном скрипте у табличного DCI в $1 будет объект класса Table
https://www.netxms.org/documentation/nxsl-latest/#class-table

У него в частности есть метод deleteRow(rowId)

#771
General Support / Re: Script DCI
May 11, 2022, 04:18:07 PM
Starting from 4.1.283 there is $dci variable that contains corresponding DCI object.
#772
General Support / Re: Telegram channel Issue
May 10, 2022, 09:10:34 PM
You still have a lot of these lines in the log:

2022.05.10 08:28:21.888 *D* [ncd.telegram       ] Cannot find chat ID for recipient Utelred_bot and bot Ut

It looks that NetXMS is attempting to send something to Utelred_bot all the time. Please check if there is an action that is configured to send notification to Utelred_bot and check what could be triggering that action from Event Processing Policy.


The way it works is that after NetXMS is trying to send something to Utelred_bot driver status falls into error. When you are sending something to josebriseno, sending is successfull and driver status becomes success for some time (till another attempt to send to Utelred_bot).
#773
General Support / Re: Telegram channel Issue
May 10, 2022, 01:34:35 PM
In one place of your log a message seems to be delivered:
2022.05.09 14:09:17.735 *D* [ncd.telegram       ] Message from bot Ut to recipient josebriseno successfully sent

Did you actually get it?


A bit below it says that can not find chat id:
2022.05.09 14:09:18.843 *D* [ncd.telegram       ] Cannot find chat ID for recipient Utelred_bot and bot Ut

This place looks like Ut is trying to send message to Utelred_bot. I doubt that a bot can send message to another bot (but you can create a chat where bots are participants).


So the question is - what exactly is not working?
#774
General Support / Re: Trusted Nodes
May 10, 2022, 12:54:44 PM
First of all, you can turn checking of trusted nodes on server level by changing CheckTrustedNodes server configuration parameter.

Mass changins of node properties is only possible with nxshell - you'd need to create a script using jithon. nxshell communicates with the same api as management client, so everything that could be done via client can be done in nxshell.
API documentation is here: https://www.netxms.org/documentation/javadoc/latest/index.html
Some information about nxshell is here: https://wiki.netxms.org/wiki/Using_nxshell_to_automate_bulk_operations
#775
General Support / Re: Maleformed eMail
May 10, 2022, 12:50:13 PM
Hi!

Can you check Configuration->Notification channels, properties of SMTP-Text. There should be parameter FromName=, most probably it should be fixed.
#776
General Support / Re: Telegram channel Issue
May 06, 2022, 05:46:07 PM
And what there is in the log with debug level to 6 for tag ncd.telegram?
#777
Created an issue for that, you can follow it in the bug tracker
https://track.radensolutions.com/issue/NX-2258
#778
Не, вручную не стоит, у нас есть шаблоны (Templates) и лучше все делать через них.

В дереве объектов правый клик на Templates, Create, Template, дать ему какое-нибудь имя. Он появится под Templates. На нем правой кнопкой, Data Collection Configuration. Там опять-таки нужно создать DCI со всеми свойствами (или можно на том DCI что был создан на ноде сделать Copy to another node и указать имя шаблона).
Дальше нужно шаблон назначить на ноды. Правой кнопкой по шаблону, Apply. Там можно выбирать несколько нод сразу (с помощью shift или ctrl), или можно выбрать сразу контейнер.

Еще шаблоны умеют накладываться автоматом - там может быть скрипт, который решает, нужен ли этот шаблон на этой ноде. Примеры можно посмотреть в шаблонах, которые идут "из коробки" - Templates->Operating systems например.
#779
Да, получается что в этом списке может быть еще тот юзер, что залогинен на Console и он может быть пустой. И список может быть в любом порядке. Тогда такой скрипт, он соберет всех юзеров через запятую, если имя юзера не пустое:


list = $node->readAgentList("System.ActiveUserSessions");
loggedUsers = %();
for (l : list)
{
  username = SplitString(l, "\"")[1];
  if (username != "") loggedUsers->append(username);
}
loggedUsersStr = ArrayToString(loggedUsers, ",");
$node->setCustomAttribute("currentlyLoggedUser", loggedUsersStr);
#780
А custom attribute "currentlyLoggedUser" вы добавили вручную, или он автоматически добавился?

Если автоматически, то выглядит, что скрипт возвращает пустое значение. Если на ноде сделать Execute server script и там запустить вот это, то что оно напечатает?:

list = $node->readAgentList("System.ActiveUserSessions");
println("=" . list . "=");
currentlyLoggedUser = SplitString(list[0], "\"")[1];
println("=" . currentlyLoggedUser . "=");