Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Post general support questions here that do not specifically fall into the Linux or Windows categories.
Moderators: Developers , Moderators
maxstoner
Posts: 16 Joined: Fri Dec 30, 2005 9:27 am
Post
by maxstoner » Tue Feb 07, 2006 2:48 pm
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!!
maxstoner
Posts: 16 Joined: Fri Dec 30, 2005 9:27 am
Post
by maxstoner » Tue Feb 07, 2006 4:44 pm
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>
gandalf
Developer
Posts: 22383 Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:
Post
by gandalf » Wed Feb 08, 2006 4:12 am
I suppose so. But personally, I always used exactly that documented way. Of course, your script must respond to those input parameters
Reinhard
maxstoner
Posts: 16 Joined: Fri Dec 30, 2005 9:27 am
Post
by maxstoner » Thu Feb 09, 2006 3:24 am
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
Users browsing this forum: No registered users and 0 guests