Community discussions

MikroTik App

Search found 154 matches

by gsandul
Fri Oct 05, 2012 11:53 am
Forum: The Dude
Topic: ROS command / Script to return trace hop #
Replies: 2
Views: 2734

Re: ROS command / Script to return trace hop #

Hi,
not sure this will work, but instead of
[ros_command("/tool traceroute 168.210.2.2")]
try this
[array_size(ros_command("/tool traceroute 168.210.2.2"))]
by gsandul
Tue Jun 12, 2012 1:58 pm
Forum: The Dude
Topic: Dude Password Recovery on Win 7 Platform
Replies: 9
Views: 14357

Re: Dude Password Recovery on Win 7 Platform

Hey gsandul good to see you are still lurking
Yes I do, but no more lots of interesting questions for me. :(
You remember me.... Nice. :)
by gsandul
Thu Jun 07, 2012 9:14 am
Forum: The Dude
Topic: Dude Password Recovery on Win 7 Platform
Replies: 9
Views: 14357

Re: Dude Password Recovery on Win 7 Platform

This will not work, but passwords are stored in clear text on sqlite database You can install python 2.7 and run this script to restore your password. import sqlite3  import sys  def getname(stri, pos):      return stri[pos + 1:pos + ord(stri[pos])+1]  def get_ip_mask(stri, pos):  ip_mask = ''     f...
by gsandul
Thu Oct 06, 2011 3:00 pm
Forum: The Dude
Topic: Probe Thread
Replies: 339
Views: 413866

Re: Probe Thread

Hello. This works fine with stopped service, but not paused. if(array_find(oid_column("1.3.6.1.4.1.77.1.2.3.1.1"),"Netlogon")>0, 1, 0) if(array_find(oid_column("1.3.6.1.4.1.77.1.2.3.1.1"),"Netlogon")>0, "", "Netlogon not detected by SNMP probe&q...
by gsandul
Mon Sep 26, 2011 3:58 pm
Forum: The Dude
Topic: Be notified if 2 redundant devices go down
Replies: 7
Views: 2337

Re: Be notified if 2 redundant devices go down

you can configure notifications on a per-map basis, can't you? when all devices in a submap go down (submap icon turns red), then run some notification. to all you need to do, is put those two devices in a separate map, and configure the map to send a notification. That is not right. The notificati...
by gsandul
Mon Jul 11, 2011 5:43 pm
Forum: The Dude
Topic: Web Interface shows +5 hours offset
Replies: 2
Views: 1494

Re: Web Interface shows +5 hours offset

Hello
The Dude shows local time for logs and history of system you open The Dude client.
When you open Dude web interface it shows local time on Dude server.
In order it to show the same time on web and on console you should have the same timezone settings on Dude server and on Dude client.
by gsandul
Wed Jun 08, 2011 10:18 am
Forum: The Dude
Topic: OID/Tools question
Replies: 2
Views: 2163

Re: OID/Tools question

Hello.
Do not make it to complex. Yes it is possible to write many functions and so on.....
But, in your case the solution should be
new_type.png
device_settings.png
by gsandul
Fri Apr 29, 2011 3:37 pm
Forum: The Dude
Topic: How to use OID-value in CustomField
Replies: 3
Views: 3537

Re: How to use OID-value in CustomField

Anybody with good options/solutions or tips/tricks??
I have solution, and this is not a trick :)
1_dev_prop.png
2_dev_label.png
Label code:
[Device.Name]
[oid(device_property("CustomField1"))]
by gsandul
Wed Apr 27, 2011 12:55 pm
Forum: The Dude
Topic: Dude Server 3.6 can't connect to Dude agent 3.6 on RB750G
Replies: 2
Views: 6611

Re: Dude Server 3.6 can't connect to Dude agent 3.6 on RB750

The best I get is an error saying "invalid username or password" 1) You should connect to your RB750G running on a remote network (the new agent for a sample whith IP 192.168.168.100) from local The Dude client station. 2) You should setup new user/password/ip for your The Dude server con...
by gsandul
Thu Apr 07, 2011 9:03 am
Forum: The Dude
Topic: Dude 4.0 beta3: high CPU on cisco devices
Replies: 21
Views: 16892

Re: Dude 4.0 beta3: high CPU on cisco devices

Anything I am doing wrong? Why is the Dude polling so much? The Dude is polling by default. Yes you are wrong in cisco config. You had only included some subtrees, but you also have to exclude all the others. So all the snmp tree is included in your config. The best practice is to include all by de...
by gsandul
Wed Apr 06, 2011 3:21 pm
Forum: The Dude
Topic: how to create a probe without graphing when discovered?
Replies: 4
Views: 2113

Re: how to create a probe without graphing when discovered?

:)
disable_chart_autoscan.png
Will this work for you?
Or some services should be graphed and some - not?
:)

If so, create 2 scan shedules, one with disabled authograph services and the other whit enabled authograph services :)

I do not beleive you can do it with probes
by gsandul
Wed Apr 06, 2011 2:24 pm
Forum: The Dude
Topic: how to create a probe without graphing when discovered?
Replies: 4
Views: 2113

Re: how to create a probe without graphing when discovered?

Hello.
disable_chart.png
by gsandul
Tue Apr 05, 2011 11:54 am
Forum: The Dude
Topic: Dude 4.0 beta3: high CPU on cisco devices
Replies: 21
Views: 16892

Re: Dude 4.0 beta3: high CPU on cisco devices

how are you polling this data in your interface/device labels? Just created a function "oid(1.2.3.4.5.6.7.....)" or did you create a function with conditions for each? How often do you refresh the labels? It depends..... Any network and server group should be monitored depending on what y...
by gsandul
Tue Apr 05, 2011 9:51 am
Forum: The Dude
Topic: Dude 4.0 beta3: high CPU on cisco devices
Replies: 21
Views: 16892

Re: Dude 4.0 beta3: high CPU on cisco devices

I only monitor cpu on all my cisco devices.
I do monitor CPU, Temperature, Traffic and memory on all my cisco routers. Also number of Active Calls, DSP resources, ASR (Answer Seizure Ratio), number of E1 in UP state on VoIP Access Servers.
access_server.png
Not any high cpu caused by my probes.
by gsandul
Tue Apr 05, 2011 9:40 am
Forum: The Dude
Topic: Dude 4.0 beta3: high CPU on cisco devices
Replies: 21
Views: 16892

Re: Dude 4.0 beta3: high CPU on cisco devices

CPU goes back to like 3-6% when I disable Dude server... so back to the reading room for me :( As I said, in your case second condition of high cpu is trigered. 2) You have a lot of routes on your device. It could be, for a sample on a router holding eBGP sessions. You should just make a view for T...
by gsandul
Mon Apr 04, 2011 9:25 am
Forum: The Dude
Topic: Dude 4.0 beta3: high CPU on cisco devices
Replies: 21
Views: 16892

Re: Dude 4.0 beta3: high CPU on cisco devices

Uh... how would I go about that? :) This is done using snmp viev sample cisco config could be snmp-server view noifread iso included snmp-server view noifread interfaces excluded snmp-server view noifread iproute excluded snmp-server community TheSuperSecret view noifread ro 1 also you should read ...
by gsandul
Fri Apr 01, 2011 5:47 pm
Forum: The Dude
Topic: Dude 4.0 beta3: high CPU on cisco devices
Replies: 21
Views: 16892

Re: Dude 4.0 beta3: high CPU on cisco devices

I have deleted most of my custom probes and functions but still getting like 40% CPU caused by SNMP server when the Dude server is active. There are some conditions which could lead to high cpu on cisco. I know (have realy experienced) 2 conditions 1) You have a lot of interfaces on your device. It...
by gsandul
Fri Apr 01, 2011 3:34 pm
Forum: The Dude
Topic: CPU temperature probe problem
Replies: 10
Views: 6972

Re: CPU temperature probe problem

Its still down, but I get "not available" in the problem row. "not available" - "not available condition" is detected. So you have to change condition for probe to be available. in your case "Avaliable:" condition should be if (array_size(oid_column("1.3...
by gsandul
Fri Apr 01, 2011 2:08 pm
Forum: The Dude
Topic: CPU temperature probe problem
Replies: 10
Views: 6972

Re: CPU temperature probe problem

I have made a CPU temperature probe that seems to work but is always down (Status: down). The probe is in UP state only when "Error:" string is empty. so in your case the Error should be if(oid("1.3.6.1.4.1.232.6.2.6.8.1.4.0.2")<70, "", "TEMP is over 70°")
by gsandul
Thu Mar 31, 2011 11:19 am
Forum: The Dude
Topic: Problems with functions and probes
Replies: 3
Views: 1913

Re: Problems with functions and probes

string_compare does not work properly
use string_find instead
It is bad idea to find what functions return in a probe. Use device appearence label instead.
string_find.png
by gsandul
Thu Mar 31, 2011 9:24 am
Forum: The Dude
Topic: Problem with notifications
Replies: 2
Views: 1570

Re: Problem with notifications

Where i'm wrong? 1) Do not put c:\windows\test.bat in quotes ("") quotes.png 2) The service does not change it state directly from up to down (this will not be true if you change probe down count to 1). down.png First it change state from up to unstable, so you will not receive notificati...
by gsandul
Mon Mar 07, 2011 2:39 pm
Forum: The Dude
Topic: Does this program support SNMP traps?
Replies: 22
Views: 29459

Re: Does this program support SNMP traps?

Some tips to configure net-snmp in windows? Ok. Let assume net-snmp should be installed on the Windows server, where The Dude is running. 1) Download and install by default net-snmp http://www.net-snmp.org/. 2) Run c:\usr\registertrapd.bat it will setup windows service named "Net-SNMP Trap Han...
by gsandul
Wed Mar 02, 2011 9:28 am
Forum: The Dude
Topic: Does this program support SNMP traps?
Replies: 22
Views: 29459

Re: Does this program support SNMP traps?

Can anyone recommend some other application for traps that is free? What are you using now? You can use net-snmp as a trap handler and simple script to translate received messages to The Dude Syslog server. dude_and_traps.png You can also make a notification when translated message is received (bas...
by gsandul
Thu Feb 17, 2011 3:33 pm
Forum: The Dude
Topic: Questions about Logs
Replies: 4
Views: 1514

Re: Questions about Logs

1) How i do for see the old log files? I configure that the log cycle every day , and if i wanna see the previous log (for search something) the only thing that i can do is open it throw file system! Ther is another metod? No another metod. 2) When i use the copy tools over logs files where it is c...
by gsandul
Wed Feb 16, 2011 8:56 am
Forum: The Dude
Topic: SMS again - GSM via COM port
Replies: 4
Views: 4424

Re: SMS again - GSM via COM port

I've seen gsandul's reply on another subject which happens to mention smsadmin.js - if you're watching can I see the script? I use smsadmin.js to post messages through WEB interface of our SMPP server. This will not help you. I'm comfortable with the execute locally notification, batch files and ca...
by gsandul
Tue Feb 01, 2011 5:51 pm
Forum: The Dude
Topic: Notification/sensor priority
Replies: 2
Views: 1462

Re: Notification/sensor priority

This feature is called dependency.
depend.png
3 voice Access servers depend on switch they are connected.
So if switch is down access servers are in unknown state and you would not receive SMS for access servers.
depend1.png
by gsandul
Fri Jan 28, 2011 9:36 am
Forum: The Dude
Topic: Compare time of 2 device
Replies: 8
Views: 2628

Re: Compare time of 2 device

Hi, All. I write that [oid("1.3.6.1.2.1.25.1.2.0",,,192.1.1.227)] but it didn't works. You should put IP address in quotes "" the code should be [oid(oid("1.3.6.1.2.1.25.1.2.0",,,"192.168.0.244"))] I don't know if is useful but i found that. This is useless be...
by gsandul
Thu Jan 27, 2011 12:17 pm
Forum: The Dude
Topic: functin to sum traffic of 2 interfaces
Replies: 8
Views: 9358

Re: functin to sum traffic of 2 interfaces

where's mistake? Not any mistake. Take a look at this rate_bitrate.png concatenate("Rate is: ",round(rate(diff32(oid("1.3.6.1.2.1.2.2.1.10.1"))*8))," ;Bitrate is: ",bitrate(round(rate(diff32(oid("1.3.6.1.2.1.2.2.1.10.1"))*8)))) Bitrate is doing exatly what it...
by gsandul
Wed Jan 26, 2011 11:58 am
Forum: The Dude
Topic: functin to sum traffic of 2 interfaces
Replies: 8
Views: 9358

Re: functin to sum traffic of 2 interfaces

1) Create new datasource datasource.png The code should be round(rate(diff32(oid("1.3.6.1.2.1.2.2.1.10.1","5","300","192.168.0.250","Cisco"))*8) + rate(diff32(oid("1.3.6.1.2.1.2.2.1.10.2","5","300","192.168.0.244&qu...
by gsandul
Fri Jan 21, 2011 6:27 pm
Forum: The Dude
Topic: Regex in a probe/function
Replies: 3
Views: 2390

Re: Regex in a probe/function

The problem is, it's returning an OK status all of the time, even when the processes don't exist. Find the difference my function if(string_find(oid_column("1.3.6.1.2.1.25.4.2.1.2"),"outlook") > 4294967294, -1, 1) your function if(string_find(oid_column("1.3.6.1.2.1.25.4.2....
by gsandul
Fri Jan 21, 2011 9:21 am
Forum: The Dude
Topic: Regex in a probe/function
Replies: 3
Views: 2390

Re: Regex in a probe/function

Hello. My question is: Is there any way to use regular expressions in that setup so that i can monitor similar process names? This is not a case to use regular expressions, but different functions. In probe thread example array_find function is used. You should use string_find function instead of it...
by gsandul
Wed Jan 19, 2011 12:00 pm
Forum: The Dude
Topic: change of DHCP leases has effect on the map
Replies: 5
Views: 2516

Re: change of DHCP leases has effect on the map

BTW what is the purpose of having the original "ip to mac" as a default? 2 reasons. The main reason: you can learn host MAC address only for devices on the same network. Or you can learn MAC address using SNMP from devices which are on the same network whith this hosts. When you do not ha...
by gsandul
Wed Jan 19, 2011 9:23 am
Forum: The Dude
Topic: change of DHCP leases has effect on the map
Replies: 5
Views: 2516

Re: change of DHCP leases has effect on the map

You should change device settings.
mac_to_ip.png
by gsandul
Mon Jan 10, 2011 10:50 am
Forum: The Dude
Topic: The Dude "Forgets" SNMP Probes
Replies: 2
Views: 1830

Re: The Dude "Forgets" SNMP Probes

Every couple of days (it's seemingly random), we get alerts that every single one of the SNMP probes is down at the same time. We have the same problem. Not every couple of days, but couple of weeks. The difference is in device count (we do not have 1060 devices, but about 200). The problem was in ...
by gsandul
Mon Jan 03, 2011 11:29 am
Forum: The Dude
Topic: Backup settings other than by export
Replies: 4
Views: 2202

Re: Backup settings other than by export

Is there another way to save the configuration than clicking on export?
Yes, you can try to save it using The Dude web interface.
by gsandul
Wed Dec 29, 2010 9:33 am
Forum: The Dude
Topic: Problem with auto discovery and SNMP
Replies: 4
Views: 2871

Re: Problem with auto discovery and SNMP

second interface's IP address, wich is the same in every device.
Could you please describe the reason to have 192.168.100.1 as secondary IP on every device?
by gsandul
Wed Dec 29, 2010 9:15 am
Forum: The Dude
Topic: Dude script to schedule reboot of some devices.
Replies: 2
Views: 3117

Re: Dude script to schedule reboot of some devices.

Is there a way to create a Dude script or function to schedule reboot of some devices (no mikrotik devices) via telnet? No way to create The Dude script to function this way. But, if you can create an external script wich will reboot devices, you can make The Dude to run it as external program (usi...
by gsandul
Fri Dec 17, 2010 11:54 am
Forum: The Dude
Topic: Display OID's from multiple devices in 1 Map Entry?
Replies: 2
Views: 1619

Re: Display OID's from multiple devices in 1 Map Entry?

Is this possible? I'd like to total all the dhcp leases from various routers and show them in 1 device. Yes, it is possible. Check oid function definition oid returns value of given snmp OID. Only first parameter mandatory. First parameter - oid string, second - cache time - default 5 seconds (5.0)...
by gsandul
Thu Dec 16, 2010 9:33 am
Forum: The Dude
Topic: New Function
Replies: 5
Views: 2215

Re: New Function

Yeah probably a question for gsandul
:lol:
But you are right "no while or loop function" in The Dude. And no way to find all indexes of elements in array.
by gsandul
Fri Dec 10, 2010 10:15 am
Forum: The Dude
Topic: Probe from the telnet parsing
Replies: 1
Views: 1898

Re: Probe from the telnet parsing

So I see the only one way to monitor them: open telnet session, send a request, receive an answer, parse it and make a chart. It will be imposible with The Dude itself. But it is not the only one way to monitor it. 1) You can use The Dude execute() function to run external script on server where Th...
by gsandul
Wed Dec 08, 2010 9:38 am
Forum: The Dude
Topic: Agents???
Replies: 4
Views: 2162

Re: Agents???

Do I need to set this to the agent on every probe for the device or does setting in the devices main page automaticaly shift the probes over to the agent??
Setting agent in the devices main page automaticaly shift the probes (not probes but services) over to the agent.
by gsandul
Tue Nov 30, 2010 9:33 am
Forum: The Dude
Topic: Create custom oid information table
Replies: 3
Views: 6707

Re: Create custom oid information table

Otherwise you have to manually edit the tool tip for every single switch. Just must say, that settings for individual device tooltip is not supported by The Dude. If I did realy needed such a functionality I would extend The Dude by external python QT application, which will be run as custom Tool f...
by gsandul
Fri Nov 26, 2010 8:54 am
Forum: The Dude
Topic: Create poller with external command
Replies: 4
Views: 2202

Re: Create poller with external command

Where's the mistake? execute("perl remote_telnet.pl") - will not work. The dude knows nothing about Windows PATH and nothing about where remote_telnet.pl is located. You should use it like this array_element(execute("cscript.exe",concatenate("//NoLogo C:\\dudescr\\loggeduse...
by gsandul
Thu Nov 25, 2010 11:59 am
Forum: The Dude
Topic: Create custom oid information table
Replies: 3
Views: 6707

Re: Create custom oid information table

Anybody have any ideas on how to make this information available automatically without having to customize every single device I add or how to create a custom table of information? If you realy need it, you can do it. In my sample I have 4 functions for 3 interfaces, you will need 25 or 49 function...
by gsandul
Thu Nov 25, 2010 9:10 am
Forum: The Dude
Topic: Create poller with external command
Replies: 4
Views: 2202

Re: Create poller with external command

No one?
Is the question too vague?
It is not vague.
But you should first read "Probe Thread" and you will find the answer how to write function to execute external aplication and than you should create the probe based on it results.
by gsandul
Wed Nov 24, 2010 5:03 pm
Forum: The Dude
Topic: BUG: Custom logs reseted to default after Windows reboot
Replies: 24
Views: 9424

Re: Bug - logs reseted to default after Windows reboot

Ok gsandul, now you move from karma No. 13 ...
TNX, it was equal 13 for 1 day only :)
by gsandul
Wed Nov 24, 2010 1:59 pm
Forum: The Dude
Topic: Email notifications stopped
Replies: 5
Views: 1996

Re: Email notifications stopped

You should check if notification is enabled on the notifications tab
22.png
by gsandul
Fri Nov 19, 2010 9:12 am
Forum: The Dude
Topic: Ubiquiti SNMP links between devices always red *SOLVED*
Replies: 7
Views: 11377

Re: Ubiquiti SNMP links between devices always red

If you do not set your link speed manualy
11.png
Liks speed is taked by The Dude from SNMP ifSpeed
10.png
Setting ifSpeed is specific for OS, for example to set speed on Cisco switch on interface Fe0/2 to 2Mbit you should use commands
12.png
by gsandul
Tue Nov 16, 2010 12:24 pm
Forum: The Dude
Topic: ping and visible 2 IP in MAP
Replies: 4
Views: 2385

Re: ping and visible 2 IP in MAP

Yes, you can 1) Create the function 1.png if(string_find(device_property("ServicesDown"),"ping") = 4294967295,"",concatenate("ping for ",device_property("FirstAddress")," is down")) 2) Place it on the device label 2.png [Device.Name] [devic...
by gsandul
Thu Nov 04, 2010 11:09 am
Forum: The Dude
Topic: printer toner probe & function
Replies: 8
Views: 7778

Re: printer toner probe & function

So of course it is sending an e-mail to "order toner" when this happens.
You can make it to send e-mail to "SNMP read error" instead of "order toner".
Check this http://forum.mikrotik.com/viewtopic.php?f=8&t=43396
by gsandul
Fri Oct 29, 2010 10:28 am
Forum: The Dude
Topic: Dude settings wont save in windows user account.
Replies: 4
Views: 5103

Re: Dude settings wont save in windows user account.

but I refuse to let them log onto the workstations as administrators
You should give your users write access to "C:\Program Files\Dude" folder and it's subfolders on client workstation.
by gsandul
Fri Oct 29, 2010 9:07 am
Forum: The Dude
Topic: Gaps in graphs... just FYI.
Replies: 20
Views: 7776

Re: Gaps in graphs... just FYI.

This is from a 7600/6500 Cisco router
Do you run eBGP and have a lot of routes in routing table? Or do you have a lot of virtual interfaces (eq pppoe, pptp, etc...) on your router?
by gsandul
Wed Oct 27, 2010 11:41 am
Forum: The Dude
Topic: Dude 4.0 beta 1+2 and "\"
Replies: 4
Views: 1993

Re: Dude 4.0 beta 1+2 and "\"

But if I had the choice to change all my affected functions/probes, or wait for a corrected version. I will choose no. 2
I'm not from Mikrotik staff, but it seems in this case you will wait forever. :)
I do not beleive they do consider double slash to be incorrect in functions.
by gsandul
Wed Oct 27, 2010 10:09 am
Forum: The Dude
Topic: Dude 4.0 beta 1+2 and "\"
Replies: 4
Views: 1993

Re: Dude 4.0 beta 1+2 and "\"

Due to no answers, I am not sure if I am the only one with this problem
You are not the only one. Some things are changed, but is it a problem?
All you need is to check if all the functions and probes are working after update and change it, when needed.
by gsandul
Sat Oct 23, 2010 11:43 am
Forum: The Dude
Topic: graphing minus value ?
Replies: 3
Views: 1709

Re: graphing minus value ?

but oops, i am realizing that on snmp values what i'd really like to create is minus (-) The was some problems with negative values on The Dude v<=3.6 (graphs where not drawed correctly). But on 4.0 there are no such a problems. So if you are dealing with negative SNMP values you should use v 4.0 I...
by gsandul
Sat Oct 23, 2010 10:38 am
Forum: The Dude
Topic: Notification 'execute locally'
Replies: 2
Views: 2457

Re: Notification 'execute locally'

Yes, it is possible. This code we are using to send SMS using exernal java script through SMPP server. We receive SMS at the same time we see the Popup alert on The Dude console. C:\WINDOWS\system32\cscript.exe C:\smsadmin.js admins [TimeAndDate] MSK: Service [Probe.Name] on [Device.Name] is now [Se...
by gsandul
Fri Oct 22, 2010 4:12 pm
Forum: The Dude
Topic: the dude ping problem
Replies: 7
Views: 6866

Re: the dude ping problem

First try to run The Dude Server as Windows Administrator. This is discussed many times in this forum.
by gsandul
Fri Oct 22, 2010 10:15 am
Forum: The Dude
Topic: Dude Missing logs (e.g. syslogs)after reboot
Replies: 4
Views: 2047

Re: Dude Missing logs (e.g. syslogs)after reboot

Not sure, but it seems your changes are not commited in The Dude database.
Check your database commit interval.
33.png
by gsandul
Thu Oct 21, 2010 4:37 pm
Forum: The Dude
Topic: Dude Missing logs (e.g. syslogs)after reboot
Replies: 4
Views: 2047

Re: Dude Missing logs (e.g. syslogs)after reboot

1) Post your Dude version. I had no such a problems on 3.6 and 4.0. What version do you use? 2) Files, you define to store syslog messages, are stored on server filesystem. Check C:\Program Files\Dude\data\files to find if there are in. 3) May be you should specify rotation method for this files. Lo...
by gsandul
Tue Oct 19, 2010 5:19 pm
Forum: The Dude
Topic: DUDE error login account, after windows reboot!
Replies: 8
Views: 4448

Re: DUDE error login account, after windows reboot!

my question is this error has happened because I am using a beta version? I beleive - no. Have not heared about such a problems. I then install the stable version No luck - there is no way to move from 4.0 version to 3.6 (you will lose all the config). 4.0 is stable enough - there are no big proble...
by gsandul
Tue Oct 19, 2010 3:44 pm
Forum: The Dude
Topic: DUDE error login account, after windows reboot!
Replies: 8
Views: 4448

Re: DUDE error login account, after windows reboot!

Using python it is realy easy to extract usernames and passwords from dude.db on dude 4.0. 11 lines python script can do it. import sqlite3 import sys def getname(stri, pos): return stri[pos + 1:pos + ord(stri[pos])+1] conn = sqlite3.connect(sys.argv[1]) for row in conn.execute("select * from o...
by gsandul
Tue Oct 19, 2010 2:58 pm
Forum: The Dude
Topic: DUDE error login account, after windows reboot!
Replies: 8
Views: 4448

Re: DUDE error login account, after windows reboot!

Had you forget password?
by gsandul
Thu Oct 14, 2010 3:38 pm
Forum: The Dude
Topic: Simple probe question
Replies: 9
Views: 3163

Re: Simple probe question

Is that means I can set the cache value to 0? No, I mean defaults are ok for me. But you can try to set it to 0 and see the result. well...I wrote this function myself without reference any function in dude.. Good job - it's not trivial to write such a functions.... seems I think too much on how to...
by gsandul
Thu Oct 14, 2010 10:38 am
Forum: The Dude
Topic: Simple probe question
Replies: 9
Views: 3163

Re: Simple probe question

But it seems not working, probe still show down status for nearly 5 mins @@" Can any one give some ideas about this? Your function is snmpwalking 2 times and snmpgetting 1 time. Am I right? And you change default "negative cache" only for snmpget oid_raw . You should try to change &q...
by gsandul
Wed Oct 13, 2010 2:01 pm
Forum: The Dude
Topic: Probe Thread
Replies: 339
Views: 413866

Re: Probe Thread

With Dude 4 beta2 the "Logged User" Script/Function doesn't work anymore. Any ideas ? The code for Logged_User in 3.6 was: array_element(execute("cscript.exe",concatenate("//NoLogo C:\dudescr\loggeduser.vbs ",User_Pass()),"C:\WINDOWS\system32\"),1) In 4.0 Bet...
by gsandul
Tue Oct 05, 2010 2:00 pm
Forum: The Dude
Topic: The Dude and Canopy
Replies: 3
Views: 2702

Re: The Dude and Canopy

4) Now create the probe 4.png The code for probe is <?xml version="1.0" ?> <dude version="4.0beta2"> <Probe> <sys-type>13</sys-type> <sys-id>10246526</sys-id> <sys-name>Cisco_Temp_Outlet</sys-name> <typeID>8</typeID> <functionAvailable>Cisco_Temp_Outlet() > 0</functionAvailable> ...
by gsandul
Tue Oct 05, 2010 1:53 pm
Forum: The Dude
Topic: The Dude and Canopy
Replies: 3
Views: 2702

Re: The Dude and Canopy

I created a probe for this by SNMP walking the SM and right clicking, then "create probe" This probe will show the responce time of snmpget command in the graph. To have graph showing the value you query using SNMP you should create function to query the SNMP value, after it create probe ...
by gsandul
Thu Sep 30, 2010 12:25 pm
Forum: The Dude
Topic: Arris CXM CoaxMedia Gateway and SNMP tables
Replies: 8
Views: 3148

Re: Arris CXM CoaxMedia Gateway and SNMP tables

snmp walking still loops at the table I need..... Messing around with it I think there is something wrong with the mib file..... Walking loops could not be caused by wrong mib files. Mib files are used by programs wich query snmp enabled devices (snmp agents), not by agents. SNMP request are always...
by gsandul
Wed Sep 29, 2010 3:22 pm
Forum: The Dude
Topic: Arris CXM CoaxMedia Gateway and SNMP tables
Replies: 8
Views: 3148

Re: Arris CXM CoaxMedia Gateway and SNMP tables

And you can dobleclick on the table name and will see the table as on picture below
4.png
If this does not help you may only try to find bug in your device.
by gsandul
Wed Sep 29, 2010 3:19 pm
Forum: The Dude
Topic: Arris CXM CoaxMedia Gateway and SNMP tables
Replies: 8
Views: 3148

Re: Arris CXM CoaxMedia Gateway and SNMP tables

Yes I have the MIB loaded for my Arris device Is it loaded in The Dude? If not - load it. 1.png When loaded, MIB becomes "compiled" so you do not need to do any more steps. After it, while snmpwalking you will be able to open table in snmpwalk utility For a sample. Before loading cisco Me...
by gsandul
Mon Sep 27, 2010 4:59 pm
Forum: The Dude
Topic: Selfmade function: Get Aggregation-Link-Speed - help needed
Replies: 9
Views: 3638

Re: Selfmade function: Get Aggregation-Link-Speed - help nee

Whats going wrong here? You missed the last post here http://forum.mikrotik.com/viewtopic.php?f=8&t=43396 When using Dude 4.0 you must change functions in order it to work because rate function had changed it's behavior . <?xml version="1.0" ?> <dude version="4.0beta2"> <Fun...
by gsandul
Fri Sep 17, 2010 3:53 pm
Forum: The Dude
Topic: Appearance - TRIM Data from SNMP OID
Replies: 1
Views: 1321

Re: Appearance - TRIM Data from SNMP OID

Can I trim the value somehow?
Yes, you can. Use round() function.
by gsandul
Thu Aug 26, 2010 1:20 pm
Forum: The Dude
Topic: graph values other then data trafic
Replies: 6
Views: 2260

Re: graph values other then data trafic

thnx, done Let me gues..... You made 24*4 functions for every of your 4 Access servers..... Lets say funtions looks like name:AS1_E1_0_0, code: oid("1.3.6.1.4.1.9.10.19.1.1.9.1.3.0.0","5","300","AS1.IP.ADD.RES","CiscoAS_Community") name:AS1_E1_0_1, ...
by gsandul
Thu Aug 19, 2010 3:32 pm
Forum: The Dude
Topic: Requests in WEB-interface
Replies: 8
Views: 5103

Re: Requests in WEB-interface

Я Вам ещё раз могу повторить, уже по-русски, что эта база данных бесполезна для других приложений. В этой базе данных хранится: 1) конфигурация Дьюда (настройки устройств, сервисов, карт и прочие вещи). 2) данные для построения графиков - значения получаемые зондами (вовсе бесполезная информация) . ...
by gsandul
Thu Aug 19, 2010 12:31 pm
Forum: The Dude
Topic: Requests in WEB-interface
Replies: 8
Views: 5103

Re: Requests in WEB-interface

I want remotely connect to dude DB over SDK(e.g. eclipse) or make dblink in my oracle DB with Dude sqlite DB. Before asking you should google on how to connect to sqlite database from network. After it, I think, you will have no questions. I do not find any reason to query The Dude DB (it is locked...
by gsandul
Tue Aug 17, 2010 11:49 am
Forum: The Dude
Topic: graph values other then data trafic
Replies: 6
Views: 2260

Re: graph values other then data trafic

is it possible to create a link on the map that is not in bps?
Yes, it is possible.
But you can only make label showing the current ISDN used lines or whatewer, and you will have no graph showing this value when dobleclicking the link (only bitrate).
by gsandul
Tue Aug 17, 2010 8:41 am
Forum: The Dude
Topic: graph values other then data trafic
Replies: 6
Views: 2260

Re: graph values other then data trafic

Is it possible to graph stuff based on OID rather the on interface
Yes, it is possible.
by gsandul
Fri Aug 13, 2010 9:15 am
Forum: The Dude
Topic: Network map scan to label with *just* hostname, not FQDN?
Replies: 4
Views: 2055

Re: Network map scan to label with *just* hostname, not FQDN

I looked and looked and never found a good way to have it contain only the host portion. Why don't you posted the question on the forum? It's not to complex to make it show what you wish. 7 minutes for solution :-) google.png The code for device label should be [Device.Name] [if(string_find(device_...
by gsandul
Thu Aug 12, 2010 10:16 am
Forum: The Dude
Topic: Probe & notification granularity
Replies: 1
Views: 1625

Re: Probe & notification granularity

[quote=""SSU"]1) Can I establish different probe variables for different devices?[/quote] No way to pass variables to The Dude functions or probes, just create new probe to check different conditions. 2) How do I get a repeat notification, and can I establish different conditions for ...
by gsandul
Wed Aug 11, 2010 11:36 am
Forum: The Dude
Topic: Notification from The Dude server via telnet
Replies: 1
Views: 2183

Re: Notification from The Dude server via telnet

Hello, Gábor. Due to telnet protocol limitation it is not possible to specify login/password. You can do it only using some script which will fill password after password prompt, as for me, I would use perl for it. Alternatively you can do it if there is ssh access to your device. In a such a case y...
by gsandul
Mon Aug 09, 2010 12:40 pm
Forum: The Dude
Topic: Probe Thread
Replies: 339
Views: 413866

Re: Probe Thread

There is no way to do it with The Dude TCP probe. You can do it only with external script (you can run the script from dude, query SNMP OID on server to start the script, etc....). in this case, involves users and passwords from other agencies and the security policy does not allow to be done this w...
by gsandul
Thu Aug 05, 2010 2:51 pm
Forum: The Dude
Topic: "too many elements" on Service-Discover
Replies: 3
Views: 1468

Re: "too many elements" on Service-Discover

You can stop auto discovering of services when you press discover button on the device properties, have a look at the picture
uncheck.png
by gsandul
Thu Aug 05, 2010 12:26 pm
Forum: The Dude
Topic: "too many elements" on Service-Discover
Replies: 3
Views: 1468

Re: "too many elements" on Service-Discover

Hello, Andreas.
Do you rely need all those services IFindex_1.... IFindex_26 to be autodiscovered?
If not - disable autodiscovering for those services and this should solve the problem.
by gsandul
Thu Aug 05, 2010 9:57 am
Forum: The Dude
Topic: Probe Thread
Replies: 339
Views: 413866

Re: Probe Thread

I do not know how to do that, maybe Lebowski or Gsandul can help
For sure, I can help, but I need to know what do you mean
function that connects via FTP
Just explain how do you plan to use it.
by gsandul
Wed Aug 04, 2010 5:31 pm
Forum: The Dude
Topic: How to concatenate context var with function?
Replies: 3
Views: 2358

Re: How to concatenate context var with function?

If you would like to have such a picture pic1.png you should use not [Interface.Index], but link_index() pic2.png the code should be Gi 1/0/21 -- Gi 1/0/2 Rx: [Interface.InBitRate] Tx: [Interface.OutBitRate] RxPPS:[Interface.InUnicastPacketsRate] TxPPS:[Interface.OutUnicastPacketsRate] Stats on: [oi...
by gsandul
Fri Jul 30, 2010 5:21 pm
Forum: The Dude
Topic: The Dude Backup parser
Replies: 2
Views: 3162

Re: The Dude Backup parser

If someone has a file that doesn't load or an upgrade that doesn't work and loses all the maps or what have you, could the trouble with the XML be discovered through this tool?
No it is not possible.
by gsandul
Fri Jul 30, 2010 5:15 pm
Forum: The Dude
Topic: Net-SNMP integration
Replies: 4
Views: 2932

Re: Net-SNMP integration

Which program did you wind up with, or where did you down load it from? We are talking about this http://net-snmp.sourceforge.net/ This tool is used on Linux or other Unix servers as a default SNMP tool (command line tools), SNMP agent, SNMP trap receiver. It is also ported on Windows. It's more po...
by gsandul
Thu Jul 29, 2010 3:05 pm
Forum: The Dude
Topic: The Dude Backup parser
Replies: 2
Views: 3162

The Dude Backup parser

Hello all. You must know, there is a feature in The Dude - you can make an Service or an Device "acked". Making service acked is usefull when you know the problem and do not want to have alert on it (for a time). When service is in "acked" state and it is unavailable it becomes b...
by gsandul
Tue Jul 27, 2010 11:00 am
Forum: The Dude
Topic: Net-SNMP integration
Replies: 4
Views: 2932

Re: Net-SNMP integration

Hello,
When create a custom tool you should specify the correct path to executable
The Dude did not find snmpset and do nothing. The solution for windows and default net-snmp installation should be
C:\usr\bin\snmpset.exe -v 1 -c [Device.CustomField1] 10.240.1.15 1.3.6.1.4.1.32050.2.1.26.5.0 i 0
by gsandul
Fri Jul 23, 2010 12:51 pm
Forum: The Dude
Topic: LACP and charts
Replies: 4
Views: 2148

Re: LACP and charts

The only thing that the chart not absolutely normally draws (I use the dude 3.4), but it is all hogwash
А по-русски? Совсем не понял эту чушь.....
by gsandul
Thu Jul 22, 2010 1:14 pm
Forum: The Dude
Topic: LACP and charts
Replies: 4
Views: 2148

Re: LACP and charts

Yes, it is possible.
But, you have to create functions to do it, look at the sample where
http://forum.mikrotik.com/viewtopic.php?f=8&t=43396

If you have a problem with it, I can help you :)
by gsandul
Wed Jul 21, 2010 10:10 pm
Forum: The Dude
Topic: trouble - SNMP probe should return 0 as a valid value
Replies: 9
Views: 2759

Re: trouble - SNMP probe should return 0 as a valid value

Hmmmm.... :shock: The only thing I'm dubt is oid("1.3.6.1.4.1.9.9.273.1.1.2.1.1.1", 10 , 19 ) :? Could you use instead of this oid("1.3.6.1.4.1.9.9.273.1.1.2.1.1.1",10,19)+oid("1.3.6.1.4.1.9.9.273.1.1.2.1.1.2",10,19) this code 8) sum(oid_column_raw("1.3.6.1.4.1.9.9...
by gsandul
Wed Jul 21, 2010 6:00 pm
Forum: The Dude
Topic: trouble - SNMP probe should return 0 as a valid value
Replies: 9
Views: 2759

Re: trouble - SNMP probe should return 0 as a valid value

It seems to be not The Dude problem I suppose SNMP object cDot11ActiveDevicesTable with OID 1.3.6.1.4.1.9.9.273.1.1.2 becomes empty when there is no wireless client on access point. You can check if anything is returned while snmpwalking on subtree at 1.3.6.1.4.1.9.9.273.1.1.2 when there are 0 clien...
by gsandul
Wed Jul 21, 2010 3:36 pm
Forum: The Dude
Topic: The Dude v4.0 beta 2 released
Replies: 46
Views: 21913

Re: The Dude v4.0 beta 2 released

fixed server crash when connection to agent lost

Must confirm it is fixed, no crash during 6 day (beta 1 crashed almost every day)

TNX a lot :)
by gsandul
Wed Jul 21, 2010 1:54 pm
Forum: The Dude
Topic: trouble - SNMP probe should return 0 as a valid value
Replies: 9
Views: 2759

Re: trouble - SNMP probe should return 0 as a valid value

Hi, Lebowski
What exactly does it shows down in your probe when there is 0 users on it?
Does it shows "Wifi Device Down" or "failed snmp wifi read"

Unfortunately, I do not have cisco access point to check it. :(
by gsandul
Tue Jul 20, 2010 9:38 pm
Forum: The Dude
Topic: trouble - SNMP probe should return 0 as a valid value
Replies: 9
Views: 2759

Re: trouble - SNMP probe should return 0 as a valid value

Hello, Lebowski 1) Why do you consider, that checking array values in if statement should return something reasonable? Your function statement should be: if(array_size(oid_column("1.3.6.1.4.1.9.9.273.1.1.2.1.1")) > 0,oid("1.3.6.1.4.1.9.9.273.1.1.2.1.1.1"),"False") in or...
by gsandul
Fri Jul 16, 2010 11:24 am
Forum: The Dude
Topic: Norification if speed on a link drops
Replies: 18
Views: 24451

Re: Norification if speed on a link drops

1) Had found 1 issue in probes. <?xml version="1.0" ?> <dude version="3.6"> <Probe> <sys-type>13</sys-type> <sys-id>20437</sys-id> <sys-name>If_7_out_rate</sys-name> <typeID>8</typeID> <functionAvailable>If_7_out_rate() > -1</functionAvailable> <functionError>if(If_7_out_rate() =...
by gsandul
Thu Jul 15, 2010 6:14 pm
Forum: The Dude
Topic: Norification if speed on a link drops
Replies: 18
Views: 24451

Re: Norification if speed on a link drops

Now add services to the device and have a look what happens when

the rate is slow
8_probes.JPG
The device is not accessible
9_probes.JPG
\

Do you see the magic? :)
Hope it was helpful :)
by gsandul
Thu Jul 15, 2010 6:08 pm
Forum: The Dude
Topic: Norification if speed on a link drops
Replies: 18
Views: 24451

Re: Norification if speed on a link drops

4_apear.JPG 5_apear.JPG The code of appearance is [Device.Name] If 7 in rate = [If_7_in_rate()] If 7 out rate = [If_7_out_rate()] [device_performance()][Device.ServicesDown] Now you need to create 2 probes 7_probes.JPG The code for probes is <?xml version="1.0" ?> <dude version="3.6&...
by gsandul
Thu Jul 15, 2010 5:57 pm
Forum: The Dude
Topic: Norification if speed on a link drops
Replies: 18
Views: 24451

Re: Norification if speed on a link drops

Ok. The task is to notify when interface transfer rate on interface index 7 is less than 1Mbit/s (you can change it to whatever) 1) Create 2 functions 1_functions.JPG 2_functions.JPG You can change interface index to your. The difference between function is in OID we check. the functions codes are <...
by gsandul
Thu Jul 15, 2010 10:47 am
Forum: The Dude
Topic: Norification if speed on a link drops
Replies: 18
Views: 24451

Re: Norification if speed on a link drops

Hi, eben
It is not hard to make such a probe, but it will deffer in Dude 4.0 beta from 3.x
So I need to know your Dude version to help you.
by gsandul
Thu Jul 08, 2010 10:34 am
Forum: The Dude
Topic: Script for making automatic Dude backup's remotely
Replies: 15
Views: 14449

Re: Script for making automatic Dude backup's remotely

Hi, ormwish
Probably you should move to Dude 4.0 Beta.
The backup on 4.0 is faster and backup file size is lower (in my case it is redused for 10 times from 120Mb to 12Mb).
by gsandul
Mon Jul 05, 2010 4:20 pm
Forum: The Dude
Topic: Using The Dude to check routes
Replies: 2
Views: 2334

Re: Using The Dude to check routes

Hi, MotivAction
Probably, you can do it using ICMP probe.
To see if it possible and to help you to make probe I have to look at tracert to .10 and .140 from your dude server when you are on main link. You can strip first 2 digits of IP addresses showing in tracert, I just need to know hopcount.
by gsandul
Thu Jul 01, 2010 5:45 pm
Forum: The Dude
Topic: Concatenate OID with Interface.Index
Replies: 4
Views: 3931

Re: Concatenate OID with Interface.Index

TNX, blackpaw Now we can easy determine the direction of traffic flow. links.JPG The code for link apeareance is Gi 1/0/21 -- Gi 1/0/2 Rx: [Interface.InBitRate] Tx: [Interface.OutBitRate] RxPPS:[Interface.InUnicastPacketsRate] TxPPS:[Interface.OutUnicastPacketsRate] Stats on: [oid(concatenate("...
by gsandul
Wed Jun 23, 2010 9:16 am
Forum: The Dude
Topic: The Dude 4 (beta)
Replies: 98
Views: 34412

Re: The Dude 4 (beta)

lebowski Gsandul how did the rate command change? My one rate probe is broken... The rate() function changed it's behavior from COUNTER (is for continuous incrementing counters like the ifInOctets counter in a router) to ABSOLUTE (is for counters which get reset upon reading) You can read here the ...
by gsandul
Tue Jun 22, 2010 11:46 am
Forum: The Dude
Topic: The Dude 4 (beta)
Replies: 98
Views: 34412

Re: The Dude 4 (beta)

can we log into the sqlite3 database in any way? i normaly use firefox plugin to do this Stop The Dude, copy C:\Program Files\Dude\data\dude.db and use plugin to access it. or, better make a backup of dude config, extract from zip dude.db and use plugin to access it. You can not access it on workin...
by gsandul
Tue Jun 22, 2010 9:44 am
Forum: The Dude
Topic: The Dude 4 (beta)
Replies: 98
Views: 34412

Re: The Dude 4 (beta)

lebowski You can find a windows command line tool for sqlite3. Looks like we got some SQL to learn. You do not, just use firefox add-on SQLite manager https://addons.mozilla.org/en-US/firefox/addon/5817/ But, there is no interesting informanion in it. wanned many of us were requesting it so we coul...
by gsandul
Mon Jun 21, 2010 10:58 am
Forum: The Dude
Topic: The Dude 4 (beta)
Replies: 98
Views: 34412

Re: The Dude 4 (beta)

Had moved to 4.0Beta from 3.5. 1) All the settings are saved, anything is working. 2) Graphs - work much better, correct negative values handle, it is fine. 3) Issue: backup via WEB interface. Web backup is working, but the incorrect link to XML file is provided on web page. Had to rewrite link in b...
by gsandul
Fri Jun 18, 2010 10:18 am
Forum: The Dude
Topic: SNMP issues with BGP router
Replies: 8
Views: 3533

Re: SNMP issues with BGP router

Hi, lebowski. Do you have the whole internet routing table from BGP peers on your 2821? I was talking about 100% CPU on a cisco 7206VXR core ISP router and this router has the whole internet routing table. The same problem I had when I also was working on ISP, it apeared from time to time after we s...
by gsandul
Thu Jun 17, 2010 9:49 am
Forum: The Dude
Topic: SNMP issues with BGP router
Replies: 8
Views: 3533

Re: SNMP issues with BGP router

May add to previous post.
The Dude will download the whole routing table in any case, because it has to construct, and refresh from time to time this table
routing.JPG
Hope you can disable access to some SNMP OID's (routing table in your case) on RouterOS 4.5.
by gsandul
Thu Jun 17, 2010 9:28 am
Forum: The Dude
Topic: SNMP issues with BGP router
Replies: 8
Views: 3533

Re: SNMP issues with BGP router

You can have a problem when dude is trying to gownload the whole routing table. The router may have 100% CPU. My friend, is working on ISP now, and has such a problem with Dude and BGP router. You can not disable routing download on Dude, but you can disable access to routing table on device. In cas...
by gsandul
Fri Jun 11, 2010 2:30 pm
Forum: The Dude
Topic: HD space/usage
Replies: 6
Views: 3597

Re: HD space/usage

Anyone know how to get the figures to round to 2 decimal places?
It's simple, like a programming, just use your imagination :)
round(My_Function()*100)/100  -- for 2 decimal places
round(My_Function()*1000)/1000 -- for 3 decimal places
by gsandul
Fri Jun 11, 2010 12:21 pm
Forum: The Dude
Topic: Script for making automatic Dude backup's remotely
Replies: 15
Views: 14449

Re: Script for making automatic Dude backup's remotely

We try to get him not to delete backups from previous days, and keep backups 1 week?! I just commented # rm -f $backupdir/old/* # rm -d $backupdir/old and sheduled the cron on my FreeBSD to delete backup files older then 10 days. 25 01 * * * /usr/bin/find /usr/dudebackup/data/old/ -name "*&quo...
by gsandul
Fri Jun 11, 2010 9:59 am
Forum: The Dude
Topic: Script for making automatic Dude backup's remotely
Replies: 15
Views: 14449

Re: Script for making automatic Dude backup's remotely

It works greate.
The only problem may appear because the dude sometimes stops responding on WEB interface.
It cause backup to fail.
I would be grateful if you attach a picture of your patterns and where IP addresses are printed insert asterisks.
what do you mean a picture of your patterns?
by gsandul
Fri Jun 11, 2010 8:53 am
Forum: The Dude
Topic: Notifications -order of events
Replies: 10
Views: 3328

Re: Notifications -order of events

Hi all. I may add to this Your request... "if OID value = null, do nothing. If oid value = 1, send alert BUILDING_POWER. If OID value = 2, send alert BATTERY_POWER." I have not built a probe that handles another state like you requested (sorry) The request is useless. And must say, lebowsk...
by gsandul
Thu Jun 10, 2010 2:04 pm
Forum: The Dude
Topic: Notifications -order of events
Replies: 10
Views: 3328

Re: Notifications -order of events

Hello seriousman Just let me clarify. An alert can be sent when service state is changed. alert.JPG The service may change state from UP to Down and from Down to UP, there is no other condition. It is not hard to make the probe, but, is it realy good to receive notification that service is in UP sta...
by gsandul
Thu May 20, 2010 8:38 am
Forum: The Dude
Topic: charts randomly change sources
Replies: 2
Views: 1298

Re: charts randomly change sources

It may happend due to SNMP interface index changes. It can be changed when switch reboots.
check this
http://www.cisco.com/en/US/tech/tk648/t ... 4eec.shtml
by gsandul
Wed May 19, 2010 11:49 am
Forum: The Dude
Topic: OID round up not working
Replies: 2
Views: 1520

Re: OID round up not working

[round(((((oid("1.3.6.1.2.1.25.2.3.1.5.1")-oid("1.3.6.1.2.1.25.2.3.1.6.1"))*oid("1.3.6.1.2.1.25.2.3.1.4.1")) /1024)/1024)/1024 )] rounds up to 11gb [round(((oid("1.3.6.1.2.1.25.2.3.1.5.1")*oid("1.3.6.1.2.1.25.2.3.1.4.1")) /1024)/1024 )] rounds up to...
by gsandul
Tue May 18, 2010 8:02 am
Forum: The Dude
Topic: Dude for Linux
Replies: 49
Views: 44767

Re: Dude for Linux

Hey. Whats up? I'm not a linux/unix admin, but I founded a solution for Dude "As a Service" on FreeBSD. Hope Linux guru will make it work on Linux. 1) Install sofware (from port to be more clear to understand) cd /usr/ports/x11/xorg make; make install clean cd /usr/ports/emulators/wine/ ma...
by gsandul
Mon May 17, 2010 8:24 am
Forum: The Dude
Topic: Concatenate OID with Interface.Index
Replies: 4
Views: 3931

Re: Concatenate OID with Interface.Index

What is wrong? :? The Dude does not know IP addres of device you are trying to get oid, because you are working with link(in a link context), not with device. You must provide device IP to function "oid" Your function should look like oid(concatenate("1.3.6.1.4.1.14988.1.1.1.1.1.7.&q...
by gsandul
Thu May 13, 2010 1:53 pm
Forum: The Dude
Topic: UserName of user logged on a device
Replies: 8
Views: 3368

Re: UserName of user logged on a device

Hello.
keith, tnx for script.
The solution for this question is in "Probe Thread"

http://forum.mikrotik.com/viewtopic.php ... 43#p208043
by gsandul
Thu May 13, 2010 1:46 pm
Forum: The Dude
Topic: Probe Thread
Replies: 339
Views: 413866

Re: Probe Thread

The function to display on device label UserName of user logged on a Windows Host. You must know that: 1. There is no SNMP oid to check user logged on Windows host. 2. You can retreive UserName of logged user using WMI. 3. The Dude has not WMI support. 4. The Dude can run any executable file and ret...
by gsandul
Tue May 11, 2010 8:35 am
Forum: The Dude
Topic: UserName of user logged on a device
Replies: 8
Views: 3368

Re: UserName of user logged on a device

keith, please, post the code, I'll try to make function to display the code result on a map.
by gsandul
Mon May 10, 2010 9:53 am
Forum: The Dude
Topic: Disable SNMP Requests
Replies: 1
Views: 1367

Re: Disable SNMP Requests

To disable SNMP you should make no-snmp as a default profile. And also check if all the devices are set to use default SNMP profile. If you have auto scan procedure for your map it will use any defined SNMP profile during scan. To disable it you should delete all the other SNMP profile exept no-snmp...
by gsandul
Fri May 07, 2010 11:32 am
Forum: The Dude
Topic: HD available space
Replies: 1
Views: 1158

Re: HD available space

but is there anyway to round up the values? Yes, C:[ round( ((((oid("1.3.6.1.2.1.25.2.3.1.5.2")-oid("1.3.6.1.2.1.25.2.3.1.6.2"))*oid("1.3.6.1.2.1.25.2.3.1.4.2"))/1024)/1024)/1024) ) ] GB In a such a case it is better to put MB not GB on the label, but it is up to you :)
by gsandul
Thu May 06, 2010 5:37 pm
Forum: The Dude
Topic: No error when 1 of 2 ETHs goes down
Replies: 6
Views: 2291

Re: No error when 1 of 2 ETHs goes down

Must say, for sure we miss:
1. passing params to functions
2. split() function - it will be easy to make such a probe as above.
3. foreach(array_element in array) function
by gsandul
Thu May 06, 2010 5:27 pm
Forum: The Dude
Topic: No error when 1 of 2 ETHs goes down
Replies: 6
Views: 2291

Re: No error when 1 of 2 ETHs goes down

I had solution for a such probe. All you have to do is to use functions to get second IP address and to ping it. Look at the picture picture1.JPG the device label is [Device.Name] IP_Coma_List: [Device.AddressesCommaList] Second_Addres Begins at pos:[Second_IP_Beg()] Second_Addres Ends at pos:[Secon...
by gsandul
Thu May 06, 2010 2:59 pm
Forum: The Dude
Topic: Device Type Services
Replies: 1
Views: 1030

Re: Device Type Services

Here you see all available probes with the headline 'ignored' next to them. Surprisingly out of the box the only probe activated and so set to be ignored (!) for the windows computer is 'windows'. Windows Service is made to map host with windows installed on it, to group "windows hosts", ...
by gsandul
Tue Apr 27, 2010 8:40 am
Forum: The Dude
Topic: Difference between notification settings
Replies: 7
Views: 2350

Re: Difference between notification settings

p.s. how do i increase your karma?
Karma is a new forum feature :)

http://forum.mikrotik.com/viewtopic.php?f=8&t=41148
by gsandul
Mon Apr 26, 2010 5:27 pm
Forum: The Dude
Topic: Difference between notification settings
Replies: 7
Views: 2350

Re: Difference between notification settings

The same is for probe interval definition, chech the picture
probe.gif
By the way, if you like my answers, please increase my karma :)
by gsandul
Mon Apr 26, 2010 5:17 pm
Forum: The Dude
Topic: Difference between notification settings
Replies: 7
Views: 2350

Re: Difference between notification settings

Hi. if (* double click some device => Services tab => double click some service => Notifications tab is specified ) service settings will be used, else if (* double click some device => Polling tab is specified ) device settings will be used, else if (* Settings button on the Map settings menu => Po...
by gsandul
Mon Apr 26, 2010 2:33 pm
Forum: The Dude
Topic: Dude Agents initiating connections to to Dude Server
Replies: 3
Views: 1603

Re: Dude Agents initiating connections to to Dude Server

SSL secured Dude connections are secure enough, IMO Are they SSL secured? I gues - not. Connections are secured, but not using SSL. Do you believe SSL connections to Dude web server are secured by default? Again not, till you will not change the certificate.pem to certificate generated by yourself.
by gsandul
Wed Apr 21, 2010 1:48 pm
Forum: The Dude
Topic: Dude Agents initiating connections to to Dude Server
Replies: 3
Views: 1603

Re: Dude Agents initiating connections to to Dude Server

You should post it in "Vote for new DUDE features!" As a solution you can use, for examle, openvpn to make your agents connect to centrlal openvpn server (probably on the same server the Dude is running) and to get predefined IP addresses. Also the dude server will contact agents in more s...
by gsandul
Wed Apr 21, 2010 11:51 am
Forum: The Dude
Topic: How to pass parameters to a function
Replies: 10
Views: 9451

Re: How to pass parameters to a function

Currently there is no way to pass params to function.
by gsandul
Tue Apr 20, 2010 10:03 am
Forum: The Dude
Topic: How to setup alert for CPU % monitoring?
Replies: 6
Views: 3444

Re: How to setup alert for CPU % monitoring?

Hi, lebowski. does it alerts you? Cisco_CPU_available array_size(oid_column("1.3.6.1.4.1.9.2.1.57", 10, 29)) if(or(Cisco_CPU_available()<>"", Cisco_CPU_available()>95), "","CPU Problem") Cisco_CPU_available always will return 1. The correct solution should be ...
by gsandul
Mon Apr 19, 2010 9:51 am
Forum: The Dude
Topic: sending AT commands via terminal/putty
Replies: 6
Views: 4414

Re: sending AT commands via terminal/putty

But if I put the same string in the mail notification body, it just sends the oid("1.2.2....") in the mail but not the value of that oid You do not need to put it in mail notification body. You have to put it in probe, and when notification will be generated it will apear as [Service.Prob...
by gsandul
Fri Apr 16, 2010 2:05 pm
Forum: The Dude
Topic: sending AT commands via terminal/putty
Replies: 6
Views: 4414

Re: sending AT commands via terminal/putty

dirkhaex:
now I want so send the oid value of our temperature sensor via sms, how can I add the OID value into the body of a mail notification?
Check this
http://forum.mikrotik.com/viewtopic.php?f=8&t=37432
by gsandul
Thu Apr 15, 2010 11:20 am
Forum: The Dude
Topic: sending AT commands via terminal/putty
Replies: 6
Views: 4414

Re: sending AT commands via terminal/putty

Instead of sending AT commands you can use smsd to send SMS.
by gsandul
Fri Mar 19, 2010 3:24 pm
Forum: The Dude
Topic: Beginner needs help with The Dude 3.5
Replies: 2
Views: 1609

Re: Beginner needs help with The Dude 3.5

You can make devices dependend of each other. Let say, you have a router, it goes down and any server behind it should be seen as down. To avoid many alerts for any server you can make servers depended on router and when router will be down servers behid it will be in unknown state, and the will be ...
by gsandul
Thu Mar 11, 2010 9:17 am
Forum: The Dude
Topic: syslog messages are always forwarded as Local7.Debug
Replies: 6
Views: 4044

Re: syslog messages are always forwarded as Local7.Debug

You can create custom notifications. For example notification.JPG and this notification you can map to a service. When the service will change the state syslog message will be generated and you will receive message on syslog server with Local0.warning, if you need to receive for example Local0.err f...
by gsandul
Fri Mar 05, 2010 9:55 am
Forum: The Dude
Topic: syslog messages are always forwarded as Local7.Debug
Replies: 6
Views: 4044

Re: syslog messages are always forwarded as Local7.Debug

You can do it. To specify different priority you must send it at the begining of the syslog message. Acording to syslog message format priority is a number in <> at the begining of message. For example if you need to set priority as local0.warning you must create notification as follows <?xml versio...
by gsandul
Wed Mar 03, 2010 9:58 am
Forum: The Dude
Topic: error 1053 restarting the dude server
Replies: 3
Views: 2497

Re: error 1053 restarting the dude server

Confirm, http and https server stops ones in a few weeks, all the other functions run fine. In such a situations you can open login prompt in web brouser, but can not authentificate.
The solution is to disable/enable Web Access in server configuration.
by gsandul
Mon Jan 11, 2010 2:39 pm
Forum: The Dude
Topic: Notifications to a text file
Replies: 3
Views: 1510

Re: Notifications to a text file

Hi, boom132 You can do it using cmd file 1) create it: just put 1 line echo %1 >> c:\myfile.txt in C:\dudescript\echo.cmd 2) paste XML in your notifications <?xml version="1.0" ?> <dude version="3.4"> <Notification> <sys-type>24</sys-type> <sys-id>2443445</sys-id> <sys-name>Echo ...
by gsandul
Wed Jan 06, 2010 3:14 pm
Forum: The Dude
Topic: Gaps in graphs... just FYI.
Replies: 20
Views: 7776

Re: Gaps in graphs... just FYI.

Hi, sweetdude. 1) How many probes do you have? Currently I have about 300 services monitored, about 50 SNMP links and about 100 different functions displayed on devices and have no problem with devices, but had to setup 5000 ms SNMP timeout for windows servers. 2) It is possible, the problem is not ...
by gsandul
Mon Dec 28, 2009 11:49 am
Forum: The Dude
Topic: How does one monitor failover ospf links???
Replies: 2
Views: 1764

Re: How does one monitor failover ospf links???

There are at least 2 ways to monitor such a link 1) If your device can send syslog messages when route changes you can use dude syslog server and alert when such a message received. 2) You can check the routing table at the devices. In normal situation the next hope for route will be one, if the mai...
by gsandul
Fri Dec 25, 2009 1:16 pm
Forum: The Dude
Topic: network map with switch ports?
Replies: 2
Views: 1497

Re: network map with switch ports?

It is possible. You should enable SNMP on switch and at least 1 or 2 servers. Then you can scan your network and it will map workstation to switch port and will make link with current interface rate.
Just play with scan options.
by gsandul
Wed Dec 16, 2009 9:59 am
Forum: The Dude
Topic: SIP probe?
Replies: 2
Views: 3070

Re: SIP probe?

Sweetdude, the problem is in SIP protocol implementation. There are symetric SIP Proxy servers and UA, and asymetric. Symetric respond to SIP request from the same UDP port they receive SIP message (by default 5060), asymetric may respond from any UDP port. In any case, the responce may be generated...
by gsandul
Wed Dec 16, 2009 9:21 am
Forum: The Dude
Topic: Notifications
Replies: 2
Views: 1301

Re: Notifications

It's funny question. The problem is: when you open device properties the mouse cursor is over the e-mail notification and it if it was unchecked it becomes checked :). Try to resize device properties window or move device in a different place on the map and problem will be solved :). Ones, I had spe...
by gsandul
Tue Dec 15, 2009 5:19 pm
Forum: The Dude
Topic: oids in notifications
Replies: 15
Views: 7391

Re: oids in notifications

The solution is simple using the functions <?xml version="1.0" ?> <dude version="3.4"> <Function> <sys-type>57</sys-type> <sys-id>1345886</sys-id> <sys-name>If_1_Status</sys-name> <code>oid_raw("1.3.6.1.2.1.2.2.1.8.1")</code> <descr>**** Check the status of interface nu...
by gsandul
Tue Oct 20, 2009 9:21 am
Forum: The Dude
Topic: Probe Thread
Replies: 339
Views: 413866

Re: Probe Thread

ArielGonz
I have 5 Access Servers 5350 and 5400 with many E1 PRIs, and it works fine for all of it.
I do not have 28xx at the moment, so, can not help :(
All I can say, my AS function like PSTN gateways, not as a Call Manager Express
by gsandul
Mon Oct 19, 2009 2:51 pm
Forum: The Dude
Topic: Scheduled polling
Replies: 1
Views: 1003

Re: Scheduled polling

Hi, Eben. Currently there is no way to do sheduled check on service using Dude itself. But, if you have Unix like host with snmpd running on, it is easy to do. You may create your own OID in snmpd.conf For example add the following line in snmpd.conf exec .1.3.6.1.4.1.2021.50 1 /bin/cat /tmp/damon a...
by gsandul
Mon Oct 19, 2009 1:51 pm
Forum: The Dude
Topic: Probe Thread
Replies: 339
Views: 413866

Re: Probe Thread

Hi, ArielGonz You should use different oid Check this http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?objectInput=1.3.6.1.4.1.9.10.19.1.1.9.1.3&translate=Translate&submitValue=SUBMIT&submitClicked=true if you wish to count for every DS1 (PRI line) or this http://tools.cisco.com/Suppo...