# Probe Thread

**URL:** <https://forum.mikrotik.com/t/probe-thread/10321>\
**Category:** The Dude\
**Created:** [November 28, 2006, 3:09pm UTC](https://forum.mikrotik.com/t/probe-thread/10321 "2006-11-28T15:09:29Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![keith](https://forum.mikrotik.com/letter_avatar/keith/32/6_449c533f586939b6e5f246632a46421f.png) [@keith](https://forum.mikrotik.com/u/keith)\
**Post date:** [April 4, 2008, 4:37pm UTC](https://forum.mikrotik.com/t/probe-thread/10321/21 "2008-04-04T16:37:11Z")

</div>

I agree also.

What do you mean by  
_“i use this to take auto discovered wireless devices and auto ID them into Wirless APs device type.”_

I really don’t understand probes and what all can be done with them. Could i make one that would tell me which port on a switch the workstation is attached to?

---

<div class="post-metadata">

**Author:** ![talon63](https://forum.mikrotik.com/letter_avatar/talon63/32/6_449c533f586939b6e5f246632a46421f.png) [@talon63](https://forum.mikrotik.com/u/talon63)\
**Post date:** [April 4, 2008, 11:41pm UTC](https://forum.mikrotik.com/t/probe-thread/10321/22 "2008-04-04T23:41:09Z")

</div>

I think what he means is that when the devices are discovered, they will placed on the map as AP’s not switches or other devices which is what the Dude with my AP’s the first time around forcing me to manually change them into AP’s on the map. Thanks for the script.

As for what probes are and what you can do with them…probes are the method by which things are discoverd, and by things it can cover a pretty broad area. Hardware, software, protocols, configuration, etc. As to what you can do with them, that is what this thread was created for. Given enough experience and knowledge about things work, connect, and talk to each other, and with some study of the OIDs, you can build custom probes to perform a great many tasks.

As far as it goes, I am still learning about custom probes myself, this is why I suggested making this a sticky and inviting others to participate. I am sure that there are some among the 14000+ membersip here who would be willing to share knowledge with the rest of us.

---

<div class="post-metadata">

**Author:** ![keith](https://forum.mikrotik.com/letter_avatar/keith/32/6_449c533f586939b6e5f246632a46421f.png) [@keith](https://forum.mikrotik.com/u/keith)\
**Post date:** [April 7, 2008, 4:39pm UTC](https://forum.mikrotik.com/t/probe-thread/10321/23 "2008-04-07T16:39:40Z")

</div>

Ok - I think i have the basics of snmp and OID’s but how do you implement probes. Can anyone give like some really basic examples to get started with?

---

<div class="post-metadata">

**Author:** ![beerfiend](https://forum.mikrotik.com/letter_avatar/beerfiend/32/6_449c533f586939b6e5f246632a46421f.png) [@beerfiend](https://forum.mikrotik.com/u/beerfiend)\
**Post date:** [April 8, 2008, 1:55pm UTC](https://forum.mikrotik.com/t/probe-thread/10321/24 "2008-04-08T13:55:56Z")

</div>

yeah, just read the backscroll of this thread to get an idea of what people are using these for. i like the cisco processor one myself. i was wondering how to do that. the network is your oister.

---

<div class="post-metadata">

**Author:** ![Pablete](https://forum.mikrotik.com/letter_avatar/pablete/32/6_449c533f586939b6e5f246632a46421f.png) [@Pablete](https://forum.mikrotik.com/u/Pablete)\
**Post date:** [April 11, 2008, 12:42pm UTC](https://forum.mikrotik.com/t/probe-thread/10321/25 "2008-04-11T12:42:24Z")

</div>

Some more of my own

Is the proxy service up?  
**Name: proxy08080-google.es  
Type: TCP  
Port: 8080  
Connect only: Unchecked  
First receive, then send:Unchecked  
Send: GET [http://www.google.com/](http://www.google.com/) HTTP/1.1\r\n\r\n  
Receive: HTTP/1.1 200 OK**  
Be careful with this probe because it will fail in the following cases:

1. You have an authenticated proxy
2. You are in other country and you get a redirection (in my case to [http://www.google.es](http://www.google.es), so I don’t get a 200 OK).

And the socks service? This is also a good reference for the syntax of the escape secuences in probes  
**Name: [socks01080-ftp.drivehq.com](http://socks01080-ftp.drivehq.com)  
Type: TCP  
Port: 1080  
Connect only: Unchecked  
First receive, then send:Unchecked  
Send: \x05\x01\x02  
Receive: \x05  
Send: \x05\x01\0\x03\x0fftp.drivehq.com\0\x15  
Receive: 220 Welcome to the**  
Be careful with this probe because it will fail in the following cases:

1. You have an authenticated socks
2. This is for a V5 socks.
3. The \x0f before **[ftp.drivehq.com](http://ftp.drivehq.com) must** have the length of the string **[ftp.drivehq.com](http://ftp.drivehq.com)**. If you change the target server then the length of the dns name will change and you should change the length accordingly.

---

<div class="post-metadata">

**Author:** ![talon63](https://forum.mikrotik.com/letter_avatar/talon63/32/6_449c533f586939b6e5f246632a46421f.png) [@talon63](https://forum.mikrotik.com/u/talon63)\
**Post date:** [April 11, 2008, 3:22pm UTC](https://forum.mikrotik.com/t/probe-thread/10321/26 "2008-04-11T15:22:24Z")

</div>

Thanks for the probes, and thanks for listing reasons why they might fail. That should keep some of us out of trouble. 😆

---

<div class="post-metadata">

**Author:** ![talon63](https://forum.mikrotik.com/letter_avatar/talon63/32/6_449c533f586939b6e5f246632a46421f.png) [@talon63](https://forum.mikrotik.com/u/talon63)\
**Post date:** [June 25, 2008, 2:18pm UTC](https://forum.mikrotik.com/t/probe-thread/10321/27 "2008-06-25T14:18:09Z")

</div>

Shameless bump of topic.

---

<div class="post-metadata">

**Author:** ![Pablete](https://forum.mikrotik.com/letter_avatar/pablete/32/6_449c533f586939b6e5f246632a46421f.png) [@Pablete](https://forum.mikrotik.com/u/Pablete)\
**Post date:** [July 7, 2008, 3:52pm UTC](https://forum.mikrotik.com/t/probe-thread/10321/28 "2008-07-07T15:52:49Z")

</div>

Hi, two more. **They need snmp.**

The TCP retransmissions measures the number of TCP segments that the queried computer has needed to retransmit due to lost frames. This may be due to line congestion or LAN congestion, or non-responding computers. A flat zero line says that no frame is lost. Note that some media like frame relay specifically allows the drop of some frames.  
Usually if you do a measure of the retransmissions over a second the result will be zero. You should measure them in a minute basis.

**function**  
tcp\_retrans\_segs  
tcp retransmited segments  
oid(“1.3.6.1.2.1.6.12.0”)  
**Probe**  
tcp\_retrans  
Function  
AV: tcp\_retrans\_segs()  
ER: if(tcp\_retrans\_segs(), “”, “down”)  
VAL: rate( tcp\_retrans\_segs() \*60 )  
UN: Packets  
Rate: Minute

* * *

TCP Connections gives the number of established or closewait connections of the queried device. The number depends on the usage of the device. A cache/proxy/load-balancing-device may have a really high number of tcp connections.

**function**  
tcp\_currestab  
number of tcp established or closewait connections  
**oid(“1.3.6.1.2.1.6.9.0”)**

**Probe**  
tcp\_estab  
Function  
AV: tcp\_currestab()  
ER: if(tcp\_currestab(), “”, “down”)  
VAL: tcp\_currestab()  
UN: connections

Regards  
------ Post Edit ----  
As mr. Winkelman posted before, the OID for the currently established or closewait tcp connections is 1.3.6.1.2.1.6.9.0 . THX for the correction. Sorry for the typo.

---

<div class="post-metadata">

**Author:** ![zhall](https://forum.mikrotik.com/letter_avatar/zhall/32/6_449c533f586939b6e5f246632a46421f.png) [@zhall](https://forum.mikrotik.com/u/zhall)\
**Post date:** [August 15, 2008, 5:20pm UTC](https://forum.mikrotik.com/t/probe-thread/10321/29 "2008-08-15T17:20:16Z")

</div>

I’m trying to get a problem working that checks the SU RSSI level and then creates a graph off it. I guess I’ve gotten it working ok once. It graph’d correctly at least. The OID for signal strength seems to change from mikrotik to mikrotik, so I haven’t figured out to deal with that. Anyway. Anybody had any luck in this department that might show me an example?

is there any documentation for custom functions and such?

---

<div class="post-metadata">

**Author:** ![zhall](https://forum.mikrotik.com/letter_avatar/zhall/32/6_449c533f586939b6e5f246632a46421f.png) [@zhall](https://forum.mikrotik.com/u/zhall)\
**Post date:** [August 15, 2008, 6:44pm UTC](https://forum.mikrotik.com/t/probe-thread/10321/30 "2008-08-15T18:44:41Z")

</div>

Dis is what I ended up with so far:

Available : rssi\_avail() \> 0

which is –

array\_size(oid\_column(“iso.3.6.1.4.1.14988.1.1.1.2.1.3”))  
  
  
and then for value i have

array\_element(oid\_column(“iso.3.6.1.4.1.14988.1.1.1.2.1.3”), 0)  
  
  
  
it seems to work ok.

---

<div class="post-metadata">

**Author:** ![winkelman](https://forum.mikrotik.com/letter_avatar/winkelman/32/6_449c533f586939b6e5f246632a46421f.png) [@winkelman](https://forum.mikrotik.com/u/winkelman)\
**Post date:** [August 18, 2008, 1:33pm UTC](https://forum.mikrotik.com/t/probe-thread/10321/31 "2008-08-18T13:33:12Z")

</div>

> [@Pablete](#):
>
> **function**  
> tcp\_currestab  
> number of tcp established or closewait connections  
> oid(“1.3.6.1.2.1.6.12.0”)

Nice, but not entieryly correct (I suspect copy-paste error 🙂): established TCP connections is on oid(“1.3.6.1.2.1.6. **9**.0”)

---

<div class="post-metadata">

**Author:** ![CGirardy](https://forum.mikrotik.com/letter_avatar/cgirardy/32/6_449c533f586939b6e5f246632a46421f.png) [@CGirardy](https://forum.mikrotik.com/u/CGirardy)\
**Post date:** [August 26, 2008, 10:31am UTC](https://forum.mikrotik.com/t/probe-thread/10321/32 "2008-08-26T10:31:37Z")

</div>

Hi,  
I would love to have a probe for an AS400 system (CPU / Network / HD)

I don't understand why it works with MRTG and I cannot get it to work using The Dude.

How can I do to translate this from MRTG to a probe in TheDude and why can't TheDude see the network cards ?

Thanks for you help

MRTG File used to query the SNMP on the AS400:

### Interface 2 \>\> Descr: 'ETHLINE' | Name: '' | Ip: 'xx.xx.xx.xx' | Eth: '00-09-6b-eb-d8-56'

Target[s44r1755\_2]: 2:xxxxxxxx@s44r1755:  
SetEnv[s44r1755\_2]: MRTG\_INT\_IP="xx.xx.xx.xx" MRTG\_INT\_DESCR="ETHLINE"  
MaxBytes[s44r1755\_2]: 12500000  
Title[s44r1755\_2]: Traffic Analysis for 2 -- S44R1755.xxxxxxxxxxxx.xxxxxxxx  
PageTop[s44r1755\_2]:

# Traffic Analysis for 2 -- S44R1755.xxxxxxxxxxxx.xxxxxxxxx

| System: | S44R1755.xxxxxxxxx.xxxxxxxx in |
| Maintainer: | |
| Description: | ETHLINE |
| ifType: | ethernetCsmacd (6) |
| ifName: | |
| Max Speed: | 100.0 Mbits/s |
| Ip: | xx.xx.xx.xx (s44r1755.xxxxxxx.xxxxxxxx) |

### Interface 3 \>\> Descr: 'ETHLINE2' | Name: '' | Ip: 'xx.xx.xx.xx' | Eth: '00-09-6b-eb-d8-57'

Target[s44r1755\_3]: 3:xxxxxx@s44r1755:  
SetEnv[s44r1755\_3]: MRTG\_INT\_IP="xx.xx.xx.xx" MRTG\_INT\_DESCR="ETHLINE2"  
MaxBytes[s44r1755\_3]: 12500000  
Title[s44r1755\_3]: Traffic Analysis for 3 -- S44R1755.xxxxxx.xxxxxx  
PageTop[s44r1755\_3]:

# Traffic Analysis for 3 -- S44R1755.xxxxx.xxxxx

| System: | S44R1755.xxxxxx.xxxxx in |
| Maintainer: | |
| Description: | ETHLINE2 |
| ifType: | ethernetCsmacd (6) |
| ifName: | |
| Max Speed: | 100.0 Mbits/s |
| Ip: | xx.xx.xx.xx (vsiprd.xxxxxxx.xxxxxxx) |

\ \ ### Interface 4 \>\> Descr: 'TRNLINE' | Name: '' | Ip: 'xxx.xxx.xxx.xxx' | Eth: '40-00-00-00-08-20' ###

Target[s44r1755\_4]: 4:xxxxx@s44r1755:  
SetEnv[s44r1755\_4]: MRTG\_INT\_IP="xxx.xxx.xxx.xxx" MRTG\_INT\_DESCR="TRNLINE"  
MaxBytes[s44r1755\_4]: 2000000  
Title[s44r1755\_4]: Traffic Analysis for 4 -- S44R1755.xxxxxx.xxxxxx  
PageTop[s44r1755\_4]:

# Traffic Analysis for 4 -- S44R1755.xxxxxx.xxxxxx

| System: | S44R1755.xxxxxxx.xxxxxx in |
| Maintainer: | |
| Description: | TRNLINE |
| ifType: | iso88025TokenRing (9) |
| ifName: | |
| Max Speed: | 16.0 Mbits/s |
| Ip: | xxx.xxx.xxx.xxx (ASGRASSE.xxxxxx.xxxxxx) |

### CPU

YLegend[s44r1755.processorLoad]: % Utilization  
Options[s44r1755.processorLoad]: growright,gauge,nopercent,nobanner  
Target[s44r1755.processorLoad]: .1.3.6.1.2.1.25.3.3.1.2.1&.1.3.6.1.2.1.25.3.3.1.2.2:xxxxxxx@s44r1755  
MaxBytes[s44r1755.processorLoad]: 100  
Title[s44r1755.processorLoad]: S44R1755 : Utilisation du Processeur  
ShortLegend[s44r1755.processorLoad]: %  
Legend1[s44r1755.processorLoad]: Utilisation Processeur #1  
Legend2[s44r1755.processorLoad]: Utilisation Processeur #2  
Legend3[s44r1755.processorLoad]: Utilisation Processeur #1 (Maximum)  
Legend4[s44r1755.processorLoad]: Utilisation Processeur #2 (Maximum)  
LegendI[s44r1755.processorLoad]: &nbsp;Load:  
LegendO[s44r1755.processorLoad]: &nbsp;Load:  
PageTop[s44r1755.processorLoad]:

# S44R1755 : Utilisation du Processeur

| System: | S44R1755 |

### HD

YLegend[s44r1755.Disk]: Occupation Disque  
Options[s44r1755.Disk]: growright,gauge  
Target[s44r1755.Disk]: .1.3.6.1.2.1.25.2.3.1.6.1&.1.3.6.1.2.1.25.2.3.1.5.1:xxxxxxxx@s44r1755 \* 4096  
MaxBytes[s44r1755.Disk]: 281555238912  
Title[s44r1755.Disk]: S44R1755 : Occupation Disque  
ShortLegend[s44r1755.Disk]: o  
Legend1[s44r1755.Disk]: Occupation disque  
Legend2[s44r1755.Disk]: Taille du disque  
Legend3[s44r1755.Disk]: Occupation disque Maximum  
Legend4[s44r1755.Disk]: Taille disque Maximum  
LegendI[s44r1755.Disk]: &nbsp;Occupé :  
LegendO[s44r1755.Disk]: &nbsp;Taille :  
PageTop[s44r1755.Disk]:

# S44R1755 : Occupation Disque

| System: | S44R1755 |

---

<div class="post-metadata">

**Author:** ![lebowski](https://forum.mikrotik.com/letter_avatar/lebowski/32/6_449c533f586939b6e5f246632a46421f.png) [@lebowski](https://forum.mikrotik.com/u/lebowski)\
**Post date:** [September 4, 2008, 6:17pm UTC](https://forum.mikrotik.com/t/probe-thread/10321/33 "2008-09-04T18:17:24Z")

</div>

I believe this is a correction to the first post of the cisco cpu function… The 0 where the -1 was keeps this probe from being added to devices that do not have a value in the cisco cpu OID. More specifically I think “if(x\>0,1,-1)” returns not false in and “if(x\>0,1,0)” returns false. I noticed a lot of other functions in this thread have -1 in the return on false, those can be fixed also by following this example.

Test and correct me if I am wrong.

Cisco CPU  
Type: Function  
Available: if(oid(“1.3.6.1.4.1.9.2.1.58.0”)\>0, 1, **0** )  
Error: “”  
Value: oid(“1.3.6.1.4.1.9.2.1.58.0”)  
Unit: % of cpu load

Thanks for the great thread! keep it up 🙂  
Sweet!!!

---

<div class="post-metadata">

**Author:** ![lebowski](https://forum.mikrotik.com/letter_avatar/lebowski/32/6_449c533f586939b6e5f246632a46421f.png) [@lebowski](https://forum.mikrotik.com/u/lebowski)\
**Post date:** [September 4, 2008, 9:45pm UTC](https://forum.mikrotik.com/t/probe-thread/10321/34 "2008-09-04T21:45:21Z")

</div>

Some APC UPS probes I made based on the one from above… They all seem to work I just haven’t actually tested them.  
Create a new probe with the type of function and paste the lines.  
Name is line 1,  
Available is line 2,  
Error is line 3,  
value is line 4,  
Unit is line5, but if you want similar values to show up on the same graph give them the same Unit description.

Checks to see if there is voltage on the input.  
APC\_Vin  
if(oid(“1.3.6.1.4.1.318.1.1.1.3.2.1.0”)\>0, 1, 0)  
if(oid(“1.3.6.1.4.1.318.1.1.1.3.2.1.0”)\>0, “”, “No Power”)  
oid(“1.3.6.1.4.1.318.1.1.1.3.2.1.0”)  
total

Measure battery temperature , should fix it to complain if too hot…  
APC Battery Temperature  
if(oid(“1.3.6.1.4.1.318.1.1.1.2.2.2.0”)\>0, 1, 0)  
if(oid(“1.3.6.1.4.1.318.1.1.1.2.2.2.0”)\>0, “”, “No Temp reading”)  
oid(“1.3.6.1.4.1.318.1.1.1.2.2.2.0”)  
total

Battery Capacity errors if battery less than half. needs testing.  
APC Capacity  
if(oid(“1.3.6.1.4.1.318.1.1.1.2.2.1.0”)\>0, 1, 0)  
if(oid(“1.3.6.1.4.1.318.1.1.1.2.2.1.0”)\>50, “”, “Battery less than half”)  
oid(“1.3.6.1.4.1.318.1.1.1.2.2.1.0”)  
%

Total load on UPS, complains if load is over 80. Need to test.  
APC\_Load  
if(oid(“1.3.6.1.4.1.318.1.1.1.4.2.3.0”)\>0, 1, 0)  
if(oid(“1.3.6.1.4.1.318.1.1.1.4.2.3.0”)\<80, “”, “Over Load”)  
oid(“1.3.6.1.4.1.318.1.1.1.4.2.3.0”)  
%

---

<div class="post-metadata">

**Author:** ![lebowski](https://forum.mikrotik.com/letter_avatar/lebowski/32/6_449c533f586939b6e5f246632a46421f.png) [@lebowski](https://forum.mikrotik.com/u/lebowski)\
**Post date:** [October 15, 2008, 12:46am UTC](https://forum.mikrotik.com/t/probe-thread/10321/35 "2008-10-15T00:46:57Z")

</div>

An improved battery temperature… complains if it is out of range. Now if I could figure out how make it keep graphing when it is out of range. I am certain I could solve that with another probe but WHY 🙂  
  
  
APC Battery Temperature  
if(oid(“1.3.6.1.4.1.318.1.1.1.2.2.2.0”)\>0, 1, 0)  
if(or(oid(“1.3.6.1.4.1.318.1.1.1.2.2.2.0”)\<20,oid(“1.3.6.1.4.1.318.1.1.1.2.2.2.0”)\>40),concatenate(“temperature out of range = “,oid(“1.3.6.1.4.1.318.1.1.1.2.2.2.0”)),””)  
oid(“1.3.6.1.4.1.318.1.1.1.2.2.2.0”)  
total

---

<div class="post-metadata">

**Author:** ![lebowski](https://forum.mikrotik.com/letter_avatar/lebowski/32/6_449c533f586939b6e5f246632a46421f.png) [@lebowski](https://forum.mikrotik.com/u/lebowski)\
**Post date:** [October 16, 2008, 9:51pm UTC](https://forum.mikrotik.com/t/probe-thread/10321/36 "2008-10-16T21:51:20Z")

</div>

A quick way to make a probe… Causes your UPS to show when a battery is needing replaced.

Snmpwalk the device you are wanting to create a probe for, right click on the oid once you find it, select create probe.

You can modify the function but this one worked with no changes…  
  
  
iso.org.dod.internet.private.enterprises.apc.products.hardware.ups.upsBattery.upsAdvBattery.upsAdvBatteryReplaceIndicator.0  
 ![probe.JPG](https://data-discourse.cdn.mikrotik.com/original/2X/b/b10b8af4d261577c1aae4419c21108f11a25afb3.jpeg)  
Lucky or not here they are 🙂  
 ![failed.JPG](https://data-discourse.cdn.mikrotik.com/original/2X/c/c5afeea31e055aebfacd89ef4a882eb7ec80dac3.jpeg)

---

<div class="post-metadata">

**Author:** ![sdrenner](https://forum.mikrotik.com/letter_avatar/sdrenner/32/6_449c533f586939b6e5f246632a46421f.png) [@sdrenner](https://forum.mikrotik.com/u/sdrenner)\
**Post date:** [October 24, 2008, 9:04pm UTC](https://forum.mikrotik.com/t/probe-thread/10321/37 "2008-10-24T21:04:14Z")

</div>

Are these SNMP oid’s via MT or straight to the APC ups?

---

<div class="post-metadata">

**Author:** ![lebowski](https://forum.mikrotik.com/letter_avatar/lebowski/32/6_449c533f586939b6e5f246632a46421f.png) [@lebowski](https://forum.mikrotik.com/u/lebowski)\
**Post date:** [November 3, 2008, 2:35pm UTC](https://forum.mikrotik.com/t/probe-thread/10321/38 "2008-11-03T14:35:59Z")

</div>

For the APCs I read the device directly, reading the oid … You might need PowerNet-MIB.mib.

---

<div class="post-metadata">

**Author:** ![adamd292](https://forum.mikrotik.com/letter_avatar/adamd292/32/6_449c533f586939b6e5f246632a46421f.png) [@adamd292](https://forum.mikrotik.com/u/adamd292)\
**Post date:** [November 12, 2008, 1:14am UTC](https://forum.mikrotik.com/t/probe-thread/10321/39 "2008-11-12T01:14:14Z")

</div>

I have some VMWare ESX Servers and NetApp filers.  
and wrote the following functions and probes to instrument CPU and Memory for them in The Dude:  
(also there is a windows service probe)

**FUNCTIONS**

**cpu\_mem\_disk\_enhanced**  
_Same as supllied cpu\_mem\_disk, but with added support for VMWare and NetApp CPU load_  
concatenate(  
if(cpu\_usage\_available(), concatenate("cpu: ", round(cpu\_usage()), "% "), “”),  
if(vmcpu\_usage\_available(), concatenate("cpu: ", round(vmcpu\_usage()), "% "), “”),  
if(netappcpu\_usage\_available(), concatenate("cpu: ", round(netappcpu\_usage()), "% "), “”),  
if(mem\_usage() \> 0, concatenate("mem: ", round(mem\_usage()), "% "), “”),  
if(virtual\_mem\_usage() \> 0, concatenate("virt: ", round(virtual\_mem\_usage()), "% "), “”),  
if(hdd\_usage() \> 0, concatenate("disk: ", round(hdd\_usage()), "% "), “”),  
if(netapphdd\_usage() \> 0, concatenate("disk: ", round(netapphdd\_usage()), "% "), “”)  
)

**device\_performance\_enh**  
_Adjusted to call cpu\_mem\_disk\_enhanced_  
if(  
string\_size(cpu\_mem\_disk\_enhanced()) \> 0,  
concatenate(cpu\_mem\_disk\_enhanced(), "  
"),

“”  
)

**failed\_service\_summary**  
_Shows failed services. Used to produce summary information on maps_  
if (device\_property(“ServicesCount”)\<\>device\_property(“ServicesUpCount”), concatenate(“Services (”, device\_property(“ServicesUpCount”), “/”, device\_property(“ServicesCount”), ")  
", if (device\_property(“ServicesUnstableCount”), concatenate("Unstable: ", device\_property(“ServicesUnstableCount”), "  
"), “”), if (device\_property(“ServicesDownCount”), concatenate("Down: ", device\_property(“ServicesDownCount”), "  
"), “”), if (device\_property(“ServicesAckedCount”), concatenate("Acked: ", device\_property(“ServicesAckedCount”), "  
"), “”), if (device\_property(“ServicesUnknownCount”), concatenate("Unknown: ", device\_property(“ServicesUnknownCount”), "  
"), “”)), “”)

**netappcpu\_usage**  
_Reports the CPU usage in percent of a NetApp_  
oid(“1.3.6.1.4.1.789.1.2.1.3.0”)

**netappcpu\_usage\_available**  
_Detects whether NetApp CPU usage is available_  
if(oid(“1.3.6.1.4.1.789.1.2.1.3.0”),1,0)

**netapphdd\_usage**  
_Reports NetApp Total Storage usage as a percentage._  
oid(“1.3.6.1.4.1.789.1.5.7.3.0”)

**vmcpu\_usage**  
_Report the CPU usage in percent on a VMWare server_  
100-oid(“1.3.6.1.4.1.2021.11.11.0”)

**vmcpu\_usage\_available**  
_Detects whether VMWare CPU usage is available._  
if (oid(“1.3.6.1.4.1.2021.11.11.0”),1,0)

**FUNCTION PROBES**

**VMWare – cpu**  
_Monitor the host CPU on a VMWare server_  
Available: vmcpu\_usage\_available()  
Error: if(vmcpu\_usage\_available(), “”, “down”)  
Value: vmcpu\_usage()  
Unit: %  
Rate: none

**NetApp - active disks**  
_Number of active RAID disks_  
Available: if(oid(“1.3.6.1.4.1.789.1.6.4.2.0”)\>0,1,0)  
Error: if(oid(“1.3.6.1.4.1.789.1.6.4.2.0”)\>0,“”,“none”)  
Value: oid(“1.3.6.1.4.1.789.1.6.4.2.0”)  
Unit:  
Rate: none

**NetApp - bad disks**  
_Number of failed RAID disks_  
Available: if(oid(“1.3.6.1.4.1.789.1.6.4.7.0”)=0,1,0)  
Error: if(oid(“1.3.6.1.4.1.789.1.6.4.7.0”)=0,“”,“bad disks”)  
Value: oid(“1.3.6.1.4.1.789.1.6.4.7.0”)  
Unit:  
Rate: none

**NetApp - bad fans**  
_Number of failed cooling fans._  
Available: if(oid(“1.3.6.1.4.1.789.1.2.4.2.0”)=0,1,0)  
Error: if(oid(“1.3.6.1.4.1.789.1.2.4.2.0”)=0,“”,“bad fans”)  
Value: oid(“1.3.6.1.4.1.789.1.2.4.2.0”)  
Unit:  
Rate: none

**NetApp - bad power**  
_Number of failed power supply units._  
Available: if(oid(“1.3.6.1.4.1.789.1.2.4.4.0”)=0,1,0)  
Error: if(oid(“1.3.6.1.4.1.789.1.2.4.4.0”)=0,“”,“bad psu”)  
Value: oid(“1.3.6.1.4.1.789.1.2.4.4.0”)  
Unit:  
Rate: none

**NetApp – cpu**  
_CPU Busy % time_  
Available: netappcpu\_usage\_available()  
Error: if(netappcpu\_usage\_available(), “”, “down”)  
Value: netappcpu\_usage()  
Unit: %  
Rate: none

**NetApp - space used**  
_Percentage of disk space used_  
Available: if(oid(“1.3.6.1.4.1.789.1.5.7.1.0”)\>0,1,0)  
Error: if(oid(“1.3.6.1.4.1.789.1.5.7.1.0”)\>1,“disk space low”,“”)  
Value: oid(“1.3.6.1.4.1.789.1.5.7.3.0”)  
Unit: %  
Rate: none

**NetApp – spare disks**  
_Number of spare disks in NetApp array_  
Available: if(oid(“1.3.6.1.4.1.789.1.6.4.8.0”)\>0,1,0)  
Error: if(oid(“1.3.6.1.4.1.789.1.6.4.8.0”)\>0,“”,“no spares”)  
Value: oid(“1.3.6.1.4.1.789.1.6.4.8.0”)  
Unit:  
Rate: none

**NetApp – total disks**  
_Total number of disks in NetApp array_  
Available: if(oid(“1.3.6.1.4.1.789.1.6.4.1.0”)\>0,1,0)  
Error: if(oid(“1.3.6.1.4.1.789.1.6.4.1.0”)\>0,“”,“no disks”)  
Value: oid(“1.3.6.1.4.1.789.1.6.4.1.0”)  
Unit:  
Rate: none

**Windows Service MyService**  
_Is the Windows Service MyService up_  
Available: if(array\_find(oid\_column(“1.3.6.1.4.1.77.1.2.3.1.1”),“MyService”)\>0, 1, 0)  
Error: if(array\_find(oid\_column(“1.3.6.1.4.1.77.1.2.3.1.1”),“MyService”)\>0, “”, “MyService not detected by SNMP probe”)  
Value: 1  
Unit:  
Rate: none

\*Need to replace MyService with the name of the service that you actually want to monitor

**SNMP PROBES**

**NetApp - over temp**  
_Probe to detect NetApp temperature limit_  
Oid: iso.org.dod.internet.private.enterprises.netapp.netapp1.sysStat.environment.envOverTemperature.0  
Type: integer  
Compare: ==  
String Value: 1

**NetApp - status**  
_Probe to detect when the NetApp is not ok_  
Oid: iso.org.dod.internet.private.enterprises.netapp.netapp1.sysStat.misc.  
miscGlobalStatus.0  
Type: integer  
Compare: ==  
String Value: 3  
  
  
Also in “ **Server Configuration** ” → “ **Map** ” → “ **Device Appearance** ”  
I modified the global default for device label to use the enhanced device performance function from the list above

Change Device Appearance Label to:  
[Device.CustomField1]  
[Device.Name]  
[Device.FirstAddress]  
[device\_performance\_enh()][failed\_service\_summary()]

---

<div class="post-metadata">

**Author:** ![breazer](https://forum.mikrotik.com/letter_avatar/breazer/32/6_449c533f586939b6e5f246632a46421f.png) [@breazer](https://forum.mikrotik.com/u/breazer)\
**Post date:** [November 24, 2008, 11:52am UTC](https://forum.mikrotik.com/t/probe-thread/10321/40 "2008-11-24T11:52:54Z")

</div>

Hi All,  
Do any of you know of a probe that will moniter a port

Regards  
Breazer

[Previous page](https://forum.mikrotik.com/t/probe-thread/10321.md?page=1)

[Next page](https://forum.mikrotik.com/t/probe-thread/10321.md?page=3)
