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 - Alex Kirhenshtein

#616
Общие вопросы / 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
#617
В NetXMS надо настроить маппинг между SNMP traps и Events.
В любом случае, трапы контроллер будет присылать только когда что-то сломается, для получения текущего состояния надо делать скрипт на основе MegaCli
#619
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.
#620
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)
#621
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.
#622
Какая операционная система?

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

Примерно подогнать можно при помощи custom schedule c правилом "* * * * *", запросы будут шедулиться раз в минуту, в 00 секунд. Но это не гарантирует, что их соберут именно в это время.
#626
Для M* ветки всегда желательно держать последнюю версию. Но в любом случае, так падать не должен – похожа не какой-то неизвестный баг.
Включите пожалуйста генерацию крешдампов (https://www.netxms.org/documentation/adminguide/troubleshooting.html#enable-crash-dump-generation) и пришлите их нам.
#627
Мы тут нашли интересный баг в 2.0-M3, который может приводить к созданию лишних нод.
Создающийся сервер, netxmsd не на нем случаем стоит?
Сколько в этом сервере сетевых интрерфейсов?
#629
Общие вопросы / Re: API 2.0-M3
April 17, 2015, 02:42:51 PM
>>> for alarm in session.getAlarms().values():
... print '%s (%d): %s' % (session.getObjectName(alarm.getSourceObjectId()), alarm.getCurrentSeverity(), alarm.getMessage())
...
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
TypeError: %d format: a number is required, not org.netxms.client.constants.Severity
>>>


Severity теперь Enum.

>>> alarm
org.netxms.client.events.Alarm@4e904fd5
>>> session.getObjectName(alarm.getSourceObjectId())
u'AirAlk.local'
>>> alarm.getCurrentSeverity()
CRITICAL
>>> type(alarm.getCurrentSeverity())
<type 'org.netxms.client.constants.Severity'>
>>> alarm.getCurrentSeverity().getValue()
4



Второй пример у меня отлично работает:
>>> for node in filter(lambda x: isinstance(x, objects.Node), s.getAllObjects()):
... print node.getObjectName()
...
AirAlk.local
#630
Announcements / Re: New Debian repository
April 15, 2015, 06:14:44 PM
Done.