What kind of error?
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 Menumkdir ~/nx-backup
cp -R /etc/netxmsd.conf /etc/nxagentd.conf /var/lib/netxms ~/nx-backup
systemctl stop netxms-server
nxdbmgr check
apt-get --purge netxms\*
apt-get install netxms-server netxms-dbdrv-pgsql # select correct DB driver, additional packages if needed
systemctl stop netxms-server
cp ~/nx-backup/nxagentd.conf ~/nx-backup/netxmsd.conf /etc/
nxdbmgr upgrade
nxdbmgr check
systemctl enable --now netxms-server
2022.09.19 15:47:54.074 *D* [ ] Initializing Java subagent
2022.09.19 15:47:54.074 *D* [ ] JAVA: Default JVM: /Users/alk/.asdf/installs/java/zulu-17.32.13/zulu-17.jdk/Contents/Home/lib//server/libjvm.dylib
2022.09.19 15:47:54.074 *D* [ ] JAVA: using JVM /Users/alk/.asdf/installs/java/zulu-17.32.13/zulu-17.jdk/Contents/Home/lib//server/libjvm.dylib
2022.09.19 15:47:54.095 *D* [ ] Java SubAgent created
host=10.0.0.1
secondaryHost=10.0.0.2
login=user1
password=password1
mode=TEXTQuote from: blairmc96 on August 12, 2022, 06:23:49 PM
Can I please get some help with this?
for (n : GetAllNodes()) {
println(n->name . "(" . n->id . ")");
for (i : n->interfaces) {
println("\t" . i->name);
if (...) { i->delete(); }
}
}
value = null;
if (CURRENT_NAME@$node != null) { // custom attribute CURRENT_NAME on current node
value = $node->readAgentParameter("..." . CURRENT_NAME@$node);
}
if (value == null) {
for (item : $node->readAgentList("...")) {
if (item match "...") {
// correct element found
$node->setCustomAttribute(CURRENT_NAME, item);
}
}
if (CURRENT_NAME@$node != null) { // custom attribute CURRENT_NAME on current node
value = $node->readAgentParameter("..." . CURRENT_NAME@$node);
}
}
return value;