Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Send variable string through snmp query

Status
Not open for further replies.

zaradell

Technical User
Dec 21, 2007
77
PT
Good afternoon

I need your help


I have the following scenario: I have a local machine and a remote machine. In my local machine I have a snmp client (nagios) performing a snmp query to my remote machine.

In my remote machine I have a private OID pointing to the following command: "perl /test/script.pl -s Metrix Probe01"

My problem is the following: the string "Probe01" is a variable field. It can be Probe01 or Probe02, Probe03 and so on...

I don´t want to create several OID´s to each probe. I want to have one OID, but a "variable" OID (if such thing is possible).

I want to have a OID pointing to the following command:

perl /test/script.pl -s Metrix $Probe

and I want to send the variable $Probe from my local machine through the snmp query: is it possible? If so, how?


Any help is apreciated.


 
Not sure it would work, but you might be able to pass the probe value using a context. I would read up on it to see if it is possible.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top