Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sun May 26, 2019 12:51 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: [SOLVED]snmp xml queries - data
PostPosted: Fri Dec 14, 2018 11:22 am 
Offline
Cacti User

Joined: Mon Oct 01, 2018 10:09 am
Posts: 117
Hello All,

I would like to create a custom snmp data query to
return just one value (more later).
I have a graph/data source created for a device (with 428 snmp index count)
for just one of its interfaces. This updates rrd file with no data, hence blank graph.

I can do an snmpwalk or snmpget for the device with the oid representing the data I
want to graph, and those commands return the bits/bytes transferred.

The base problem is that when cacti poller runs, no data is retreived for this specific interface.
Data and graphs are created for other interfaces. There is a total of 41 graphs for this device.
It is a Cisco Catalyst 4500.

I would like a custom xml query for just one oid, and then I would match it to a graph temlate,
and then attach the query to the device.

I have reviewed the cacti docs on creating such queries, but have failed to understand how
to get this query to work. Also there is no snmp table involved with this (that I can find).

Any tips on how to do this?

eholz1


Last edited by eholz1 on Wed Jan 30, 2019 2:04 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: snmp xml queries - data
PostPosted: Fri Jan 04, 2019 6:44 am 
Offline
Cacti Pro User
User avatar

Joined: Mon Jan 05, 2015 10:10 am
Posts: 753
1) Use spine
2) Manually run spine using this syntax

./spine -V 3 -S -R -f yourhostid -l yourhostid

3) See if you are really getting data
4) If not, check the poller cahce for real entries.
5) If so, check file permissions

_________________
Before history, there was a paradise, now dust.


Top
 Profile  
 
 Post subject: Re: snmp xml queries - data
PostPosted: Thu Jan 24, 2019 11:43 am 
Offline
Cacti User

Joined: Mon Oct 01, 2018 10:09 am
Posts: 117
Hello Cacit Expert,

Thanks for the tip here - actually handy to run on
any device to see what's the haps.

I have an issue with the system now (cacti-1-1.38),
I have a junipter mx80, and it uses the interfaces.xml cacti data query.
Initially when the device was added, and I added the interfaces.xml
it returned data, 123 rows, 1200 interfaces.
Graphs are created for it (not 1200!). The snmp query times out periodically.
This happens on all our Juniper MX-80s.

If I delete the interfaces.xml query from the device, and re-add it later, the query loads
but returns no rows and no interfaces. This happens on all there devices.

If I perform the same action on a basic cisco switch or router - the query succeeds and returns appropriate items and rows.
I am trying to understand why the Junipers have snmp timeout warnings in the log.

Any ideas?
eholz1


Top
 Profile  
 
 Post subject: Re: snmp xml queries - data
PostPosted: Thu Jan 24, 2019 2:29 pm 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2474
It will likely be down to what data is returned/not returned by the Junipers and whether you are having any network connectivity issues to those devices. You should also try walking the OIDs being queried manually to see what data you get back.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group