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

#631
Announcements / Re: NetXMS 2.0-M4 released
April 30, 2015, 09:57:03 PM
Hello.

That's a bug in nxshell. I've put fixed version on the web, please download it again (https://www.netxms.org/download/nxshell-2.0-M4.jar).

Quote from: jhuliagraziella on April 30, 2015, 09:00:46 PM
Hi!
I'm having a problem after updating to version M4.
I started making some scripts to add and configure nodes in python and tested them using version M2, they worked perfectly! But now they simply don't even run.
When I run this command:

java -Dnetxms.server=127.0.0.1 -Dnetxms.user=admin -jar nxshell-2.0-M4.jar script.py

I get the following error:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named api

I verified my scripts and it looks everything is alright... :-\ What can I do about it?
#632
Announcements / IRC support channel [defunct]
April 24, 2015, 06:17:13 PM
Hello.

Quite a lot of users suggested IRC support channel for NetXMS and we want to give it a go.
Join #netxms on freenode.

List of servers: https://freenode.net/irc_servers.shtml
#633
Общие вопросы / Re: 2.0-M3 nxhttpd
April 23, 2015, 05:56:35 PM
nxhttpd был выкинут много лет назад, сейчас WebUI только на джаве.

commit 28e36118c3320b67e119cecab8fd5c324dbc9fef
Author: Alex Kirhenshtein <[email protected]>
Date:   Wed May 23 13:17:19 2012 +0000

    nxhttpd traces removed
#634
В NetXMS надо настроить маппинг между SNMP traps и Events.
В любом случае, трапы контроллер будет присылать только когда что-то сломается, для получения текущего состояния надо делать скрипт на основе MegaCli
#636
if ($1 =~ "[:/]") {
  value = AgentReadParameter($node, "FileSystem.Total(" . $1 . ")")
  return (value > 5*1024*1024*1024 && value < 1*1024*1024*1024*1024);
}
return false;


Quote from: sharpspro on April 21, 2015, 09:40:10 PM
Guys,

I'm looking to create a script that will only show drives within a certain size range. For example only show drives that are between 500Gb and 1,000GB or 1,000TB and 1,500GB.

The reason being is that i want to setup thresholds differently on drives. Smaller drives i would like to have a higher percentage free than huge drives. The bigger the drive gets the lower i want the percentage free to alert on the threshold.
#637
I'd suggest to create feature request in our bug tracker (https://dev.raden.solutinos/).

Support for System.InstalledProducts: it would speed things up if you can provide command(s) for querying list of installed packages.
Right we have following columns in the table (some of them can be empty, of course): NAME, VERSION, VENDOR, DATE, URL, DESCRIPTION

Another option – you can try to add it yourself, it's quite easy (check function H_InstalledProducts in Linux subagent):
http://git.netxms.org/public/netxms.git/blob/refs/heads/develop:/src/agent/subagents/linux/packages.cpp?js=1#l26 (actual code)
http://git.netxms.org/public/netxms.git/blob/refs/heads/develop:/src/agent/subagents/linux/linux.cpp?js=1#l485 (table registration)
#638
Hello.

Tables are fully supported by the agent ("FileSystem.Volumes", "System.InstalledProducts", "System.Processes", etc.).
However, as you correctly noted – table can't be configured as external parameter at the moment (only ExternalParameter, ExternalParameterProvider, and ExternalList).
This is on our TODO list, and hopefully it will make into 2.0 release.
#639
Какая операционная система?

Quote from: parovoZZ on April 20, 2015, 11:32:42 AM
Ну вот на каких-то машинах он доступен, на каких-то нет. Параметр System.CPU.Usage5. Если его добавить вручную, то получаю Unsupported...
#640
Скорее всего запущена вторая копия консоли, в которой открыт редактор DCI для этой ноды.
Если второй сессии нет – через небольшое время должно автоматически разблокироваться.
В худшем случае – рестарт сервера, но это не должно потребоваться.
#641
Можно еще сделать scripted DCI с кодом типа val1=AgentReadParameter($node, "Sample.DCI(1)");
val2=AgentReadParameter($node, "Sample.DCI(2)");
...
#642
На мой взгляд, если надо подгонять по секундам – то что-то не так в постановке задачи,  её надо как-то иначе решать.

Примерно подогнать можно при помощи custom schedule c правилом "* * * * *", запросы будут шедулиться раз в минуту, в 00 секунд. Но это не гарантирует, что их соберут именно в это время.
#643
Для M* ветки всегда желательно держать последнюю версию. Но в любом случае, так падать не должен – похожа не какой-то неизвестный баг.
Включите пожалуйста генерацию крешдампов (https://www.netxms.org/documentation/adminguide/troubleshooting.html#enable-crash-dump-generation) и пришлите их нам.
#644
Мы тут нашли интересный баг в 2.0-M3, который может приводить к созданию лишних нод.
Создающийся сервер, netxmsd не на нем случаем стоит?
Сколько в этом сервере сетевых интрерфейсов?