Cacti XML Regexp

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

Moderators: Developers, Moderators

Post Reply
Vills
Posts: 2
Joined: Mon Apr 29, 2019 11:40 pm

Cacti XML Regexp

Post by Vills »

Hi,i need display in cacti data query only active value DDM ( not null ) with help xml and oid regexp. That is, when i connected transceiver, cacti output in data query this port, which i can display. No connected ( with values "null" ) no displaying.
P.S. Sorry for my English

Code: Select all

<interface>
	<name>Get DDM Informtion</name>
	<description>DDM RX Power and TX Power Information</description>
	<oid_index>.1.3.6.1.4.1.*****.7.100.30.1.1.22</oid_index>
	<oid_num_indexes>.1.3.6.1.4.1.*****.7.100.30.3.1.1</oid_num_indexes>
	<index_order>ifIndex:ifName:ifOperStatus:ifDescr</index_order>
	<index_order_type>numeric</index_order_type>	
	<fields>
		<ifIndex>
			<name>Index</name>
			<method>walk</method>
			<source>value</source>
			<direction>input</direction>
			<oid>.1.3.6.1.2.1.2.2.1.1</oid>
		</ifIndex>
		<ifOperStatus>
			<name>Status</name>
			<method>walk</method>
			<source>value</source>
			<direction>input</direction>
			<oid>.1.3.6.1.2.1.2.2.1.8</oid>
		</ifOperStatus>
		<ifDescr>
			<name>Description</name>
			<method>walk</method>
			<source>value</source>
			<direction>input</direction>
			<oid>.1.3.6.1.2.1.2.2.1.2</oid>
		</ifDescr>
		<ifName>
			<name>Name (IF-MIB)</name>
			<method>walk</method>
			<source>value</source>
			<direction>input</direction>
			<oid>.1.3.6.1.2.1.31.1.1.1.1</oid>
		</ifName>
		<ddmDiagnosisRXPower>
			<name>DDM RX Power</name>
			<method>walk</method>
			<source>value</source>
			<direction>output</direction>
			<oid>.1.3.6.1.4.1.*****.7.100.30.1.1.17</oid>
		</ddmDiagnosisRXPower>
	<ddmDiagnosisTXPower>
			<name>DDM TX Power</name>
			<method>walk</method>
			<source>value</source>
			<direction>output</direction>
			<oid>.1.3.6.1.4.1.*****.7.100.30.1.1.22</oid>
		</ddmDiagnosisTXPower>
	</fields>
</interface>
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests