SNMP Script Bluesocket

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

Moderators: Developers, Moderators

Post Reply
hideik
Posts: 10
Joined: Mon May 04, 2009 6:00 am

SNMP Script Bluesocket

Post by hideik »

Hi

I´m newbie on Cacti.

I ´m a cacti user from 3 weeks ago.

I´m trying to make a little snmp script for Bluesocket Wireless Controller.

The sript must be collect relatime loged users.

MIB is .1.3.6.1.4.1.9967.1.13.1.2.0

My script is this, but don´t works :)


<interface>
<name>Bluesocket</name>
<description>Users</description>
<oid_index>.1.3.6.1.4.1.9967.1.13.1.2</oid_index>
<oid_num_indexes>.1.3.6.1.4.1.9967.1.13.1.2</oid_num_indexes>

<fields>
<ifIndex>
<name>Index</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.9967.1.13.1.2</oid>
</ifIndex>
</fields>
</interface>



Thanks
hideik
Posts: 10
Joined: Mon May 04, 2009 6:00 am

Post by hideik »

I´m again :)

verbose query result

+ Running data query [13].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/html/resource/snmp_queries/bluesocket.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.9967.1.13.1.2'
+ No SNMP data returned
+ Found data query XML file at '/var/www/html/resource/snmp_queries/bluesocket.xml'
+ Found data query XML file at '/var/www/html/resource/snmp_queries/bluesocket.xml'
+ Found data query XML file at '/var/www/html/resource/snmp_queries/bluesocket.xml'


From command line its ok


[root@localhost ~]# snmpwalk -v 2c -c Canopy 10.100.0.30 .1.3.6.1.4.1.9967.1.13.1.2
SNMPv2-SMI::enterprises.9967.1.13.1.2.0 = INTEGER: 7

Sorry, and thanks!
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

If you only need to graph that single OID, use the snmp generic OID data template and graph templates.
hideik
Posts: 10
Joined: Mon May 04, 2009 6:00 am

Post by hideik »

BSOD2600 wrote:If you only need to graph that single OID, use the snmp generic OID data template and graph templates.
Thanks!

I create a copy from generic data and graph template of snmp oid.

Data template

i use the oid on the field.

I create a graph template from data template.

I create a new graph using both, and the result is this.

Atachment.

No errors, but graph is always in nan state.

Thanks, ans Sorry
Attachments
bluesocket.JPG
bluesocket.JPG (86.25 KiB) Viewed 2281 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

hideik
Posts: 10
Joined: Mon May 04, 2009 6:00 am

Post by hideik »

BSOD2600 wrote:Follow http://docs.cacti.net/manual:087:4_help ... #debugging why its not working.
Thanks BSOD2600

now rrd says ok

Poller cache shows snmp oid config

but the graph show this :
Attachments
graph_image.php.png
graph_image.php.png (18.57 KiB) Viewed 2237 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

With debugging, did that OID return data? was the data updated in the rrd file?
hideik
Posts: 10
Joined: Mon May 04, 2009 6:00 am

Post by hideik »

05/28/2009 12:36:02 PM - SPINE: Poller[0] Host[2] DS[26] SNMP: v2: 10.100.0.30, dsname: snmp_oid, oid: .1.3.6.1.4.1.9967.1.13.1.2.0, value: 3


It seems OK.

was the data updated in the rrd file? (Sorry but, i don´t know how can i see this)

:)

Thanks!
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

hideik wrote:was the data updated in the rrd file? (Sorry but, i don´t know how can i see this)
look for 'rrdtool update' that specifies the rrd file which is defined in that data source.

Also, you probably want to change the data template to use a GAUGE instead of COUNTER type. Delete the rrd file once you make this change.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests