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
gather specific data via snmp
Moderators: Developers, Moderators
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
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
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
-
- Posts: 2
- Joined: Thu Apr 24, 2008 4:49 am
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Yesarzadkowolski wrote:so the best solution is to create 2 datasources for 2 different OIDs and draw them on single graph...
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 sigbut is there a way to put these oids in some xml file or the only way is to gather data by the script ?
Reinhard
Who is online
Users browsing this forum: No registered users and 0 guests