Have you tried to create a new event using the alarm timeout in "Event Processing Policy" ?
Kind regards,
Thomas
Kind regards,
Thomas
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 Menu
// Works!
// array a;
// a[0] = "Entry 1";
// a[1] = "Entry 2";
// return a;
use list_attributes;
a = list_attributes_by_key("http:.*");
foreach (entry: a)
{
msg = "like http: " . $node->name . " " . entry;
trace(1, msg);
println "P " . msg;
}
return a;
// list_attributes
//
// retrieving attribute values.
//
//
// Parameter:
// $1: regex to check the attribute key for.
//
// Returns:
// List of all attributes matching the attribute
sub list_attributes_by_key(pattern)
{
array r;
if (pattern == null)
{
msg = $node->name . " list_attribute_by_key: no pattern!";
println msg;
trace(1, msg);
return a;
}
test = "http://12345.678/";
if (test match pattern)
println "pattern: ". pattern . " test matched OK".
r_i = 0;
attr = $node->customAttributes;
foreach (key: attr->keys)
{
println a;
if (key ~= pattern)
{
println $node->name . " return key=" . key;
r[r_i++] = key;
}
else
{
println $node->name . " no match for " . key . ". pattern=". pattern;
}
}
return r;
}
[05-Jan-2017 13:22:52.347] [ERROR] SQL query failed (Query = "SELECT event_name FROM event_cfg WHERE event_name='?'"): 08P01 ERROR: bind message supplies 1 parameters, but prepared statement "netxms_stmt_0x1efaf00_93" requires 0
[05-Jan-2017 13:22:52.351] [ERROR] SQL query failed (Query = "SELECT event_name FROM event_cfg WHERE event_name='?'"): 08P01 ERROR: bind message supplies 1 parameters, but prepared statement "netxms_stmt_0x1f004f0_95" requires 0
---------------------------------------------------------------------
Configure results
---------------------------------------------------------------------
Prefix : /usr/local
Platform : Linux
Shared library suffix : .so
IPv6 support : YES
Build Server : YES
Server libs : -lldap -llber
LDAP support : YES
XMPP support : YES
ZeroMQ support : YES
Encryption enabled : YES
Build DB-Drivers : pgsql sqlite odbc
Build Clients : NO
Build Agent : YES
Subagents list : linux ds18x20
Build Static Agent : NO
UNICODE build : NO
Use internal libexpat : YES
Use internal libtre : YES
Use internal libjansson : YES
Use internal sqlite : NO
Use internal zlib : NO
Force 32bit build : NO
C compiler : gcc
C++ compiler : g++
CPPFLAGS : -D_THREAD_SAFE -DTRE_WCHAR=1 -I/opt/openssl/include -D_GNU_SOURCE -O2 -Wformat -Wno-unused-result -Werror=return-type -I/usr/local/include -DPREFIX=\"${prefix}\" -DDATADIR=\"${pkgdatadir}\" -DBINDIR=\"${bindir}\" -DLIBDIR=\"${libdir}\" -DPKGLIBDIR=\"${pkglibdir}\" -DSTATEDIR=\"${localstatedir}/lib/netxms\" -DNDEBUG
CXXFLAGS : -g -O2 -fno-rtti -fno-exceptions
CFLAGS : -g -O2
LDFLAGS : -L/usr/local/lib -L/opt/openssl/lib -L/usr/local/lib
LIBS : -lm -lz -lresolv -ldl -lpthread -lssl -lcrypto
PostgreSQL CPPFLAGS : -I/usr/include/pgsql
PostgreSQL LDFLAGS : -L/usr/lib64/pgsql
PostgreSQL LIBS : -lpq
ODBC LIBS : -lodbc