SNMP Scripting

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
maxstoner
Posts: 16
Joined: Fri Dec 30, 2005 9:27 am

SNMP Scripting

Post by maxstoner »

Hi,

I have some questions regarding SNMP queries out of a script.

Per example when cacti queries for a router's interfaces. What is being sent to a script that should find all interfaces at the router?

Is it correct, that cacti sends something like
host_name "query"
Are there any further commands values sent?

When polling that interfaces (all 5 minutes) what is then being sent out?
host_name "get" OID ???

Would be really great if someone can help!!
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please see Script Query XML Syntax. Does this help you?
Reinhard
maxstoner
Posts: 16
Joined: Fri Dec 30, 2005 9:27 am

Post by maxstoner »

hi,

does that mean, that i can choose what is passed to my script?

per examle:
if you need arg_index say "index" and so on?!

<arg_index>index</arg_index>
<arg_query>query</arg_query>
<arg_get>get</arg_get>
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

I suppose so. But personally, I always used exactly that documented way. Of course, your script must respond to those input parameters :wink:
Reinhard
maxstoner
Posts: 16
Joined: Fri Dec 30, 2005 9:27 am

Post by maxstoner »

Just one last question.
Of course in my scripts it is necessary to call the parameter in the correct order.
Is there any description what that order will be out of cacti?

Thanks Markus
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests