Community discussions

  • 1
  • 2
  • 3
  • 4
  • 5
  • 7
 
lebowski
Forum Guru
Forum Guru
Posts: 1616
Joined: Wed Aug 27, 2008 5:17 pm

Re: Probe Thread

Tue Jul 28, 2009 12:59 am

Maybe they are using the other "HC" counters? 1.3.6.1.2.1.31.1.1.1.X But I don't think they do... but you may want to anyhow for 10gb

AND/Or Give this a shot since it looks more accurate!!
http://www.flukenetworks.com/fnet/en-us ... EtherScope

HTH
SD

Edit; I still don't know how you determine your "TIME", you need to calculate how many packets over a given peroid to determine % of utilization. You may be able to divide by 30 to get the average utilization over the 30 seconds between each probe interval? But if the octet counter just counts up you need to know what the values were 30 seconds ago as well.
 
jredmond
just joined
Posts: 1
Joined: Fri Jul 31, 2009 4:29 pm

Re: Probe Thread

Fri Jul 31, 2009 4:48 pm

I am new to The Dude. The software seems to monitor most of what I want but I have come across a few situations I can not monitor. One of them is the Barracuda Spam Firewall 300 I inherited. No SNMP on this low end version but the information is available from http://cuda.ip/cgi-bin/stats.cgi

This returns the following:
0 0 43 1 140 34 75 3957 26 7177 31 7445743 3230 5287 9481 235651 7989954 4851 0 4 9 83 4999 438 0 1 1 14 454 58 0 677 0 0 2 52 31 0 578 0 0 1 37 0 0 507 0 0 1 29 0 0 454 0 0 1 36 0 0 480 0 0 0 32 0 0 340 0 0 8 25 0 0 380 0 1 0 18 34 0 468 0 0 2 6 42 0 480 0 1 2 6 0 0 353 0 0 0 7 0 1 433 0 0 0 10 0 0 443 0 0 0 6 0 0 399 0 0 2 6 0 0 362 0 0 0 2 0 0 350 0 0 0 0 0 0 437 0 0 0 1 0 0 386 0 1 1 2 0 0 433 0 0 0 5 0 0 467 0 0 0 0 0 0 415 0 0 1 4 0 0 474 0 0 2 6 0 0 473 0 1 2 19 52 0 611 0 1 2 30 0 0 438 0 1 1 14 359 1 9146 0 0 1 59 35 3 9073 0 0 4 66 300 0 9973 0 0 30 398 110 0 8544 0 4 42 531 169 0 9578 0 2 41 442 445 4 10113 0 5 66 570 165 1 9656 0 5 24 397 137 2 9868 0 6 4 26 203 20 9207 0 5 5 54 142 17 10050 0 7 26 325 100 0 9308 0 2 30 491 205 6 10208 0 12 43 411 166 1 10539 0 3 64 391 141 1 10368 0 7 34 306 261 14 9303 0 3 9 63 180 1 8264 0 3 12 106 240 2 10569 0 4 42 422 0 3 9331 0 3 32 425 201 12 9735 0 4 44 429 124 2 9709 0 6 35 467 135 1 10502 0 9 21 355 125 0 9344 0 7 8 71 73 3 8467 1 2 6 63 347 0 10509 0 6 21 346 193 3 9061 0 4 31 390 43 1 10810 0 1 23 366 405 1 11300 0 5 27 413 52 0 4846 0 4 9 83

A bit of comparing this data with the stats screen in the unit and the fields are able to be guessed. eg: field 11 is the temp in Celsius (31).

Is there a way to parse the individual fields out to create probes for this information?

Thanks for any help.

JR
 
flares2
just joined
Posts: 15
Joined: Mon Jul 27, 2009 9:26 pm

Re: Probe Thread

Mon Aug 03, 2009 9:43 pm

Thanks for the tip Sweetdude. The algorithm from Fluke gave more stable numbers, yet they still didn't line up with the bandwidth usage reflected by the Dude or the Optiview.

To get the bandwidth displayed in the links between devices the Dude uses the delta of sent/received octets multiplied by 8 averaging over each second of collected data.

Is there no way use that same formula in a function or probe?
 
lebowski
Forum Guru
Forum Guru
Posts: 1616
Joined: Wed Aug 27, 2008 5:17 pm

Re: Probe Thread

Tue Aug 04, 2009 12:02 am

To get the bandwidth displayed in the links between devices the Dude uses the delta of sent/received octets multiplied by 8 averaging over each second of collected data.
Nice to know and I have often wanted to alert on high and or zero utilization but it is not obvious how to do it, like you are finding out.

I looked into data sources but they look like this "serial0/0 (2) @ router1 tx" and I don't know how you would use one in a function or a probe...
Maybe you can figure out how to use a data source in a probe?

All data sources can be seen by selecting chart, make a chart if you don't have one, click on + to add a new chart line then click on the edit all data sources (the "..." button). In there you can see a list of "interface @ devicename tx or rx" which is where I assume that you discovered how exactly the builtin source works.
 
flares2
just joined
Posts: 15
Joined: Mon Jul 27, 2009 9:26 pm

Re: Probe Thread

Tue Aug 04, 2009 5:30 pm

I think we're on the same page Sweetdude. The source code for the Data Source is below. What's racking my brain is that the source code for Probes is almost exactly the same, including the type, id, name, dataID, etc. The only real field that the Data Source has that a probe is missing is the data type.
Though the common consensus around the web is to measure bandwidth by using ((InOctets+OutOctets)*8/Port Speed*100*Polling interval), this fails because the counter does not roll over at each polling interval. To get an accurate reading you need the difference between the counts at the beginning and the end of that interval, ie you need the Delta!
I'm thinking theres two routes of getting this to work. First would be to modify the exported config in a fashion that the probe includes the Data Source and then map that back to the Data IDs in the Round Robin Data. Or, try to find a way to export the counter and then export it again after the polling interval and create a function to get the delta that way.
If I'm out in left field someone let me know, but I can't accept the idea that if the Dude can, in real time, display on the Map or on a Chart the bandwidth usage that it can't be reported/alerted on. I'm striving so hard on this because once I get a formula together for bandwidth usage, this same formula can be applied to any oid using counters.

- <DataSource>
<sys-type>41</sys-type>
<sys-id>105901</sys-id>
<sys-name>A1 (1) @ sw-data-center tx</sys-name>
<dataIDs>105896, 105897, 105898, 105899, 105900</dataIDs>
<type>builtin</type>
<dataType>delta (difference per period)</dataType>
<scale>8.000</scale>
<unit>bit</unit>
<average>second</average>
</DataSource>
 
lebowski
Forum Guru
Forum Guru
Posts: 1616
Joined: Wed Aug 27, 2008 5:17 pm

Re: Probe Thread

Wed Aug 05, 2009 7:10 pm

Yeah that would be a heavy mod of the dude XML and who knows how it would later affect upgrades and such. We really just need the devs to just add support for notification on bandwidth and/or let us work directly with the bandwidth graphing functions in probes. I have considered doing things like modifying the rrd settings for interface graphs directly in the XML then reimporting it so it will keep the intervals longer but I don't want to break my setup :)

Time to ask for another feature and wait some more. The real solution and I hope they eventually do is to make the product GPL License and let the community fix and add all the things that are missing. They have an army of people that want many things added and it could all be done for free.
 
flares2
just joined
Posts: 15
Joined: Mon Jul 27, 2009 9:26 pm

Re: Probe Thread

Fri Aug 07, 2009 4:55 pm

Thought I was onto something. If you do an SNMP Walk and right click on an OID, the option to create Data Source is there and when opening that you see the default is Gauge (Absolute Value) which implies to me that's the value of the counter. You can change that option to Delta to get the difference in polling, but I can't seem to apply this Data Source to the probe. I even went into the source code and found the service with the ProbeID and DataSourceID, changing the DataSourceID to the newly created Data Source, but after importing that back in, it still is looking at the Absolute Value.
 
lebowski
Forum Guru
Forum Guru
Posts: 1616
Joined: Wed Aug 27, 2008 5:17 pm

Re: Probe Thread

Tue Aug 11, 2009 1:20 am

Yeah that is how you make charts which are very nice to look at but you can't generate a notification from a chart counter ;(
These are all the functions I tried today.
This seemed promissing... I figure I will have to add packets later to make it more accurate.
rate(((oid("1.3.6.1.2.1.2.2.1.10.1")+oid("1.3.6.1.2.1.2.2.1.16.1"))*8*10000/oid("1.3.6.1.2.1.2.2.1.5.1")),30)
I multiplied by 10k so the very tiny utilization would at least show up.

This gives a high spike... every once in a while doesn't correlate with utilization.
rate((oid("1.3.6.1.2.1.2.2.1.10.5007")+oid("1.3.6.1.2.1.2.2.1.16.5007")),30)

trying this for a little while. will see how it goes.
rate((bitrate(oid("1.3.6.1.2.1.2.2.1.10.5007"))+ bitrate(oid("1.3.6.1.2.1.2.2.1.16.5007"))),30)

You know you can place something like this directly on a device label to see the actual value...
[rate((bitrate(oid("1.3.6.1.2.1.2.2.1.10.5007"))+ bitrate(oid("1.3.6.1.2.1.2.2.1.16.5007"))),30)]
The above one gives the exact same number as rate with out the bitrate number conversion.
 
flares2
just joined
Posts: 15
Joined: Mon Jul 27, 2009 9:26 pm

Re: Probe Thread

Tue Aug 11, 2009 5:41 pm

Yeah, I looked into the Rate function and figured it would be a big help, maybe I'm doing something wrong because any time I use that function the result is 0. I tried the same formulas you listed and each one with the Rate function just shows zero in the device label.
 
lebowski
Forum Guru
Forum Guru
Posts: 1616
Joined: Wed Aug 27, 2008 5:17 pm

Re: Probe Thread

Fri Sep 11, 2009 12:33 am

Finally after hours of jacking around with the formula I have what seems like an accurate utilization indicator.
Function:
utilizationG0 - Return total utilization on g0/0
string_substring((((rate(oid("1.3.6.1.2.1.2.2.1.10.1")+oid("1.3.6.1.2.1.2.2.1.16.1"))/oid("1.3.6.1.2.1.2.2.1.5.1"))*100)*8),0,4)

This will return the utilization on interface g0/0 of a cisco 2800 router.
You will need to place the correct oid in the function to get utilization on other interfaces.

I also verified it against the actual mbps and the individual rx and tx load percentage... Now you can easily use it to send a notification if utilization is over a certain value with a probe. The only trouble is you have to hand make each function for the interface you are interested in.

Here are the individual tx and rx probes for comparison...
string_substring((((rate(oid("1.3.6.1.2.1.2.2.1.16.1"))/oid("1.3.6.1.2.1.2.2.1.5.1"))*100)*8),0,4)
string_substring((((rate(oid("1.3.6.1.2.1.2.2.1.10.1"))/oid("1.3.6.1.2.1.2.2.1.5.1"))*100)*8),0,4)
utilization.jpg
the value of 1.06 for rx is ~ = 10.4 mbps which would be 1.04% utilization
the value of .13 for tx is ~ = 1.3 mbps which would be .13% utilization
the value of 1.19 is tx and rx added together but calculated seperately and came up with the correct total...
The reason the link speed and the utilization label are slightly off is they are being collected a few seconds apart.

Keep in mind that a full duplex interface is actually capable of twice the speed if you use "total utilization" to create notifications. Total utilization should be able to go to 200 max or you migth want to devide the entire formula by 2. I think I would use rx and tx seperately then generate seperate notifications.
You do not have the required permissions to view the files attached to this post.
 
pjulian
Member Candidate
Member Candidate
Posts: 267
Joined: Mon May 31, 2004 12:16 pm
Location: Sydney, Australia

Re: Probe Thread

Fri Sep 11, 2009 2:18 pm

Very nice, quite a useful piece of information there, thanks.

Regards
Paul
 
tristan.bolton
just joined
Posts: 12
Joined: Fri Jun 15, 2007 7:45 am

Re: Probe Thread

Tue Sep 15, 2009 7:12 pm

Hey,

I'm trying to create a probe that monitors a function and considers it "down" if the value changes from the last probe.

So if I'm monitoring Function "X" and it is replying with the number 2 then the next time the probe checks Function "X" and the number is 3 or 1 then it considers it down and pages the technician.

Also if I use the same probe on another device and the first time it runs Function "X" it get the number 5, so I now want it to page me if that number ever changes.

I have the function working, just can't see how to make a probe compare current results with the last result.

Thanks for the help!
 
lebowski
Forum Guru
Forum Guru
Posts: 1616
Joined: Wed Aug 27, 2008 5:17 pm

Re: Probe Thread

Wed Sep 16, 2009 1:21 am

Can you post your current probe? What is the device the probe is working on? A cisco switch or a UPS? Maybe someone with the same type of device can help or even wants the same probe :)

edit: OTOH you can create a probe to expect one value and if it changes it will notifiy, snmpwalk the device you are wanting the probe for, select the oid, right click and select create probe - the problem here is this creates a probe to verify that the result is equal to X only and doesn't compare the previous result with the current.

Otherwise you might be able to use rate and generate an error based on some formula... You could create two probes one that notifies if the rate changes up and one for changes down.

This goes back to we need to learn how to use variables in probes if they exist or they need to add a variable so you can just assign your oid to a variable and test instead of dreaming up new ways to do things...
 
tristan.bolton
just joined
Posts: 12
Joined: Fri Jun 15, 2007 7:45 am

Re: Probe Thread

Wed Sep 16, 2009 3:13 am

Hey,

I'll show what I'm doing right now.

I have a function that monitors my OSPF Neighbor's

Function
Name: NC
Code: ros_command("/routing ospf neighbor print count")

Probe

Image


I know the probe isn't really doing anything right now. I'm just not 100% sure how to write the check.

Thanks for your help
 
lebowski
Forum Guru
Forum Guru
Posts: 1616
Joined: Wed Aug 27, 2008 5:17 pm

Re: Probe Thread

Mon Sep 21, 2009 5:48 pm

Yeah, I see what your trying to do now. Sorry for the delay on the reply took some time off.

The trouble I see is that you may have 3 ospf paths on one router and 2 on another so you will need to make a few probes instead of one that does everything.

You will be able to use one function for the probes though.

So create as many probes as you need and manually add them based on the number of OSPF routes that the command returns.
For example you have a router with 2 OSPF routes and a router with 3 OSPF routes. So on the 2 OSPF router you would put the probe named ospf_two for the router with 3 OSFP routes place the probe named ospf_three on it.

For the probe named ospf_two on the error line put;
if (NC() < 2, "", "route missing")
For the probe named ospf_three on the error line put;
if (NC() < 3, "", "route missing")
and so on...

Sure I have not tested this so the formula/systax may be incorrect but I think you get the idea.

HTH
SD
 
tristan.bolton
just joined
Posts: 12
Joined: Fri Jun 15, 2007 7:45 am

Re: Probe Thread

Mon Sep 21, 2009 7:50 pm

Hey,

Yea, I thought about doing it that way. Not the most pretty way of doing it but it works.

It would be nice if there was a way to create a probe and for it to check the value based on the previous check.

Oh well, I'll do it that way for now.

Thanks
 
oakie
just joined
Posts: 10
Joined: Wed Sep 30, 2009 2:19 pm

Re: Probe Thread

Thu Oct 01, 2009 2:38 pm

Hi, may be stupid question, but how to create probe to test running ntp server? I mean network time protocol, not nntp - Network News Transfer Protocol (this probe is already prepared in dude). Of course, i know that UDP, port 123, but what should be in send/receive columns? Thanks for help ...
 
sutjipto
just joined
Posts: 1
Joined: Thu Jun 07, 2007 6:17 am

Re: Probe Thread

Fri Oct 02, 2009 12:28 pm

Yes, same question here, how can we add a new probe for checking running NTP (Network Time Protocol) service in Dude ?
Is it correct, just by using a Connect Only service check on TCP Port 123 ?
(If using UDP, there is no option for Connect Only check)
Please advise, thank you.
 
lebowski
Forum Guru
Forum Guru
Posts: 1616
Joined: Wed Aug 27, 2008 5:17 pm

Re: Probe Thread

Mon Oct 05, 2009 5:53 pm

Here try this... [edit] This worked on a Cisco 2800 router and not a 6509. it doesn't seem to work on a windows server. Probably need more of the actual protocol in the send message to get it to work with other devices. I'll work on it some more later.
ntp.png
HTH,
SD
You do not have the required permissions to view the files attached to this post.
Last edited by lebowski on Mon Oct 05, 2009 6:03 pm, edited 1 time in total.
 
oakie
just joined
Posts: 10
Joined: Wed Sep 30, 2009 2:19 pm

Re: Probe Thread

Mon Oct 05, 2009 6:03 pm

2 sweetdude - thanks, seems functional ;-)
 
ArielGonz
just joined
Posts: 3
Joined: Sat Oct 17, 2009 12:43 am

Cisco router, voice gateway usage

Sat Oct 17, 2009 12:56 am

We use a Cisco 2821 router to terminate our T1 PRI on Serial0/3/0. I was interested in graphing the usage of this line, to determine how many of the 23 channels were in use during the day. Some of the webpages that helped me were:
PRI usage SNMP
Equivalent MIB Objects for VoIP show Commands
Voice Call Tuning

--- Function---
Name: calls_active
Code: array_size(oid_column("1.3.6.1.4.1.9.9.63.1.3.1.1.1"))

--- Probe ---
Available: calls_active() > -1
Error: if(calls_active() > -1, "", "down")
Value: calls_active()
Unit: calls
Rate: none

I know some of these are a hack, such as the Available slot, but I don't know how to determine if the router has a voice connection available or not.
 
User avatar
gsandul
Member Candidate
Member Candidate
Posts: 154
Joined: Mon Oct 19, 2009 1:42 pm

Re: Probe Thread

Mon Oct 19, 2009 1:51 pm

Hi, ArielGonz
You should use different oid
Check this
http://tools.cisco.com/Support/SNMP/do/ ... icked=true
if you wish to count for every DS1 (PRI line)
or this
http://tools.cisco.com/Support/SNMP/do/ ... 0.19.1.1.4
if you wish to count for total active DS0 on all DS1's
 
ArielGonz
just joined
Posts: 3
Joined: Sat Oct 17, 2009 12:43 am

Re: Probe Thread

Mon Oct 19, 2009 6:06 pm

Gsandul,

For some reason, both those OIDs always return 0 for me. Maybe my PRI is configured differently? Here are some of the relevant lines from the running config:
network-clock-participate wic 3
network-clock-select 1 T1 0/3/0
!
controller T1 0/3/0
 framing esf
 linecode b8zs
 pri-group timeslots 1-24 service mgcp
!
interface Serial0/3/0:23
 no ip address
 isdn switch-type primary-ni
 isdn incoming-voice voice
 isdn map address 011* plan unknown type unknown
 isdn bind-l3 ccm-manager
 no cdp enable
!
voice-port 0/3/0:23
!
Thanks for the information though!
 
lebowski
Forum Guru
Forum Guru
Posts: 1616
Joined: Wed Aug 27, 2008 5:17 pm

Re: Probe Thread

Mon Oct 19, 2009 7:07 pm

@ArielGonz

Cisco has a bug, in the 2800 code, on a 3945 it works just fine but on the 2800 the OID returns 0. :(

They didn't say they were going to fix it. The only oid returned is for the first t1 card in the box.
If you can move the card in the router then you can get it.

I have done what you are trying to do and you can put the total calls on the label of the router (in the appearance for the device).
Active Calls: [oid("1.3.6.1.4.1.9.10.19.1.1.4.0")]

There is probably a way to programatically count the calls but I have not tried it.
I didn't have time to do a full writeup but here is the oids from my 3945.
Calls:[oid("1.3.6.1.4.1.9.10.19.1.1.9.1.3.1.0")]
Calls:[oid("1.3.6.1.4.1.9.10.19.1.1.9.1.3.1.1")]
Calls:[oid("1.3.6.1.4.1.9.10.19.1.1.9.1.3.2.0")]
Calls:[oid("1.3.6.1.4.1.9.10.19.1.1.9.1.3.2.1")]

And the two oids from the 2800
Calls:[oid("1.3.6.1.4.1.9.10.19.1.1.9.1.3.0.0")] - ds1
Calls:[oid("1.3.6.1.4.1.9.10.19.1.1.9.1.3.0.1")] - ds1
There are 2 more cards in the 2800 but doing an snmp walk starting from 1.3.6.1.4.1.9.10.19.1.1.9.1 only has the first card where the 3945 shows all of them...

HTH,
SD
 
User avatar
gsandul
Member Candidate
Member Candidate
Posts: 154
Joined: Mon Oct 19, 2009 1:42 pm

Re: Probe Thread

Tue Oct 20, 2009 9:21 am

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
 
Prewest
just joined
Posts: 12
Joined: Tue Oct 20, 2009 3:35 pm

Re: Probe Thread

Sun Oct 25, 2009 6:53 pm

probes/functions for HP laserjet printers which warns when the specified toner reaches 15% or less:

function:
name: toner1
code: string_substring(oid("1.3.6.1.2.1.43.11.1.1.9.1.1")/oid("1.3.6.1.2.1.43.11.1.1.8.1.1"),0,4)*100

probe:

name: HP Printer toner 1
available: toner1()
error: if(toner1() > 15, "", "Toner Zwart @ 15%")
value: toner1()
unit: %

same goes for toner 2 / 3 / 4 where the last number of the OID specifies the toner number.
toner 3 OID will be: 1.3.6.1.2.1.43.11.1.1.9.1.3 & 1.3.6.1.2.1.43.11.1.1.8.1.3 which you will have to change in the function.

toner 1 = black
toner 2 = cyaan
toner 3 = magenta
toner 4 = yellow

code for displaying it on the map in %:

Toner Zwart: [string_substring(oid("1.3.6.1.2.1.43.11.1.1.9.1.1")/oid("1.3.6.1.2.1.43.11.1.1.8.1.1"),1,4)*100]%
Toner Cyaan: [string_substring(oid("1.3.6.1.2.1.43.11.1.1.9.1.2")/oid("1.3.6.1.2.1.43.11.1.1.8.1.2"),1,4)*100]%
Toner Magenta: [string_substring(oid("1.3.6.1.2.1.43.11.1.1.9.1.3")/oid("1.3.6.1.2.1.43.11.1.1.8.1.3"),1,4)*100]%
Toner Geel: [string_substring(oid("1.3.6.1.2.1.43.11.1.1.9.1.4")/oid("1.3.6.1.2.1.43.11.1.1.8.1.4"),1,4)*100]%
 
COELPL
just joined
Posts: 22
Joined: Wed Aug 15, 2007 10:16 pm

Re: Probe Thread

Wed Dec 16, 2009 11:51 pm

Hello guys. I have a little problem with Dude and ping probe. My network is big and little strange, but in most cases we are using static routing (forwarding) and AP and STATION modes. Pings between devices are good, but almost every first ping is much bigger than the rest. For example:

Image
Image

It's not so important, but we are using Dude and it show insane pings. Example:

Image

Pings of that connection are above - stable 2ms.

Any ideas? I don't want to change anything in my network. First-ping-issue doesn't bother me at all, but I want to change ping probe in Dude. Any ideas? Maybe somebody can help me?

Best regards from Poland,

Kuba

PS. We have about 2000 devices in our network. About 120 MT devices, the rest are in most cases linux Wisp routers. There are at most 50-60 devices in each subnet, no PC's, only routers nad switches.
 
lebowski
Forum Guru
Forum Guru
Posts: 1616
Joined: Wed Aug 27, 2008 5:17 pm

cisco Interface description in Notification

Thu Dec 17, 2009 1:35 am

Thanks to gsandul for posting how to get the description of the interface in the notification when an interface goes down... I am just copying it from another post.

<?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 number 1</descr>
</Function>
</dude>

<?xml version="1.0" ?>
<dude version="3.4">
<Function>
<sys-type>57</sys-type>
<sys-id>1345962</sys-id>
<sys-name>If_1_Descr</sys-name>
<code>oid("1.3.6.1.2.1.2.2.1.2.1")</code>
<descr>**** Description of an interface</descr>
</Function>
</dude>


<?xml version="1.0" ?>
<dude version="3.4">
<Probe>
<sys-type>13</sys-type>
<sys-id>1345894</sys-id>
<sys-name>If_1_Status</sys-name>
<typeID>8</typeID>
<functionAvailable>If_1_Status()</functionAvailable>
<functionError>if (If_1_Status() = 1, "", concatenate(" Warning Interface ", If_1_Descr(), " is down"))</functionError>
<functionValue>If_1_Status()</functionValue>
</Probe>
</dude>

Note: You should create 2 functions and 1 probe for each monitored interface index.
it looks annoying if you have to monitor many oids, but you can change oids and funtions names directly in XML and then copy-paste it in functions or probes.

You also may avoid second function, then the probe will look like
<?xml version="1.0" ?>
<dude version="3.4">
<Probe>
<sys-type>13</sys-type>
<sys-id>1345894</sys-id>
<sys-name>If_1_Status</sys-name>
<typeID>8</typeID>
<functionAvailable>If_1_Status()</functionAvailable>
<functionError>if (If_1_Status() = 1, "", concatenate(" Warning Interface ", oid("1.3.6.1.2.1.2.2.1.2.1") , " is down"))</functionError>
<functionValue>If_1_Status()</functionValue>
</Probe>
</dude>


If a function probe doesn't work you can try OID_RAW !!!
oid("1.3.6.1.2.1.2.2.1.8.1") it returns string "up (1)"
oid_raw("1.3.6.1.2.1.2.2.1.8.1") returns 1

Thanks again gsandul excellent work.
 
gmsmstr
Trainer
Trainer
Posts: 940
Joined: Fri Jun 04, 2004 2:22 am
Location: St. Louis, MO
Contact:

Re: Probe Thread

Mon Dec 28, 2009 9:09 pm

What about connecdtions on a specific port ?
Dennis Burgess, MCTCE, MTCNA, MCTCTE, MTCWE, MTCNIE, A+, N+, MCP, MTCSE Mikrotik Certified Consultant / Trainer
Need Mikrotik Support: http://www.linktechs.net -- Link Technologies, Inc.
-- Author of "Learn RouterOS: Second Edition"
 
lebowski
Forum Guru
Forum Guru
Posts: 1616
Joined: Wed Aug 27, 2008 5:17 pm

Re: Probe Thread - fixed apc ups load test

Mon Jan 04, 2010 11:37 pm

And more detail on making good probes...

First when creating a new probe if you are using auto discovery of services you should always use a function in the availability line to determine if the OID exists on the device you are discovering. Otherwise the probe will get added to devices that don't even have that specific OID.

Next you might need to and/or some other values to correctly detect issues. For example;
My previous APC UPS load probe would never be detected as down.

Many hand made probes probably have this issue.
If the OID is being tested as less than some value it will never be detected as down since nothing is less than 95.
The following error line will not be detected as down when the device is down.
if(oid("1.3.6.1.4.1.318.1.1.1.4.2.3.0")<95,"",error)

This is not the case when an OID is being tested as greater than since nothing is not greater than 95.
if(oid("1.3.6.1.4.1.318.1.1.1.4.2.3.0")>95,"",error)

So when trying to make sure something is less than and is not blank or down use the following style in your error line.
if(and(oid("1.3.6.1.4.1.318.1.1.1.4.2.3.0")<>"", oid("1.3.6.1.4.1.318.1.1.1.4.2.3.0")<95), "","UPS Load trouble")
in english - if oid is not blank and not less than 95 report trouble...

Here are screen shots of the fixed function and probe.
funcload.png
load.png
HTH
SD
You do not have the required permissions to view the files attached to this post.
 
Networkolator
just joined
Posts: 1
Joined: Fri Jan 15, 2010 5:08 pm

Re: Probe Thread

Fri Jan 15, 2010 5:24 pm

Hi everyone,

I'm new to the Dude too and I'm trying to set up the win_diskc_free_percent probe as defined by pjulian Feb.10.2009 in this thread. I have the SNMP community defined correctly and I can do an SNMP walk from The Dude to my servers. I created the function exactly as pjulian describes and same for the probes. Doesn't work for the MB or % probe. It applies the probe but always shows as 'down' for all servers meaning the disk space is low even though it is not. I'm using The Dude v3.5 and have all Dell poweredge servers.

Can anyone shed some light on why this isn't working for me? I would be very appreciative.

Thank you!

BTW - very cool tool this Dude, if only I can get this working...
 
marcopolo
newbie
Posts: 45
Joined: Wed Feb 03, 2010 7:17 pm

Re: Probe Thread

Thu Feb 04, 2010 2:53 pm

Hi everyone,

I'm new to the Dude too and I'm trying to set up the win_diskc_free_percent probe as defined by pjulian Feb.10.2009 in this thread. I have the SNMP community defined correctly and I can do an SNMP walk from The Dude to my servers. I created the function exactly as pjulian describes and same for the probes. Doesn't work for the MB or % probe. It applies the probe but always shows as 'down' for all servers meaning the disk space is low even though it is not. I'm using The Dude v3.5 and have all Dell poweredge servers.

Can anyone shed some light on why this isn't working for me? I would be very appreciative.

Thank you!

BTW - very cool tool this Dude, if only I can get this working...
Me too, cool probe by Julian, though I guess you would need to identify the oid for your servers, right?. Since it didn't matter what device used the probe, everything failed when they indeed had 40GB free

I'm in the same boat as you, but also trying to fathom which oid to pickup from the snmpwalk

Thanks,

Mark
 
Biggz
just joined
Posts: 1
Joined: Fri Feb 26, 2010 12:45 pm

Re: Probe Thread

Fri Feb 26, 2010 12:50 pm

The previous win_discc_free function works fine for me.

The server that I am connecting to is Windows Server 2003 R2. I'll try it with a Windows 2008 server and report back.
 
User avatar
blackpaw
newbie
Posts: 37
Joined: Thu Jan 28, 2010 7:19 pm
Location: Amsterdam, NL

HP/XEROX workcentre toner and paper levels

Tue May 04, 2010 11:06 am

Because I was tired of running after printers that run out of toner and/or paper (and people calling me for not fixing this) I created the following probes/functions to help me with that :)
Monitoring toner and paper levels for me and warning me if one drops below 10% (the paper level has only 5 sensors, it seems, 100,75,50,25 and empty but even that helps (see attachment for appearance)

It even polls the name of the Toner/Paper tray by SNMP and puts it in the Error Description so you can use it in automatic alarms (email, etc...)

first create some functions to poll the toner levels, paper levels and the maintenance kit's (drum) condition:
<?xml version="1.0" ?>
<dude version="3.6">
<Function>
<sys-type>57</sys-type>
<sys-name>toner1</sys-name>
<code>string_substring(oid("1.3.6.1.2.1.43.11.1.1.9.1.1")/oid("1.3.6.1.2.1.43.11.1.1.8.1.1"),0,4)*100</code>
<descr>the first toner index for HP Laserjet and XEROX Workcentre (usually black)</descr>
</Function>
<Function>
<sys-type>57</sys-type>
<sys-name>toner2</sys-name>
<code>string_substring(oid("1.3.6.1.2.1.43.11.1.1.9.1.2")/oid("1.3.6.1.2.1.43.11.1.1.8.1.2"),0,4)*100</code>
<descr>the second toner index for HP Laserjet and XEROX Workcentre (usually yellow, for XEROX Phaser4510 it's the Maintenance Kit status</descr>
</Function>
<Function>
<sys-type>57</sys-type>
<sys-name>toner3</sys-name>
<code>string_substring(oid("1.3.6.1.2.1.43.11.1.1.9.1.3")/oid("1.3.6.1.2.1.43.11.1.1.8.1.3"),0,4)*100</code>
<descr>the third toner index for HP Laserjet and XEROX Workcentre (usually magenta)</descr>
</Function>
<Function>
<sys-type>57</sys-type>
<sys-name>toner4</sys-name>
<code>string_substring(oid("1.3.6.1.2.1.43.11.1.1.9.1.4")/oid("1.3.6.1.2.1.43.11.1.1.8.1.4"),0,4)*100</code>
<descr>the fourth toner index for HP Laserjet and XEROX Workcentre (usually cyan)</descr>
</Function>
<Function>
<sys-type>57</sys-type>
<sys-name>xerox_drum</sys-name>
<code>string_substring(oid("1.3.6.1.2.1.43.11.1.1.9.1.24")/oid("1.3.6.1.2.1.43.11.1.1.8.1.24"),0,4)*100</code>
<descr>calculates the remaining life for the drum cartridge for XEROX Workcentre printers</descr>
</Function>
<Function>
<sys-type>57</sys-type>
<sys-name>paper1</sys-name>
<code>string_substring(oid("1.3.6.1.2.1.43.8.2.1.10.1.1")/oid("1.3.6.1.2.1.43.8.2.1.9.1.1"),0,4)*100</code>
<descr>the first paper tray for XEROX workcentre (usually A3)</descr>
</Function>
<Function>
<sys-type>57</sys-type>
<sys-name>paper2</sys-name>
<code>string_substring(oid("1.3.6.1.2.1.43.8.2.1.10.1.2")/oid("1.3.6.1.2.1.43.8.2.1.9.1.2"),0,4)*100</code>
<descr>the second paper tray for XEROX workcentre (usually A4)</descr>
</Function>
<Function>
<sys-type>57</sys-type>
<sys-name>paper3</sys-name>
<code>string_substring(oid("1.3.6.1.2.1.43.8.2.1.10.1.3")/oid("1.3.6.1.2.1.43.8.2.1.9.1.3"),0,4)*100</code>
<descr>the third paper tray for XEROX workcentre (usually A4)</descr>
</Function>
</dude>
Now make the probes:
<?xml version="1.0" ?>
<dude version="3.6">
<Probe>
<sys-type>13</sys-type>
<sys-name>paper_1</sys-name>
<typeID>8</typeID>
<functionAvailable>paper1()</functionAvailable>
<functionError>if (paper1() > 0, "" , concatenate("PAPER " ,oid("1.3.6.1.2.1.43.8.2.1.13.1.1") , " (", oid("1.3.6.1.2.1.43.8.2.1.12.1.1") , ") is empty" ))</functionError>
<functionValue>paper1()</functionValue>
<functionUnit>%</functionUnit>
</Probe>
<Probe>
<sys-type>13</sys-type>
<sys-name>paper_2</sys-name>
<typeID>8</typeID>
<functionAvailable>paper2()</functionAvailable>
<functionError>if (paper2() > 0, "" , concatenate("PAPER " ,oid("1.3.6.1.2.1.43.8.2.1.13.1.2") , " (", oid("1.3.6.1.2.1.43.8.2.1.12.1.2") , ") is empty" ))</functionError>
<functionValue>paper2()</functionValue>
<functionUnit>%</functionUnit>
</Probe>
<Probe>
<sys-type>13</sys-type>
<sys-name>paper_3</sys-name>
<typeID>8</typeID>
<functionAvailable>paper3()</functionAvailable>
<functionError>if (paper3() > 0, "" , concatenate("PAPER " ,oid("1.3.6.1.2.1.43.8.2.1.13.1.3") , " (", oid("1.3.6.1.2.1.43.8.2.1.12.1.3") , ") is empty" ))</functionError>
<functionValue>paper3()</functionValue>
<functionUnit>%</functionUnit>
</Probe>
<Probe>
<sys-type>13</sys-type>
<sys-name>Toner_1</sys-name>
<typeID>8</typeID>
<functionAvailable>toner1()</functionAvailable>
<functionError>if (toner1() > 10, "" , concatenate(oid("1.3.6.1.2.1.43.11.1.1.6.1.1") , " has less than 10% remaining" ))</functionError>
<functionValue>toner1()</functionValue>
<functionUnit>%</functionUnit>
</Probe>
<Probe>
<sys-type>13</sys-type>
<sys-name>Toner_2</sys-name>
<typeID>8</typeID>
<functionAvailable>toner2()</functionAvailable>
<functionError>if (toner2() > 10, "" , concatenate(oid("1.3.6.1.2.1.43.11.1.1.6.1.2") , " has less than 10% remaining" ))</functionError>
<functionValue>toner2()</functionValue>
<functionUnit>%</functionUnit>
</Probe>
<Probe>
<sys-type>13</sys-type>
<sys-name>Toner_3</sys-name>
<typeID>8</typeID>
<functionAvailable>toner3()</functionAvailable>
<functionError>if (toner3() > 10, "" , concatenate(oid("1.3.6.1.2.1.43.11.1.1.6.1.3") , " has less than 10% remaining" ))</functionError>
<functionValue>toner3()</functionValue>
<functionUnit>%</functionUnit>
</Probe>
<Probe>
<sys-type>13</sys-type>
<sys-name>Toner_4</sys-name>
<typeID>8</typeID>
<functionAvailable>toner4()</functionAvailable>
<functionError>if (toner4() > 10, "" , concatenate(oid("1.3.6.1.2.1.43.11.1.1.6.1.4") , " has less than 10% remaining" ))</functionError>
<functionValue>toner4()</functionValue>
<functionUnit>%</functionUnit>
</Probe>
<Probe>
<sys-type>13</sys-type>
<sys-name>Xerox_Drum</sys-name>
<typeID>8</typeID>
<functionAvailable>xerox_drum()</functionAvailable>
<functionError>if (xerox_drum() > 10, "" , concatenate(oid("1.3.6.1.2.1.43.11.1.1.6.1.24") , " has less than 10% remaining" ))</functionError>
<functionValue>xerox_drum()</functionValue>
<functionUnit>%</functionUnit>
</Probe>
</dude>

To get it to show nicely on the map I put this into "appearance" instead of link levels:
[Device.Name]

Toner levels:
Black: [toner1()]%
Yellow: [toner2()]%
Magenta: [toner3()]%
Cyan: [toner4()]%

Drum Cartridge
Condition: [xerox_drum()]%

Paper Levels:
A3 white: [paper1()]%
A4 white: [paper3()]%
Corp Paper: [paper2()]%


The more I do with the Dude the more I love it!

Thanks to all the contributors! :)
You do not have the required permissions to view the files attached to this post.
life is one of the hardest
 
User avatar
gsandul
Member Candidate
Member Candidate
Posts: 154
Joined: Mon Oct 19, 2009 1:42 pm

Re: Probe Thread

Thu May 13, 2010 1:46 pm

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 retreive it's result using build in function execute.
5. It is easy to access any of WMI functions using simple VBScript.

Let put it all together and create sample function to retreive UserName of user logged on a Windows Host using WMI and put it on device label.

a) Crate script to access WMI and retreive Logged in User name.
'loggeduser.vbs
' Sample VBScript to discover which user is logged on
' Author Guy Thomas and John Eck
' Version 2.5 - December 2005
' -------------------------------------------------------'
'Modified by gsandul to logon to remote host using  
'username and password specified from command line 
'

Set objPassword = CreateObject("ScriptPW.Password")

'strComputer = "192.168.0.60"

'You can uncomment the following 3 lines and 
'specify hardcoded domain, username and password

'strDomain = "WORKGROUP" 
'strUser = "gsandul"
'strPassword = "SuperPass"


strComputer = wscript.arguments(0)

'If you hardcoded domain, username and password
'comment the following 3 lines

strDomain = wscript.arguments(1)
strUser = wscript.arguments(2)
strPassword = wscript.arguments(3)

Set objSWbemLocator = CreateObject("WbemScripting.SWbemLocator") 
Set objWMIService = objSWbemLocator.ConnectServer(strComputer, _ 
    "root\CIMV2", _ 
    strUser, _ 
    strPassword, _ 
    "MS_409", _ 
    "NTLMDomain:" + strDomain) 

' You suppose to be authentificated 
' Now you can write any WMI function 

Set colComputer = objWMIService.ExecQuery ("Select * from Win32_ComputerSystem")

For Each objComputer in colComputer
If not objComputer.UserName = "" Then
strLogonUser = Split(objComputer.UserName,"\")
strLogonUser(1) = UCase(Left(strLogonUser(1),1))& Trim(Mid(strLogonUser(1),2,20))
Wscript.Echo strLogonUser(1) 
Else
Wscript.Echo "No_one_is_logged"
End If
Next

' End of Sample Logged on VBScript
b) On The Dude server create dir C:\dudescr\ and save the code in file loggeduser.vbs
c) Try to run the script with command line args from cmd
cscript //NoLogo C:\dudescr\loggeduser.vbs IPAddress DomainName UserName Password 
it should print username of logged user
d) Now edit device properties, to specify user with rights to access WMI on monitored host
deviceprop.JPG
e) Create the function User_Pass
concatenate(device_property("FirstAddress")," ",device_property("CustomField3")," ",device_property("UserName")," ",device_property("Password"))
userpass.JPG
f) Create the function Logged_User
array_element(execute("cscript.exe",concatenate("//NoLogo C:\dudescr\loggeduser.vbs ",User_Pass()),"C:\WINDOWS\system32\"),1)
Logged_User.JPG
g) Put it on device label
[Device.Name]
Logged user: [Logged_User()]
[device_performance()][Device.ServicesDown]


All done!!!!! :D

Note: you can use the same method to extend The Dude for WMI usage.
You do not have the required permissions to view the files attached to this post.
 
slech
Long time Member
Long time Member
Posts: 533
Joined: Thu Feb 14, 2008 4:03 pm
Location: Moldova, Chisinau

Re: Probe Thread

Fri May 14, 2010 3:38 pm

To see this in your devices:
Select device --> Right click --> Appearance --> Label --> Insert what you need from the following examples:

Cisco ASA 5510 - Performance

Image

Cisco CPU Load
CPU Load 5sec /1min/ 5min: [oid("1.3.6.1.4.1.9.9.109.1.1.1.1.3.1")] / [oid("1.3.6.1.4.1.9.9.109.1.1.1.1.4.1")] / [oid("1.3.6.1.4.1.9.9.109.1.1.1.1.5.1")]
Memory Free/Used:  [round((oid("1.3.6.1.4.1.9.9.48.1.1.1.6.1")/1024)/1024)]MB / [round((oid("1.3.6.1.4.1.9.9.48.1.1.1.5.1")/1024)/1024)]MB
Total Connections: [oid("1.3.6.1.4.1.9.9.147.1.2.2.2.1.5.40.6")]

Windows Performance and Services Status : CPU, Mem, Virt Mem, HDD | Up, Down
Windows Disk Space: Free/Total

Image

Windows Performance and Services Status
[Device.Name] | [device_performance()]Up - [Device.ServicesUp] | Down - [Device.ServicesDown]
Windows Disk Space
Disk Space: C:\=[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)]/[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)/1024)] GB D:\=[round(((((oid("1.3.6.1.2.1.25.2.3.1.5.3")-oid("1.3.6.1.2.1.25.2.3.1.6.3"))*oid("1.3.6.1.2.1.25.2.3.1.4.3"))/1024)/1024)/1024)]/[round(((oid("1.3.6.1.2.1.25.2.3.1.5.3")*oid("1.3.6.1.2.1.25.2.3.1.4.3")/1024)/1024)/1024)] GB
Last edited by slech on Mon Apr 30, 2012 9:50 am, edited 3 times in total.
sorry for my english
 
gelsonalves
just joined
Posts: 13
Joined: Mon May 11, 2009 5:27 pm

Re: Probe Thread

Thu May 27, 2010 7:49 pm

Like I do, using the "execute" function to test the connection to oracle using the command "sqlplus monitor / monitor @ p22" where "monitor" is the username and password. p22 proceedings of the database

When connected it gives me the following message:

----------------------------------
SQL * Plus: Release 8.1.7.0.0 - Production on Wed May 26 10:36:03 2010

(C) Copyright 2000 Oracle Corporation. All rights reserved.


Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

-------------------------------------------------- ---
 
BeOCeKa
just joined
Posts: 6
Joined: Wed May 19, 2010 11:13 am

Re: Probe Thread

Wed Jun 16, 2010 4:05 pm

TME Ethernet Thermometer by papouch.com
-----------------------------------------------------------------
Available: if(oid("1.3.6.1.4.1.18248.1.1.1.0")>0, 1, -1)
Error: if(oid("1.3.6.1.4.1.18248.1.1.1.0")<310, "", "Temperatur über 31°C")
Value: oid("1.3.6.1.4.1.18248.1.1.1.0")/10
Unit: C°
Rate: None

Shows the temperature and - in this example - get's red over 31 Degrees.
I am sad, that the graph will stop as long the value is above the error.
 
lebowski
Forum Guru
Forum Guru
Posts: 1616
Joined: Wed Aug 27, 2008 5:17 pm

Re: Probe Thread

Fri Jun 18, 2010 12:50 am

BeOCeKa here is an improvement... hope you like.

Function
Name: ethtemp
Description: Returns false or the value in 1.3.6.1.4.1.318.1.1.1.2.2.4.0
Code: if(array_size(oid_column("1.3.6.1.4.1.18248.1.1.1" ,10 ,29)), oid("1.3.6.1.4.1.18248.1.1.1.0", 10, 29) ,"False")

Probe
Name: EthTemp
Type: Function
Available: ethtemp()<> "False"
Error: if(ethtemp()<>"False",if(ethtemp() < 31, "", concatenate("Warning: High Temp = ", ethtemp())), "Ethernet Temperature probe offline")
...

Notice the available line the function "ethtemp()<> "False"" to see if there is a value or if it can't read the value.
The great thing about this function/probe combo is the notification error message. The notification has both "High Temp" and and "Cant read Temp" if the OID is out of range or is not available, otherwise the probe is up and the device up. Another bonus is it tells you the temperature in the notification...

Lebowski
 
heybers
just joined
Posts: 5
Joined: Mon Jul 12, 2010 5:01 pm

Re: Probe Thread

Wed Jul 14, 2010 3:43 pm

Hi Guys,

Hope someone can assist. Im looking for a probe to monitor ppp-oe connections on a router using SNMP.

I currently have SNMP working and can see the interfaces however I know need measure to monitor should one of these links go down?
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 24048
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: Probe Thread

Wed Jul 14, 2010 3:54 pm

Lebowski, it would be great if you could write a wiki article with screenshots on how to use advanced Functions and use them in Probes. It would be a nice addition to the beginner manual we have made. Some advanced examples would greatly help, and I see you understand them perfectly.
No answer to your question? How to write posts
 
lebowski
Forum Guru
Forum Guru
Posts: 1616
Joined: Wed Aug 27, 2008 5:17 pm

Re: Probe Thread

Wed Jul 14, 2010 6:08 pm

I have 3 articles in the wiki, getting started with functions and probes, a quick guide to a good probe and the before doing anything guide.

I need to add screen shots but can you modify the first post in this thread and give it a link to "a quick guide to a good probe"
It would be nice if people got started on the right food.

Thanks,
Lebowski
 
gelsonalves
just joined
Posts: 13
Joined: Mon May 11, 2009 5:27 pm

Re: Probe Thread

Wed Aug 04, 2010 10:12 pm

Normis, can u help me? How to make a function that connects via FTP, passing username and password, then copy a file folder location to the destination user (PUT)?
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 24048
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: Probe Thread

Thu Aug 05, 2010 8:17 am

Normis, can u help me? How to make a function that connects via FTP, passing username and password, then copy a file folder location to the destination user (PUT)?
I do not know how to do that, maybe Lebowski or Gsandul can help
No answer to your question? How to write posts
 
User avatar
gsandul
Member Candidate
Member Candidate
Posts: 154
Joined: Mon Oct 19, 2009 1:42 pm

Re: Probe Thread

Thu Aug 05, 2010 9:57 am

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.
 
gelsonalves
just joined
Posts: 13
Joined: Mon May 11, 2009 5:27 pm

Re: Probe Thread

Thu Aug 05, 2010 12:44 pm

Thanks Normis.
Good morning gsandul.
I own an FTP server and would like monitor no only the FTP server (port 21), but also user access and if there is permission of copy, because as it is a government agency, constantly users from other departments changed the password or permissions of the folders of certain FTP users and when the routine runs at the scheduled time we have problems. We would like using this function for recognize this problems in the ftp users.

Regards.
 
lebowski
Forum Guru
Forum Guru
Posts: 1616
Joined: Wed Aug 27, 2008 5:17 pm

Re: Probe Thread

Thu Aug 05, 2010 4:56 pm

One way would be to write a script that controls some other FTP program.

Search the dude board for "Execute" and you will find examples on how to use it.
Recently there was a decent example of an SQL external and another external that did an SNMP Write.

I don't know if you can script the built in windows FTP server but you should be able to find one on the net...
If you need more help just ask.
 
gelsonalves
just joined
Posts: 13
Joined: Mon May 11, 2009 5:27 pm

Re: Probe Thread

Thu Aug 05, 2010 5:07 pm

I already created an external agent to connect to Oracle database that returns a string, but in this case, involves users and passwords from other agencies and the security policy does not allow to be done this way. The ideal would be a function inside on the dude.
:?
 
lebowski
Forum Guru
Forum Guru
Posts: 1616
Joined: Wed Aug 27, 2008 5:17 pm

Re: Probe Thread

Thu Aug 05, 2010 6:35 pm

Sorry I don't know how to do that, I didn't get very far when I tried to build a FTP probe that actually just logged in.
Maybe Gsandul?

The problem for me is I don't know how to format the strings you can send and receive.
Is it just regular expressions or what? There are a few HTTP examples in the wiki and on the board.
 
gelsonalves
just joined
Posts: 13
Joined: Mon May 11, 2009 5:27 pm

Re: Probe Thread

Fri Aug 06, 2010 2:52 pm

Are two functions.
First: To check if user can to connect to FTP server.
Second: The other to check if user can copy test file to the ftp server. Gsandul, can you help?
  • 1
  • 2
  • 3
  • 4
  • 5
  • 7

Who is online

Users browsing this forum: No registered users and 11 guests