А какой хеш был?
Сбросить можно было вот так (без работы с базой напрямую):
Сбросить можно было вот так (без работы с базой напрямую):
Code Select
nxdbmgr resetadmin
We really need your input in this questionnaire
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 Menuif ($3 == "0.0.0.0") {
return true;
}
return false; or even (if you don't have any other logic in the script) $3 == "0.0.0.0"if ($3 != "0.0.0.0") {
return true;
}
return false; or $3 != "0.0.0.0"if ($event->message !like "0.0.0.0/0.0.0.0"){
return true; // Match rule
}if (!$event->message like "0.0.0.0/0.0.0.0"){
return true; // Match rule
}

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