gather specific data via snmp

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
arzadkowolski
Posts: 2
Joined: Thu Apr 24, 2008 4:49 am

gather specific data via snmp

Post by arzadkowolski »

hi,
i know that i can wrote a script which outputs for example TotalMemory, Free and Used using multiple output field.

but i don't know how to prepare xml file for snmp, to gather the same parameters - could anyone put some example?

let's say i want to use snmget for gather value for 2-3 OID

thanks,
Adam
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Nogo.
A Script can be used for a single output or a multiple output.
A "GEneral SNMP OID" Method can be used for a single OID only.

For both scripts and SNMP, Data Query exists. But they work on table structures only!

Two solutions possible:
- Write a script that wraps multiple SNMP calls (ugly and slow).
- use a single "SNMP OID" method for each OID.
I prefer the second one. It's faster and offers more flexibility. And space usgae does not differ from the first one
Reinhard
arzadkowolski
Posts: 2
Joined: Thu Apr 24, 2008 4:49 am

Post by arzadkowolski »

so the best solution is to create 2 datasources for 2 different OIDs and draw them on single graph...

but is there a way to put these oids in some xml file or the only way is to gather data by the script ?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

arzadkowolski wrote:so the best solution is to create 2 datasources for 2 different OIDs and draw them on single graph...
Yes
but is there a way to put these oids in some xml file or the only way is to gather data by the script ?
No need to do so. Just create two copied of the "Generic SNMP OID" Data Template and use the correct OIDs. This is shown at the first link of my sig
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests