Menu

Show posts

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

Messages - Victor Kirhenshtein

#1291
Список квот можно возвращать как External Parameter. DCI с объединенной историей - сделать script DCI который будет собирать данные с индивидуальных квот и возвращать сумму. Чтобы сделать два параметра на одном графике надо делать два отдельных DCI.
#1292
Тогда похоже на то, что карта не сохраняется корректно в базе и после рестарта перестраивается. Проверьте содержимое таблиц network_maps и network_map_elements - там все элементы будут сохранены?
#1293
Hi,

currently you should enable duplicate detection - that will not prevent duplicate node creation, but they will be deleted shortly after. We are currently working on improving parallel discovery and earlier duplicate detection.

Best regards,
Victor
#1294
Hi!

If I correctly identified devices it seems that they have management IP address and mask in private MIB: http://www.circitor.fr/Mibs/Html/R/RADWIN-MIB-WINLINK1000.php#winlink1000OduAdmAddres. Can you check if this MIB is supported and that device returns correct information? If yes then we cn create driver that will utilize private MIB to create management interface object.

Best regards,
Victor
#1295
Hi!

If you need just one number for total disk space then best approach would be script DCI that will enumerate all servers and add up used disk space. Possible script implementation is following:


// Find "Entire Network" object and start enumeration from it
global TOTAL = 0;
EnumerateNodes(FindObject(1));
return TOTAL;

// This function walks object tree recursively starting from given root
sub EnumerateNodes(rootObject)
{
// Walk all child objects
foreach(o : GetObjectChildren(rootObject))
{
if (classof(o) == "Node")
{
// Process node object
            for(d : FindAllDCIs(o, "FileSystem.Used(*)"))
            {
                v = GetDCIValue(o, d->id);
                if (v != null)
                {
                    TOTAL += v;
                }
            }
}
else
{
// For all other objects, go down the tree
EnumerateNodes(o);
}
}
}


You should select right top level object for enumeration. Also this script does not check if same node encountered multiple times - so you either have to pass such rot object under which each node bound exactly once, ar add additional check to avoid duplicates.

Best regards,
Victor
#1296
General Support / Re: DCI Template manual override
June 06, 2019, 09:52:49 AM
Hi,

you may need to use instance discovery.

Best regards,
Victor
#1297
Hi,

from version information for the client it seems that client is of much older version. Make sure that you have deployed new version correctly. You can see web client version on login screen in bottom right corner.

Best regards,
Victor
#1298
Could you please also show walk output for .1.3.6.1.4.1.9.6.1.101.53.3.1.6 and .1.3.6.1.4.1.9.6.1.101.53.3.1.7?

Best regards.
Victor
#1299
Hi,

could you please run netxmsd under gdb (with Cisco driver back) and when it crashes show output of bt command. You'll need to install -dbg packages if you installed NetXMS from deb packages.

Best regards,
Victor
#1300
In source config on new machine specify address of old server in DBServer. You may need to enable Postgres connections from new machine in pg_hba.conf on old machine.

Best regards,
Victor
#1301
Hi,

it is not necessary that both databases are local for nxdbmgr migrate - both just should be accessible from the machine where you running migration tool. Usually it's better to run migration on destination (new machine) - then you can create correct netxmsd.conf for use by new server, copy netxmsd.conf from old server under different name or path, change it so that DBServer points to old database server, and run nxdbmgr migrate.

Best regards,
Victor
#1302
Then you need instance discovery DCI that will create separate DCI for each processor instance. You can set DCI parameter name to .1.3.6.1.2.1.25.3.3.1.2.{instance} and in instance discovery method select SNMP Walk - OIDs and use .1.3.6.1.2.1.25.3.3.1.2 as a base.

Best regards,
Victor
#1303
Hi,

as you are not interested in each individual CPU usage you don't actually need instance discovery. Instead, you could use script DCI that will walk all CPU load OIDs and calculate average. This script should work:


snmp = CreateSNMPTransport($node);
if (snmp == null)
return null;

varbinds = SNMPWalk(snmp, ".1.3.6.1.2.1.25.3.3.1.2");
if (varbinds == null)
return null;

count = 0;
total = 0;
for(v : varbinds)
{
count++;
total += v->value;
}

return total / count;


It returns null to indicate data collection error if SNMP walk fails.

Best regards,
Victor
#1304
Yes, but you have to use node object here, not IP address. You can use FindObject or FindNodeObject functions to get object by name.

Longer commands are not possible without agent and/or server modifications. Currently there is 1024 character limit on parameter length in AgentRead... functions.

I've also created couple of feature requests for SSH improvements:
https://track.radensolutions.com/issue/NX-1649
https://track.radensolutions.com/issue/NX-1650

Best regards,
Victor
#1305
Я попробую воспроизвести сегодня у себя - были другие жалобы на такую-же проблему с MS SQL, похоже сломали что-то в коннекторе.