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 - Egert143

#31
Hello

Would it be possible to launch default action when double clicking node on network map. For example go to web page or other costum tool. Would save time when we could double click, insetad of right click -> tools -> Costum tool.

Egert
#32
General Support / Re: Summary table
November 09, 2022, 12:49:54 PM
Thanks for the info :) 
#33
General Support / Summary table
November 08, 2022, 01:35:00 PM
Hello

Is it possible to hide summary table option in right click menu? I must be blind because i cant find it anymore. :D
#34
it was giving script errors, so i changed it bit:

if ($node->state & NodeState::Unreachable) {
abort;
}

return true;
#35
General Support / Re: Two snmp requests in one dci
November 04, 2022, 08:40:21 AM
is that not good?
if(diskSize == null || diskUsed == null) { return null; }
#36
General Support / DCI Units
November 02, 2022, 03:00:13 PM
In DCI units, there is one called "Ä*C" and "Ä*F" is it supposed to just be "C" / "F" as Celsius/Fahrenheit?
#37
On some nodes i have dci that logs packet loss. when node is unreachable i get two alerts, one for node down and another one for high packet loss. Is it possible to mute other dci alerts when node is already unreachable? 
#38
General Support / Re: Two snmp requests in one dci
November 02, 2022, 02:28:30 PM
I hacked together something like this: 

transport = CreateSNMPTransport($node);
if (transport == null) { return null; }

diskSize = SNMPGetValue(transport,".1.3.6.1.2.1.25.2.3.1.5.131072");
diskUsed = SNMPGetValue(transport,".1.3.6.1.2.1.25.2.3.1.6.131072");

if(diskSize == null || diskUsed == null) { return null; }

free = diskSize - diskUsed;
free = free * 1024;


return free;

" free = free * 1024; " is because otherwise unit b(IEC) was showing incorrectly.

is there anything that could be improved on this script?
#39
General Support / Two snmp requests in one dci
November 02, 2022, 01:24:27 PM
Hello

What is the best approach to make dci that queries 2 separate snmp oids, does some math with them and then returns the output. is it possible to do in one dci, or is multiple required?

Example:
.1.3.6.1.2.1.25.2.3.1.6.131072 - returns 11320 (/1024 = 11mb)
.1.3.6.1.2.1.25.2.3.1.5.131072 - returns 16384 (/1024 = 16mb)
Output = 16-11 = 4mb

Its Mikrotik disk usage.
#40
General Support / Re: Instance discovery.
September 16, 2022, 09:43:09 AM
Hello

i Did exactly as in picture, but for me i dont see any dci discoveries for some reason.

Edit:
When i move the dci directly to node then it works, but under template it doesn't. Maybe it needs longer time?

Edit:
After waitng for hour and no dci-s from template appeared. i deleted template and made it again, this time dci-s started apearing and it seems to work.

Second question. I have script to filter what nodes get applied to template. How can i improve on it to match different oid endings and not manualy add them?

if( $node->isSNMP ) {

    if( $node->sysDescription like "*RouterOS *" && ($node->name like "*[Ap] *") ) {
   
        transport = CreateSNMPTransport($node);
        if ( transport == null ) return NULL;

        ssid = SNMPGetValue(transport,".1.3.6.1.4.1.14988.1.1.1.3.1.4.1");
        freq = SNMPGetValue(transport,".1.3.6.1.4.1.14988.1.1.1.3.1.7.1");
       
        ssidB = SNMPGetValue(transport,".1.3.6.1.4.1.14988.1.1.1.3.1.4.2");
        freqB = SNMPGetValue(transport,".1.3.6.1.4.1.14988.1.1.1.3.1.7.2");
       
        if(ssid != null && freq != null) {
            return true;
        }else if(ssidB != null && freqB != null) {
            return true;
        }
    }
}


return false;
#41
General Support / Instance discovery.
September 15, 2022, 01:45:53 PM
Hello

Could use help with dci instance discovery.

I have 2 Mikrotik wifi devices where i would like to poll ssid name. On one device it reports with .1.3.6.1.4.1.14988.1.1.1.3.1.4.1 on another one with .1.3.6.1.4.1.14988.1.1.1.3.1.4.2. The end number is changing. How can i discover that dynamicaly?

Egert
#42
General Support / Juniper Srx snmp template
July 06, 2022, 10:14:57 AM
Hello

I am looking for Juniper Srx router snmp oids to monitor. Perhaps someone has working template that they feel like sharing ? :)

Egert
#43
General Support / Re: Network Discovery
June 07, 2022, 02:40:13 PM
Will do.
#44
General Support / File upload error
June 06, 2022, 09:48:38 AM
Hello

Today i tested mass file upload with NetXms and encountered some problems. I have folder with many servers bound under it. All server have Agent installed and have agent policy via template: SubAgent = filemgr.nsm

[filemgr]
RootFolder = C:/


When selecting folder and right click -> Upload file, i selected one file and gave it remote file name "C:\Failid\test2154.exe". Then i monitored the upload progess via View - Server jobs. Upload started on about 50 servers. I see alot of messages "File upload failed. Waiting 10 minutes to restart job", "File upload failed. Waiting 20 minutes to restart job". After about 30 minutes or so those messages begin to dissapear. But even with first round the file is actualy already uploded fine.

Edit: Those messages that dissapeared are now returning with Waiting 40 minutes to restart job" Files are uploaded fine, seems like server doesent get the notice to stop uploading.
#45
General Support / Re: Network Discovery
June 03, 2022, 07:51:20 AM
Currently running 4.1.333