Page 1 of 1
Display cpu_mem_disk on Dude icon
Posted: Fri Oct 02, 2009 4:04 am
by zelan
How do I get cpu_mem_disk function to display on dude like in the image below
Re: Display cpu_mem_disk on Dude icon
Posted: Mon Oct 05, 2009 5:28 pm
by lebowski
Right click device, select appearance, click the down arrow next to label.
You should leave [Device.Name] and [Device.ServicesDown] on the label.
Add the following to the device label.
[device_performance()]
or something like this
Load on [array_size(oid_column("iso.org.dod.internet.mgmt.mib-2.host.hrDevice.hrProcessorTable.hrProcessorEntry.hrProcessorLoad"))] CPU('s): [oid_column("iso.org.dod.internet.mgmt.mib-2.host.hrDevice.hrProcessorTable.hrProcessorEntry.hrProcessorLoad")]
The first one will add "cpu X mem X virt X disk X.
The second one will add "Load on X CPU('s) x,x,x,x" to the label.
I have them both on the label for my dude server...
More generically you can add any oid to a label by reading the oid you are interested in directly and placing it in the .
label : [oid("x.x.x.x.x.x.x.x")]
You can get creative and do much more complex things like find out how many copies of svchost.exe are running.
[array_element(oid_column("1.3.6.1.2.1.25.4.2.1.2"), array_find(oid_column("1.3.6.1.2.1.25.4.2.1.2"),"svchost.exe"))]
[array_find(oid_column("1.3.6.1.2.1.25.4.2.1.2"),"svchost.exe")]
HTH,
SD
Re: Display cpu_mem_disk on Dude icon
Posted: Fri Apr 20, 2012 3:04 pm
by Sharade
I know this thread is kinda old, but if i put "[device_performance()]" in the appearance its just written in the picture.
Look @ pic.
Re: Display cpu_mem_disk on Dude icon
Posted: Mon Apr 23, 2012 10:02 am
by migoz
You can get creative and do much more complex things like find out how many copies of svchost.exe are running.
[array_element(oid_column("1.3.6.1.2.1.25.4.2.1.2"), array_find(oid_column("1.3.6.1.2.1.25.4.2.1.2"),"svchost.exe"))]
[array_find(oid_column("1.3.6.1.2.1.25.4.2.1.2"),"svchost.exe")]
this is not "how many copies of svchost.exe are running"
this is index of first svchost.exe in process list
Re: Display cpu_mem_disk on Dude icon
Posted: Mon Apr 23, 2012 10:09 am
by migoz
Sharade, how did you created values for every hard disk? is it possible to make a function that retrieves number of hard disks of device and shows free space of each of them or of only one which you selected?
Re: Display cpu_mem_disk on Dude icon
Posted: Thu Apr 26, 2012 1:16 am
by lebowski
[device_performance()] still works as it should for me, I am stumped for your trouble... Make certain you didn't somehow grab some special characters with the [device_performance()] copy by pasting it into notepad before pasting it on a device label???
Re: Display cpu_mem_disk on Dude icon
Posted: Thu Apr 26, 2012 11:55 am
by Sharade
The Problem is, i don't even have the function [device_performance()] in the list.
So i was asking for the insert... the code of [device_performance()]... understandable?
Re: Display cpu_mem_disk on Dude icon
Posted: Mon Apr 30, 2012 8:20 pm
by lebowski
Something is wrong with the installation? If you are running on RB than it doesn't get installed on RB?(just a guess) I am on 4.0b3 w2k3...