graph but no value

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

Moderators: Developers, Moderators

Post Reply
itobald
Posts: 13
Joined: Sun Oct 11, 2009 5:49 am

graph but no value

Post by itobald »

hi all,

i have a problem with my snmp query in xml. I try to check the number of used and free addresses on my Windows DHCP (it's on an Active Directory server). All seems to work correctly but when i check my graph, there aren't any value. So i need a little help to understand my problem.

i have attached my query in XML and the debug of my graph.

Thanks
Attachments
query_dhcp_ad.xml
xml query to know how many of addresses are used or free.
(848 Bytes) Downloaded 94 times
debug of my graph
debug of my graph
debug graph.png (77.14 KiB) Viewed 3598 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please see 2nd link of my sig for debugging
R.
itobald
Posts: 13
Joined: Sun Oct 11, 2009 5:49 am

Post by itobald »

i check all parameters in your sig and all seems ok.

I check the poller cache and i see something weird. OIDs don't use the value of the index of the request.

Normally, i must have .1.3.6.1.4.1.311.1.3.2.1.1.2.192.168.1.0 in my poller cache but i have .1.3.6.1.4.1.311.1.3.2.1.1.2.0.

I think there is a problem with my snmp query but i don't see it.
Have you any idea?

Thanks
Attachments
pollercache.png
pollercache.png (100.08 KiB) Viewed 3475 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

What does Verbose Query on that Data Query return?
R.
itobald
Posts: 13
Joined: Sun Oct 11, 2009 5:49 am

Post by itobald »

Verbose Query returns:

Code: Select all

+ Running data query [11].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/query_dhcp_ad.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.311.1.3.2.1.1.1'
+ Index found at OID: '1.3.6.1.4.1.311.1.3.2.1.1.1.192.168.1.0' value: '192.168.1.0'
+ Located input field 'ifScope' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.311.1.3.2.1.1.1'
+ Found item [ifScope='192.168.1.0'] index: 0 [from value]
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/query_dhcp_ad.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/query_dhcp_ad.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/query_dhcp_ad.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/query_dhcp_ad.xml'
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

What is the result on snmpwalk against 1.3.6.1.4.1.311.1.3.2.1.1.1.192.168.1.0?
Currently, you seem to have an index of "0" out of that instead of a "192.168.1.0". This might require an OID/REGEXP parse
Reinhard
itobald
Posts: 13
Joined: Sun Oct 11, 2009 5:49 am

Post by itobald »

The result of snmpwalk is :

Code: Select all

administrateur@srv-cacti:~$ snmpwalk -c tcom_sup -v 2c 192.168.1.1 1.3.6.1.4.1.311.1.3.2.1.1.1.192.168.1.0
SNMPv2-SMI::enterprises.311.1.3.2.1.1.1.192.168.1.0 = IpAddress: 192.168.1.0
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

That is as expected.
Nevertheless, cacti may have trouble with the dotted data.
Please try OID/REGEXP as suggested above instead
R.
itobald
Posts: 13
Joined: Sun Oct 11, 2009 5:49 am

Post by itobald »

Thanks a lot. It works, i have another problem but just with my scale.
I think i can find a solution on the forum.
itobald
Posts: 13
Joined: Sun Oct 11, 2009 5:49 am

Post by itobald »

i don't find any solution on the forum so i explain my problem here but i can create a new subject for this.

When i see my graph, values are not integer and they are multiplicated by a constant. (3.333). I think there is a probleme with my graph template or my data template because snmp request works fine (get the good OID).

have you any idea?
Attachments
problem value.png
problem value.png (84.03 KiB) Viewed 3296 times
cacti_data_template_dhcp_ad.xml
(9.43 KiB) Downloaded 87 times
cacti_graph_template_adress_dhcp_graph.xml
(16.18 KiB) Downloaded 88 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

RRDTool stores COUNTERs as "per second" values. You may want to multiply with your polling interval to get the "basic" value. But please study rrdtool consolidation to understand, waht happens. See 1st link of my sig, rrdtool chapter
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest