Recent posts

#11
General Support / Error exporting report to PDF
Last post by fabrizio.alba - March 21, 2024, 06:03:57 PM
Good morning everyone!
When I try to render a report to PDF, I have the error message "Cannot render report <report_name> (job ID xxxxx-xxx-xxxx-xxxxx-xxx): Input/Output error.

No issue rendering to XLSX instead.
Any idea?
Thanks

Fabrizio
#12
А можете поставить в конфиге агента
DebugLevel=3

перезапустить его и прислать лог за первую минуту его работы.
#13
General Support / Re: PDU SNMP Parsing
Last post by twparker - March 19, 2024, 04:56:04 PM
This works beautifully. Thanks so much, Filipp!
#14
General Support / Re: Windows Even Log parser ru...
Last post by noel - March 19, 2024, 03:06:47 PM
Finally with the next regex I managed to get it working, so it's only matching admin users' logins:
Virtuális fiók:\t\tNem.*Emelt szintű jogkivonat:\t\tIgen.*Fióknév:\t\t(\w+).*Fiók tartománya:\t\t(?!NT AUTHORITY)
#15
Quote from: Filipp Sudanov on March 19, 2024, 10:08:33 AMЭто именно на Windows системах? Какой версии Windows? Сколько ядер/процессоров?
Системы все Windows
На проблемных установлен Windows Server 2022 Datacenter
на одном 40 ядер (2 процессора по 20)
на втором 56 (2 процессора)
на третьем 40 (2 процессора)
#16
Это именно на Windows системах? Какой версии Windows? Сколько ядер/процессоров?
#17
General Support / Re: PDU SNMP Parsing
Last post by Filipp Sudanov - March 19, 2024, 10:06:19 AM
Well, my bad, seems that I did not fully test the script that I've posted initially. It should be like this:

function main(oid, name) {
  transport = $node->createSNMPTransport();
  if (transport == null) return null;
  v = transport->getValue(oid);
  h = %{};
  for (a : v->split(",")) {
    b = a->split("=");
    if (b->size == 2) h[b[0]] = b[1];
  }
  return h[name];
}

The way it works - v->split(",") produces array where elements are "voltage=121.0" and so on. We loop through that array, so variable "a" has the value of each element of that array.
Now we need to split by "=" character and variable "b" becomes an array with two elements: [voltage, 121.0]. To access these elements we use index, so b[0] is "voltage" and b[1] is "121.0".
Now, h is a hashmap - sort of an array, but instead of numeric index elements are identified by string. We initialize it empty with h = %{}; And then we fill h with values with this code: h[b[0]] = b[1]; (and I now see the reason of the wrong code - forum editor is garbling the h[b[0]] part when pasting)
#18
Добрый день! Участники форума. Прошу содействия в моей ситуации.

Установлен NetXMS последней версии (на ранних версиях та же самая проблема)

Часто CPU: usage (%) показывает нереальные показатели: например 26157,48%, 6594,98% и т.д.

Данная проблема наблюдается только с физическими машинами, с виртуальными проблем нет

На момент "нереальных" показателей на машине все стабильно (нагрузка ЦП около 10%), не смотря на это NetXMS показывает другие значения: 0,33%, 0,38%, 0,42% через какое-то время может показать 60000+%.

DataCollection что на физический что на виртуальных машинах одинаковая стандартная неизмененная
Пробовал переустанавливать агента. На новой машине с чистой Windows Server такая же проблема
Пробовал изменить Data Type с integer на Float - не помогло.

Подскажите, может кто сталкивался? Возможно есть решение?
#19
General Support / Re: netxms is showing wrong ll...
Last post by dhavalslad - March 19, 2024, 04:46:32 AM
can someone help me with above topic...
#20
General Support / Re: Windows Even Log parser ru...
Last post by noel - March 19, 2024, 01:05:28 AM
I did manage to get events when trying simple regexes that didn't try to match multiple lines of windows log messages.
But I'm a bit confused now about what is the tested string, since the docs only mention single lines, but the windows event is multiple lines and when I simply put (.*) as the match regex, in the event %1 was a multi line string with the full windows event message; which is strange since as far as I know . matches everything except new line; but either way the regex I used had . and explicit \r\n matched multiple times so it should've catched each case, also it worked when I tested it on regexr.com