|
|
| Author |
Message |
gifty
Joined: 17 Jul 2008 Posts: 21
|
Posted: Thu Jul 17, 2008 2:08 pm Post subject: Can Cacti auto detect ? |
|
|
Hi
I was wondering can cacti auto detect if router is 32 bit or 64 bit ?
I was trying to write a script to auto add graphs, on information available in database,
But i can not chose between In/out bits and In/Out bits (64 bit counter) using query in database. How should i do that ?
Please Help me as i am newbie to Cacti.
Thanks a lot
-Vineet Singh |
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9473 Location: MI, USA
|
Posted: Fri Jul 25, 2008 1:06 pm Post subject: |
|
|
You should do the following, in this order:
1) Poll the High Speed Uptime using snmpv2c. if you get a good value use 64bit
2) Poll the ifSpeed using snmpv2c if you can, walk the High Speed Counters, if all good, use 64bit
3) Else, use 32bit
TheWitness |
|
| Back to top |
|
 |
gifty
Joined: 17 Jul 2008 Posts: 21
|
Posted: Fri Jul 25, 2008 1:15 pm Post subject: |
|
|
You should do the following, in this order:
1) Poll the High Speed Uptime using snmpv2c. if you get a good value use 64bit
2) Poll the ifSpeed using snmpv2c if you can, walk the High Speed Counters, if all good, use 64bit
3) Else, use 32bit
TheWitness
Hi, Thanks a lot for replying.
Can you please tell me "How to poll?" ... Like u said "Poll the High Speed Uptime" -> How can i do that.
I am really new to cacti so do not know most of the things.
Please let me know.
Thanks a lot.
-Vineet Singh |
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9473 Location: MI, USA
|
Posted: Fri Jul 25, 2008 1:21 pm Post subject: |
|
|
Use the cacti functions cacti_snmp_get and cacti_snmp_walk. Do a walk of one of your 64bit devices to find the High Speed stuff. I don't have it handy.
TheWitness |
|
| Back to top |
|
 |
gifty
Joined: 17 Jul 2008 Posts: 21
|
Posted: Fri Jul 25, 2008 1:53 pm Post subject: |
|
|
Hi,
I do not know how to use those functions?
It was not there in tutorials .
From where i can get tutorials for those functions ?
All i know is what its on cacti site documentation and it was not in there.
Please tell me.
Thanks a lot.
-Vineet Singh |
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9473 Location: MI, USA
|
Posted: Fri Jul 25, 2008 8:40 pm Post subject: |
|
|
I would review the few scripts that we include in the base package. There you will find a few snmp function calls that give you all the details. If you are unfamiliar with snmp, then you will learn.
There is nothing better for creation than reference artwork.
TheWitness |
|
| Back to top |
|
 |
gifty
Joined: 17 Jul 2008 Posts: 21
|
Posted: Mon Jul 28, 2008 1:10 pm Post subject: |
|
|
Hey,
Can you tell me which files i have to look in ?
Thanks
-Vineet Singh |
|
| Back to top |
|
 |
|