News:

We really need your input in this questionnaire

Main Menu
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

#631
General Support / Re: Netxms and smtp port 587
May 22, 2023, 06:02:22 PM
SMTP Authentication was added in 4.3, so now it should work without email forwarder. Please see updated documentation: https://www.netxms.org/documentation/adminguide/event-processing.html#notification-channels
#632
General Support / Re: SMTP Setup
May 22, 2023, 06:01:27 PM
SMTP Authentication was added in 4.3, so now it should work without mail relay software. Please see updated documentation: https://www.netxms.org/documentation/adminguide/event-processing.html#notification-channels
#633
Аутентификация была добавлена в 4.3: https://www.netxms.org/documentation/adminguide/event-processing.html#notification-channels
#635
General Support / Re: TLS SMTP problem
May 22, 2023, 05:54:39 PM
SMTP Authentication was added in 4.3, please see updated documentation: https://www.netxms.org/documentation/adminguide/event-processing.html#notification-channels
#636
General Support / Re: SMTP Authentication
May 22, 2023, 05:54:18 PM
SMTP Authentication was added in 4.3, please see updated documentation: https://www.netxms.org/documentation/adminguide/event-processing.html#notification-channels
#637
Feature Requests / Re: SMTP authentication
May 22, 2023, 05:54:08 PM
SMTP Authentication was added in 4.3, please see updated documentation: https://www.netxms.org/documentation/adminguide/event-processing.html#notification-channels
#638
General Support / Re: How to send mail notify
May 22, 2023, 05:53:47 PM
SMTP Authentication was added in 4.3, please see updated documentation: https://www.netxms.org/documentation/adminguide/event-processing.html#notification-channels
#639
В правах доступа нас интересуют галочки, которые справа. Они все выставленны, так что на эту ноду у группы Admins есть все права и у пользователя, состоящего в этой группе должна быть возможность делать все действия.

Так что не очень понятно, в чем тут может быть дело. Если есть подозрение, что не работает на определенных машинах, можно собрать лог агента на 6 уровне отладки. Для этого в конфиг файл агента поставить:

LogFile =  C:\NetXMS\log\nxagentd
DebugLevel = 6
#640
Все правильно описали
- session agent нужен для скриншотов, запускается в каждой сессии
- user support application тоже умеет делать скриншоты, так же запускается в каждой сессии. Но еще умеет покзаывать юзеру нотификации и в ней можно наконфигурить пользовательское меню, запускающее какие-либо команды. Конфигурация эта делается в Template -> Agent Policies - там есть тип политики user support application.

И тот и другой прописываются в автозапуск в Windows, но для user support application есть еще параметр в конфиге агента AutoStartUserAgent чтоб перезапускать эту аппликацию, если юзер из нее выйдет.
#641
Можно теоретически из трансформационного скрипта этого табличного DCI раскидывать значения по другим DCI. Но удобнее так:

- Сделать ExternalList, который будет запускать скрипт, возвраюащий список datastore.
- Этот list можно использовать для instance discovery, чтоб DCI создавались автоматически
- Сделать ЕxternalMetricProvider, который будет запускать скрипт, возвращающий метрики для всех datastore - он может возвращать данные в формате
MetricName(datastore_name)=Value

#642
dciId = 2531;
threshold = 500 * 1000 * 1000;

t = localtime();
t->hour = 0;
t->min = 0;
t->sec = 0;
endTime = mktime(t);

if (t->mon >= 2) {
  t->mon = t->mon - 1;
}
else
{
  t->mon = 12;
  t->year = t->year - 1;
}
startTime = mktime(t);

a = GetDCIValues($node, dciId, startTime, endTime);

HighCnt = 0;
Cnt = 0;

for (v : a) {
  Cnt++;
  if (v > threshold) HighCnt++;
}

return HighCnt / Cnt;

Here's an example script that grabs all values for a DCI for last month. You can put this in a script DCI that is being collected by cron schedule on the first day of each month.

Once you nave array with values, you can do various calculations with them. If you want to do calculations that involve big numbers, e.g. calculating average value, initialize variable like that:

TotalCounter = 0L;

This will use INT64 for this variable.
#643
Actually, can you attach an example of how export from the Dude looks like? We might be interested in adding some out-of-the box scripts for import as this might be useful for many people.

Is it only the list of nodes, or there is some other useful data from the Dude that can be exported (e.g. templates with OIDs for SNMP polling, etc...)
#644
I've played a bit trying to replicate this, but did not get any success.

There are two different things - creation of alarm and increasing count for already existing alarm.


When a new alarm is created, HOOK:AlarmStateChange is not being executed (as it runs only when status changes for already existing alarm).

But when alarm already exists and status changes (e.g. Alarm was previously acknowledged and changes to outstanding), this script will be executed.
If alarm is terminated by EPP, script will also be executed and $alarm->state will be equal to 3.


Can you give some exact sequence of what was happening on your system - was alarm already present on a node or it was created? Based on what event alarm is created? Are there any EPP rules that could modify or terminate the alarm?


#645
Yes, URL field supports macros, so %[OGAckAlarmID] should work. I am not sure how you are getting alarm ID in that script, may be you should pass the ID as parameter in your PostEvent() calls.

Request Data field is employed when web service is used as data source for a DCI. When using post() method of web service object, that field is ignored, so you have to pass the whole request in post() call.