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

#541
Announcements / Re: NetXMS 2.0-RC1 released
August 18, 2015, 02:12:55 AM
Debian packages updated to 2.0-RC1-2
#542
Есть несколько путей. Самый просто - сделать dummy DCI с примерно таким скриптом:ifSpeed=104857600;
val=GetDCIValueByName($node, "Existing.Metric.Name(param1)")
if (val != null) {
  return val * 100 / ifSpeed;
}
retun 0;


Настройка DCI: https://www.dropbox.com/s/sr14vq66xhy9nqg/Screenshot%202015-08-13%2012.23.43.png?dl=0

Что бы не настраивать ifSpeed руками – можно сделать DCI для 1.3.6.1.2.1.2.2.1.5 с временем опроса раз в сутки (или еще реже) и тоже читать его через GetDCIValueByName().
#543
Announcements / Re: NetXMS 2.0-RC1 released
August 12, 2015, 01:47:39 AM
PhysicalIndexOrZero is defined in ENITY-MIB.

You can get correct MIBs from git: https://git.netxms.org/public/netxms.git (it's in contrib/mibs, branch develop), or download this archive: https://www.dropbox.com/s/tt1r7ygc1eyyh05/mibs.tar.gz?dl=0
#544
1) Да, local command на вебе не работает – ограничение броузера. Server command должен работать и на вебе (для не интерактивных скриптов).
2) Работа с клипбордом в броузере тоже достаточно ограничена, поэтому меню отключено. Сейчас ситуация с поддержкой клипборда потихоньку улучшается (через document.execCommand('copy')) – но пока это еще не сделано.
#545
А что именно не работает в вебе? Должно всё работать.
#546
Большую часть этого можно сделать через Object Tools и внешние команды (на контейнерах они тоже работают).
#547
General Support / Re: SMS config
August 06, 2015, 02:28:50 PM
That's not an error, just diagnostics. Try to send one more message to verify that it works.
#548
General Support / Re: Alarm viewer filtering
August 06, 2015, 02:00:30 PM
No, it's not possible.
You can, however, configure it in slightly different way:

Create nodes:
1) server1 (physical server, with correct IP)
2) IIS (node without IP address)
3) SQL Server (node without IP address)

In server1 properties, add IIS and "SQL Server" to trusted nodes list

Create corresponding DCIs on IIS and "SQL Server", for each one of them set "proxy node" (in DCI configuration, not in node configuration) to "server1".
This was DCIs will be collected on server1, but will be shown on IIS or SQL Server (same goes for alarms, etc.)

Then you can have multiple rules in EPP for IIS and SQL Server nodes.
#549
General Support / Re: SMS config
August 06, 2015, 01:54:45 PM
I'm pretty much sure that you use wrong port. Most USB modems provide multiple ports – one for communications, one for diagnostic messages, and one or two for other purposes. Looks like you are using diagnostic port. Try other /dev/ttyUSB* ports with screen – it should respond to "ATI" command with modem information (vendor, model, etc.)
#550
General Support / Re: SMS config
August 05, 2015, 05:03:22 PM
Yes, server can't open /dev/ttyUSB2 for some reason.

You can check port using "screen" command (if you have it installed):screen /dev/ttyUSB2 9600
Press enter couple of times, try to enter "AT" and press enter – you should get reply from modem.
#551
General Support / Re: SMS config
August 05, 2015, 03:40:44 PM
/opt/netxms is just an example from my system.
Try find / -name libnxsms_generic\*
#552
General Support / Re: SMS config
August 05, 2015, 03:23:53 PM
Driver was not loaded, hence no debug messages.

Try to set SMSDriver to full file name with path, then restart server.
Sample setup:AirAlk:core(develop) $ find /opt/netxms -name \*generic\*
/opt/netxms/lib/libnxsms_generic.1.dylib
/opt/netxms/lib/libnxsms_generic.2.dylib
/opt/netxms/lib/libnxsms_generic.dylib
AirAlk:core(develop) $ ls -al /opt/netxms/lib/libnxsms_generic.dylib
lrwxr-xr-x  1 alk  wheel  24 Jul 26 12:14 /opt/netxms/lib/libnxsms_generic.dylib -> libnxsms_generic.2.dylib
AirAlk:core(develop) $ nxdbmgr get SMSDriver
NetXMS Database Manager Version 2.0-RC1 Build 8032

/opt/netxms/lib/libnxsms_generic.dylib


P.S. You can also change debug level in runtime. Go to Tools -> Server Console and type "debug X", where "X" is desired debug level.
#553
General Support / Re: SMS config
August 04, 2015, 03:10:02 AM
1) verify driver name, it should be "generic.sms"
2) Check driver configration:SMSDrvConfig=/dev/ttyUSB2,9600,8,N,1,T

Fields in SMSDrvConfig are:
1 - device name
2 - speed
3 - data bits
4 - parity: n/o/e (none/odd/even)
5 - stop bits: 1/2
6 - sending mode, T / P (text / PDU. Some modems support only text, some works only with PDU. Unicode can be send only in PDU mode)

3) Increase debug level of the server to 5 and look for "SMS: " in the log.
#554
Общие вопросы / Re: Таблица
August 04, 2015, 02:28:21 AM
Сделать summary table в Configuration -> DCI Summary table
Menu path: путь в контекстном меню, "->" разделяет вложенные меню.
Пример: https://www.dropbox.com/s/v9d0puamtji1alv/Screenshot%202015-08-04%2002.26.38.png?dl=0

Когда есть хоть одна таблица, можно кликнуть правой кнопкой на любом контейнере и выбрать Summary tables -> [имя]
#555
Общие вопросы / Re: nxshell API
July 29, 2015, 11:28:02 PM
Примерно так:
node_id=180
dcc=s.openDataCollectionConfiguration(node_id)
disabled_items = [x for x in dcc.getItems() if x.status == DataCollectionObject.DISABLED]
for item in disabled_items:
print item.name, item.description
dcc.close()