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

#796
Добавили еще обработку сетевых ошибок в драйвере Телеграмма, это пойдет в 4.3
#797
Something like this may happen right after server start, if you are taking values from a DCI that has quite frequent collection interval. In this case server is not getting last collected value from database, but awaits it from agent.
You can check if GetDCIRawValue returns null and handle this situation in the script.
#798
General Support / Re: Best way to check if a file exists
November 16, 2022, 02:36:20 PM
You can make script DCI and process errors inside the script, e.g.:

s = $node->readAgentParameter("File.Size(/tmp/1/1.txt)");
if (s != NULL) return 1; else return 0;

s != NULL condition can be actually simplified:
s = $node->readAgentParameter("File.Size(/tmp/1/1.txt)");
if (s) return 1; else return 0;


I've used File.Size, as it is simpler and has just one parameter, but you can use File.Count as well.

P.S. Instead of script DCI you can use internal DCI with metric "Dummy" and have all the scripting in transformation script.
#799
General Support / Re: SNMP Trap Threshold
November 11, 2022, 01:18:28 PM
This could be done using filtering script in EPP. That script should keep last 10 timestamps somewhere (in persistent storage or in custom attribute of the node, as comma-separated list) and check if all these timestamps fit within 5 min interval.
Do you need an example of such script?
#800
Great, thanks for the update. Documentation is now updated.
#801
Just to note - PollerTrace line is optional - it just produces debug output when configuration poll is executed manually.
#802
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

#803
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.


#804
It's just display issue, should get fixed in next patch release
#805
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.
#806
Looks like it's a bug. Created issue for that, you can monitor resolutions process here: https://track.radensolutions.com/issue/NX-2321

#807
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.
#808
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
#809
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?
#810
Last line
return $1;is there so transformation script returns DCI's value. Currently your DCI return "true" all the time.