couldn't collect data!?

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

Moderators: Developers, Moderators

Post Reply
joecen
Posts: 15
Joined: Wed Mar 02, 2005 10:40 am

couldn't collect data!?

Post by joecen »

hi all.
I created a Query for a custom snmp value,but I found it couldn't data.

Here is XML Text

Code: Select all

<interface>
        <name>SNMP TEST FOR MAIL</name>
        <description>TEST THE SNMP QUERIES</description>
        <oid_index>.1.3.6.1.4.1.2021.52.1</oid_index>

        <fields>
                <TestName>
                        <name>The Test Snmp NAME</name>
                        <method>get</method>
                        <source>value</source>
                        <direction>input</direction>
                        <oid>.1.3.6.1.4.1.2021.52.2</oid>
                </TestName>
                <TheDValue>
                        <name>The D Value</name>
                        <method>get</method>
                        <source>value</source>
                        <direction>output</direction>
                        <oid>.1.3.6.1.4.1.2021.52.101.1</oid>
                </TheDValue>
                <TheEValue>
                        <name>The E Value</name>
                        <method>get</method>
                        <source>value</source>
                        <direction>output</direction>
                        <oid>.1.3.6.1.4.1.2021.52.101.2</oid>
                </TheEValue>
                <TheFValue>
                        <name>The F Value</name>
                        <method>get</method>
                        <source>value</source>
                        <direction>output</direction>
                        <oid>.1.3.6.1.4.1.2021.52.101.3</oid>
                </TheFValue>
        </fields>
</interface>
.1.3.6.1.4.1.2021.52 is a OID defined in my snmpd.conf file.

I created "Data Templates" and "Data Templates", no error display.

After I had created a new graph for this query,I couldn't find any data in my rrd file. (watch with "rrdtool fetch").

Can someone help?!!!
Attachments
graph template
graph template
graph_temp.JPG (133.41 KiB) Viewed 4246 times
data template
data template
data_temp.JPG (116.59 KiB) Viewed 4246 times
query Associated
query Associated
query_Associated.JPG (103.11 KiB) Viewed 4246 times
joecen
Posts: 15
Joined: Wed Mar 02, 2005 10:40 am

Re: couldn't collect data!?

Post by joecen »

snmp value :

Code: Select all

snmpwalk -v 2c -c comm 10.10.8.1 .1.3.6.1.4.1.2021.52   

UCD-SNMP-MIB::ucdavis.52.1.1 = INTEGER: 1
UCD-SNMP-MIB::ucdavis.52.2.1 = STRING: "Test"
UCD-SNMP-MIB::ucdavis.52.3.1 = STRING: "/tmp/echo.sh"
UCD-SNMP-MIB::ucdavis.52.100.1 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.52.101.1 = STRING: "70"
UCD-SNMP-MIB::ucdavis.52.101.2 = STRING: "50"
UCD-SNMP-MIB::ucdavis.52.101.3 = STRING: "70"
UCD-SNMP-MIB::ucdavis.52.102.1 = INTEGER: 0
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest