Use script to generate action message, as I explained in https://www.netxms.org/forum/configuration/using-value-of-other-dci-in-description/.
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
if ($event->id == 17) { // SYS_THRESHOLD_REACHED, adjust to real event
if ($event->parameters[1] == "System.Memory.Physical.Used") { // $1 is "Parameter name" for SYS_THRESHOLD_REACHED
total = GetDCIValueByName($node, "System.Memory.Physical.Total");
return "Too much physical memory used (" . $event->parameters[4] . "), total: (" . total . ")"; // $4 is "Actual value"
}
}
return $event->message;AirAlk:~() $ java -jar ~/.m2/repository/org/python/jython-standalone/2.7-b4/jython-standalone-2.7-b4.jar
Jython 2.7b4 (default:3672e624962a, Feb 13 2015, 04:59:14)
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.8.0_25
Type "help", "copyright", "credits" or "license" for more information.
>>> import xlrd,xlwt
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named xlrd
>>> import sys
>>> sys.path.append('/Library/Python/2.7/site-packages')
>>> import xlrd,xlwt
>>> xlrd.__file__
'/Library/Python/2.7/site-packages/xlrd/__init__.py'
>>> xlwt.__file__
'/Library/Python/2.7/site-packages/xlwt/__init__.py'
>>>
if ($1 ~= "^([0-9]+) .*")
{
return %(true, $1); // at this point $1 contains first matching group
}
return false;AirAlk:~() $ nxget -l 10.5.0.111 Net.InterfaceList
1 127.0.0.1/8 772 000000000000 lo
2 10.5.0.111/24 1 00163E000009 eth0git clone https://git.netxms.org/public/netxms.git
cd netxms
git checkout v1.2.17
patch -p1 < nxshell-new-jython.patch
cd src/java
./package.sh
cd nxshell
mvn package
nxmibc -d /opt/netxms/share/netxms/mibs -o /opt/netxms/share/netxms/mibs/netxms.mib -zc:\netxms\bin\nxget "ServiceResponseTime.SSH(1.2.3.4,22,10000)"Quote from: vitabios on February 12, 2015, 09:55:46 PM
Какой ODBC драйвер использовать - 32-х или 64-х битный? ОС: Windows 2008 x64 R2?