Quote from: Victor Kirhenshtein on August 31, 2017, 03:55:34 PM
Да, выглядит так себе. Без исправлений в коде ничего сделать не получится. Кто-нибудь из разработчиков посмотрит.
Очень очень будем ждать.
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 MenuQuote from: Victor Kirhenshtein on August 31, 2017, 03:55:34 PM
Да, выглядит так себе. Без исправлений в коде ничего сделать не получится. Кто-нибудь из разработчиков посмотрит.
Quote from: Victor Kirhenshtein on August 31, 2017, 03:30:48 PM
Не может быть проблемы со временем выполнения скрипта? И на какой операционке агент и какой версии?
cat /etc/redhat-release
CentOS release 6.9 (Final)
Linux hostname 2.6.32-573.12.1.el6.x86_64 #1 SMP Tue Dec 15 21:19:08 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
# nxagentd -v
NetXMS Core Agent Version 2.1 Build 9012 (2.1-RELEASE) (UNICODE)
# time ./answer_and_originate.pl
0
real 0m0.391s
user 0m0.023s
sys 0m0.004s
# time ./answer_and_originate.pl
0
real 0m0.224s
user 0m0.022s
sys 0m0.004s
# time ./answer_and_originate.pl
0
real 0m0.223s
user 0m0.021s
sys 0m0.007s
AgentCommandTimeout = 10000
sub main()
{
// Search for node named "gateway"
gw_node = FindObject($1);
if (gw_node == null)
return 0; // No such node or access denied
// from here, gw_node can be used in a same way as $node, for example:
v1 = GetDCIValue(gw_node, FindDCIByDescription(gw_node, "Inbound traffic on COMPANY1"));
v2 = GetDCIValue(gw_node, FindDCIByDescription(gw_node, "Inbound traffic on COMPANY2"));
tot = v1 + v2;
if (tot > 0)
return tot;
else
return 0;
}
Quote from: kozlov_ao on January 15, 2016, 12:55:12 AM
только что попробовал.
Честно.. было лень писать строку самому, потому скопипастил. Результат - завелось.
# CPPFLAGS=-march=i686 ./configure --with-server --with-mysql --with-agent --disable-lmsensors --with-internal-libtre
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/INSTALL/netxms-2.0.1':
configure: error: C compiler cannot create executables
Quote from: Alex Kirhenshtein on October 21, 2015, 01:24:15 PM
Нашел проблему – была только в сборке без unicode.
Фикс: http://git.netxms.org/public/netxms.git/commitdiff/b010a63c51a151d121bef28ab5056a2de5e7c1f8
[20-Oct-2015 15:00:00.272] [DEBUG] *actions* Executing action 28 (Threshold Rearmed) of type SEND SMS
[20-Oct-2015 15:00:00.273] [DEBUG] Slack: channel="#general", text="Threshold for (NODE) 'Max_Files Procent of Usage' rearmed."