NaN value issue but snmpget ok in log

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
Ludow89
Posts: 6
Joined: Tue Nov 27, 2012 5:43 am

NaN value issue but snmpget ok in log

Post by Ludow89 »

Hello guys,

I am currently trying to graph the Tx/Rx optical levels of some network equipments (the brand is MRV).

I created a snmp query :

Code: Select all

<query>
	<name>Get OpticalLevels Information</name>
	<description>Get SNMP based optical levels informations from a MRV device</description>
	<index_order_type>numeric</index_order_type>
	<oid_index>.1.3.6.1.4.1.6926.1.18.1.1.2.1.2</oid_index>
	<oid_index_parse>OID/REGEXP:.*\.([0-9]{1,}\.[0-9]{1,})$</oid_index_parse>

	<fields>
		<SfpIndex>
			<name>Index</name>
			<source>index</source>
			<direction>input</direction>
		</SfpIndex>
		<SfpType>
			<name>Type</name>
			<method>walk</method>
			<source>value</source>
			<direction>input</direction>
			<oid>.1.3.6.1.4.1.6926.1.18.1.1.2.1.26</oid>
		</SfpType>
		<SfpSerial>
			<name>S/N</name>
			<method>walk</method>
			<source>value</source>
			<direction>input</direction>
			<oid>.1.3.6.1.4.1.6926.1.18.1.1.2.1.32</oid>
		</SfpSerial>
		<SfpBrand>
			<name>Brand</name>
			<method>walk</method>
			<source>value</source>
			<direction>input</direction>
			<oid>.1.3.6.1.4.1.6926.1.18.1.1.2.1.24</oid>
		</SfpBrand>
		<SfpTxLevel>
			<name>Tx Level</name>
			<method>walk</method>
			<source>value</source>
			<direction>output</direction>
			<oid>.1.3.6.1.4.1.6926.1.18.1.1.3.1.6</oid>
		</SfpTxLevel>
		<SfpRxLevel>
			<name>Rx Level</name>
			<method>walk</method>
			<source>value</source>
			<direction>output</direction>
			<oid>.1.3.6.1.4.1.6926.1.18.1.1.3.1.7</oid>
		</SfpRxLevel>
	</fields>
</query>
This query seems correct and poll the correct values, as I can see in the cacti.log file :
12/07/2012 03:15:13 PM - CMDPHP: Poller[0] Host[389] DS[6071] SNMP: v2: 10.7.84.243, dsname: SfpRxLevel, oid: .1.3.6.1.4.1.6926.1.18.1.1.3.1.7.1.4, output: -749
12/07/2012 03:15:14 PM - CMDPHP: Poller[0] Host[389] DS[6071] SNMP: v2: 10.7.84.243, dsname: SfpTxLevel, oid: .1.3.6.1.4.1.6926.1.18.1.1.3.1.6.1.4, output: 83
12/07/2012 03:15:14 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/lib/cacti/rra/os1_xxx_sfprxlevel_6071.rrd --template SfpTxLevel:SfpRxLevel 1354889713:83:-749
But my graph remains empty :

Image

Your help would be very appreciated on this :-)

Thanks and regards !
Last edited by Ludow89 on Tue Dec 11, 2012 11:18 am, edited 2 times in total.
Ludow89
Posts: 6
Joined: Tue Nov 27, 2012 5:43 am

Re: NaN value issue

Post by Ludow89 »

FYI :

- Other graphs (like traffic, CPU, ...) are working on the device.
- Minimum and Maximum values in the Data template are set to 'U'.
Ludow89
Posts: 6
Joined: Tue Nov 27, 2012 5:43 am

Re: NaN value issue

Post by Ludow89 »

I changed the Data Source Type from COUNTER to GAUGE and it's working for me now.......
mastrboy
Posts: 26
Joined: Wed Aug 02, 2006 2:40 am

Re: NaN value issue but snmpget ok in log

Post by mastrboy »

Could you share the XML graph/data templates and data query you used for this?
We are trying to measure the same data on the same equipment.
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests