Thanks for your answer, I think that takes care of it.
On 10/29/06, Jakob Peterhänsel <[EMAIL PROTECTED]> wrote:
Hi Robert
You will have to first Match the data you want to find, and then
Store it in a variable, like this:
MTCH "(#+.days,.##:##:##)"ir else #+2
STOR "Uptime" "${1}"
MTCH: grep string, (...) is = $1
STOR: "varname" "value"
Here is how I have used it in the past:
Hope it helps,
Jakob Peterhänsel
"Be a part of the Love Generation - carry a smile, not a gun."
- JP, May 2006
Email: [EMAIL PROTECTED]
AIM: Marook
Phone: +45 22684961
On 29/10/2006, at 0:48, Robert Atkinson wrote:
> About a 1 1/2 years ago someone was trying to write a custom probe
> (cmd-line) to fetch temp values from a non-snmp device, and chart
> graph it.
>
> The end answer ended up being:
> You could write a custom TCP probe instead. Then you would not have
> to jump
> through the command-line hoops and it would allow you to graph the
> values.
>
> Use the built-in HTTP probe as a basis.
>
> --
>
> Enter same problem, with no real answer even this long after.
> (No feedback posted to the entry on the mailing list either.)
>
> Well, even after looking at the built in HTTP probe and other TCP
> probes,
> there still isn't an answer. Several options in the custom probes
> don't
> appear to be used yet.
>
> It doesn't matter to me, cmd-line or http. I can write a command-
> line python
> script that returns the data needed, but no way to get that return
> data into
> Intermapper.
>
> I tried using just ${EXIT_CODE} in the status window portion of the
> custom
> probe but even though I know the only thing output when IM runs the
> command
> is a number, IM reports on the status window 'unknown variable'.
>
> HTTP probe? I don't see how to assign what IM fetched to a
> variable, which I
> will add to the status window.
>
> Help? This doesn't seem very flexible, right now I'm forced to
> setup an
> snmpd server, and set oid's ahead of time just to graph in IM. Talk
> about
> triple the work!
>
> --Life is ten percent what happens to you and ninety percent how
> you respond
> to it.
> ____________________________________________________________________
> List archives: http://www.mail-archive.com/intermapper-talk%
> 40list.dartware.com/
> To unsubscribe: send email to: [EMAIL PROTECTED]
>
--
Life is ten percent what happens to you and ninety percent how you respond
to it.
____________________________________________________________________
List archives:
http://www.mail-archive.com/intermapper-talk%40list.dartware.com/
To unsubscribe: send email to: [EMAIL PROTECTED]