News:

We really need your input in this questionnaire

Main Menu
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 - Filipp Sudanov

#721
Just to note - PollerTrace line is optional - it just produces debug output when configuration poll is executed manually.
#722
Looking at /src/ncdrivers/mqtt/mqtt.cpp, the following parameters should be in channel congit:

/MQTT/Hostname
/MQTT/Port
/MQTT/Login
/MQTT/Password



When sending, recipient becomes the topic and message body becomes the value.


Pls update, if this works for you

#723
That's a moment when the scripting kicks in. Simplest is in HOOK::CreateInterface script - it's being called when creating a new interface. E.g. (for Mikrotik, adjust the OID for Unifi AP):

if ($node->snmpOID == ".1.3.6.1.4.1.14988.1") {
  PollerTrace("  Setting " . $1->name . " expected state to ignore"); 
  $1->setExpectedState("IGNORE");
}
return true;

If you return false from the script, the interface won't be created at all.

But for this to work you'd need to delete all interfaces for already created nodes. Alternative approach is to make a script that will loop through all nodes and their interfaces and set expected state - give a note if you need example of such script.


#724
It's just display issue, should get fixed in next patch release
#725
General Support / Re: Summary table
November 08, 2022, 05:49:36 PM
It's a bug. It was fixed, will be included in next patch release. If you are on windows, you can try this build: https://cloud.radensolutions.com/s/RMzPpdTMBGSmjQe

Also opening summary table configuration, clicking "Apply and Close" may help while management client remains open.
#726
Looks like it's a bug. Created issue for that, you can monitor resolutions process here: https://track.radensolutions.com/issue/NX-2321

#727
It's a bug introduced in 4.2. It affects syslog and windows event log processing in fields "source" and "tag".

Bug is fixed, will be in next patch release. 

Meanwhile you can put * character in syslog tag field, it should work that way.
#728
General Support / Re: Two snmp requests in one dci
November 04, 2022, 06:12:50 PM
Ups, i missed that line :)

Yes, it's correct
#729
General Support / Re: Maps on new GUI
November 04, 2022, 06:11:25 PM
What happens if you open the same map in the "old" UI? Is it also broken there or looks OK?
#730
Last line
return $1;is there so transformation script returns DCI's value. Currently your DCI return "true" all the time.

#731
You can make transformation script like this for your packet loss DCI:

if ($node->state & NodeState::Unreachable) abort;
return $1;

"abort" keyword will cancel collection of datapoint. You can also use "return null" instead of "abort" - this will put the DCI into data collection error.
#732
General Support / Re: Two snmp requests in one dci
November 03, 2022, 02:17:38 PM
Looks good. There's a small chance that SNMPGetValue may return null (e.g. communication gets broken exactly when these requests are made), so you may want to check diskSize and diskUsed for null.


#733
General Support / Re: Webinterface Custom Logo
November 03, 2022, 02:13:27 PM
Are you using "old" (nxmc-legacy-4.2.395.war) or "new" (nxmc-4.2.395.war) web UI?
#734
General Support / Re: DCI Units
November 03, 2022, 02:11:28 PM
Yes, there is some encoding issue (also with ยต). Should be fixed in next patch release.
#735
General Support / Re: Two snmp requests in one dci
November 02, 2022, 02:18:09 PM
It's possible to make script DCI that would take values from other DCIs and do the calculation. But if you don't need to keep the intermediary values, they you can do everything just in one DCI.

Create s script in script library and Script DCI that uses that script. Check this example for script contents: https://www.netxms.org/documentation/nxsl-latest/#func-snmpgetvalue