Juniper FRU statistics
Moderators: Developers, Moderators
Juniper FRU statistics
Hi all,
We use Juniper M160's and Juniper M10's and I've created the following data query
which can pull off CPU, Buffer & Heap, and temperature from the Field Replacable Units
within each router.
Copy the data query into resource/snmp_queries and then import the host template
which is also attached.
I hope you find them useful.
--
Bradley Kite
We use Juniper M160's and Juniper M10's and I've created the following data query
which can pull off CPU, Buffer & Heap, and temperature from the Field Replacable Units
within each router.
Copy the data query into resource/snmp_queries and then import the host template
which is also attached.
I hope you find them useful.
--
Bradley Kite
- Attachments
-
- cacti_host_template_juniper_m_series.xml
- Host Template for Juniper M10 and M160 (and maybe other M Series routers too)
- (136.38 KiB) Downloaded 6609 times
-
- cacti_data_query_juniper_fru_stats.xml
- Juniper FRU Statistics Data Query
- (34.15 KiB) Downloaded 5042 times
These are some great templates, however, when attempting to do the query, it appears that the snmpwalk process starts at the beginning of the MIB tree and queries for every single OID on the system. In addition, when going to "Create graphs for this host", the following shows up under the Graph Templates section:
Warning: reset(): Passed variable is not an array or object in /opt/web/virtual/cacti/graphs_new.php on line 534
Warning: Variable passed to each() is not an array or object in /opt/web/virtual/cacti/graphs_new.php on line 535
Warning: reset(): Passed variable is not an array or object in /opt/web/virtual/cacti/graphs_new.php on line 610
Warning: Variable passed to each() is not an array or object in /opt/web/virtual/cacti/graphs_new.php on line 611
EDIT: After looking at the data query, there are no OIDs in it. Reading through the Cacti docs, I found this glaring out at me: "All data queries have two parts, the XML file and the definition within Cacti. An XML file must be created for each query, that defines where each piece of information is and how to retrieve it. This could be thought of as the actual query. The second part is a definition within Cacti, which tells Cacti where to find the XML file and associates the data query with one or more graph templates."
Can you post your actual XML file?
Warning: reset(): Passed variable is not an array or object in /opt/web/virtual/cacti/graphs_new.php on line 534
Warning: Variable passed to each() is not an array or object in /opt/web/virtual/cacti/graphs_new.php on line 535
Warning: reset(): Passed variable is not an array or object in /opt/web/virtual/cacti/graphs_new.php on line 610
Warning: Variable passed to each() is not an array or object in /opt/web/virtual/cacti/graphs_new.php on line 611
EDIT: After looking at the data query, there are no OIDs in it. Reading through the Cacti docs, I found this glaring out at me: "All data queries have two parts, the XML file and the definition within Cacti. An XML file must be created for each query, that defines where each piece of information is and how to retrieve it. This could be thought of as the actual query. The second part is a definition within Cacti, which tells Cacti where to find the XML file and associates the data query with one or more graph templates."
Can you post your actual XML file?
Data Query XML File
Hi all,
Sorry for the delay, indeed I did forget the XML file. It is now attached.
Regards
--
Brad.
Sorry for the delay, indeed I did forget the XML file. It is now attached.
Regards
--
Brad.
- Attachments
-
- juniper_fru.xml
- Place this XML file in resources/snmp_queries
- (2.14 KiB) Downloaded 4159 times
Hi all
I've tried to import these xml files (in the correct order) but don't work:
First of all i put the 2 query files in /resource/snmp_queries and import from it. All ok, but ony one of these runs. But when i try to import the host template (just making a copy&paste) nothing else mathers and no new Host type seems to apear here.
Anybody have the same error?
waas
P.D: ... Juniper M20 witch PIC integrated services and 2 Ge, 1 STM16 and 4 STM4. I neeed to monitor it!!
I've tried to import these xml files (in the correct order) but don't work:
First of all i put the 2 query files in /resource/snmp_queries and import from it. All ok, but ony one of these runs. But when i try to import the host template (just making a copy&paste) nothing else mathers and no new Host type seems to apear here.
Anybody have the same error?
waas
P.D: ... Juniper M20 witch PIC integrated services and 2 Ge, 1 STM16 and 4 STM4. I neeed to monitor it!!
Ok. I've put the two queries (juniper_fru.xml and cacti_data_query_juniper_fru_stats.xml) under <cacti_dir>/resources/snmp_queries. Later I've tried to import the host template from the web interface and the message is "Error: XML: Hash version does not exist." If i try to import one of the data queries from the web interface it seems all ok, but no graphs templates appear and no snmp queris are done...You have to put the juniper_fru.xml query on the server itself under <cacti_dir>/resources/snmp_queries/. You can't import this file via the Import tool.
no joy on a m20
These are the steps I took:
1. Import the cacti_host_template_juniper_m_series.xml and the cacti_data_query_juniper_fru_stats.xml via the web interface Import function.
2. Put the juniper_fru.xml in the <cacti_dir>/resources/snmp_queries/ directory.
3. Add a new device that is an M-Series router (M5, M7i, M20, M40, etc.).
Again, even after all that, the graphs don't seem to be working. The queries run as expected, but only one data point is entered on the graph - the rest of the graph is blank. I can probably troubleshoot it myself, but I just haven't had the time...maybe this weekend.
1. Import the cacti_host_template_juniper_m_series.xml and the cacti_data_query_juniper_fru_stats.xml via the web interface Import function.
2. Put the juniper_fru.xml in the <cacti_dir>/resources/snmp_queries/ directory.
3. Add a new device that is an M-Series router (M5, M7i, M20, M40, etc.).
Again, even after all that, the graphs don't seem to be working. The queries run as expected, but only one data point is entered on the graph - the rest of the graph is blank. I can probably troubleshoot it myself, but I just haven't had the time...maybe this weekend.
Juniper FRU statistics
Hi all
1. Change the polling-interval to 1 min.
2. Modify the the "Juniper - FRU*" "Data Templates" and change in "Data Source" the "Step" value to 300 and in "Data Source Item" the "Hearthbeat" value to 600. After that recreate the corresponding rrd files.
I had the same problem here and discovered two options to solve it.bleearg wrote:Again, even after all that, the graphs don't seem to be working. The queries run as expected, but only one data point is entered on the graph - the rest of the graph is blank.
1. Change the polling-interval to 1 min.
2. Modify the the "Juniper - FRU*" "Data Templates" and change in "Data Source" the "Step" value to 300 and in "Data Source Item" the "Hearthbeat" value to 600. After that recreate the corresponding rrd files.
Problems with creating rrd and graphs
Hi i put the FRU snmp query in snmpquery dir,imported 2 xml files.
Change step from 60 to 300 and heartbeat to 600.
My polling cycle is every 1min.
And i cant seem to create even rrds with Create Graphs
My rrd debug says:
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="R1 - CFEB 0 Internet Processor II - Buffer Utilisation" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="percent" \
--slope-mode \
DEF:a="/usr/local/apache/htdocs/cacti/rra/r1_fru_buffers_3336.rrd":fru_buffers:AVERAGE \
DEF:b="/usr/local/apache/htdocs/cacti/rra/r1_fru_buffers_3336.rrd":fru_buffers:AVERAGE \
AREA:b#FFC3C0:"" \
LINE2:b#FF3932:"Buffer Utilisation" \
GPRINTLAST:"Current\:%8.0lf" \
GPRINTAVERAGE:"Average\:%8.0lf" \
GPRINTMAX:"Maximum\:%8.0lf"
RRDTool Says:
ERROR: opening '/usr/local/apache/htdocs/cacti/rra/r1_fru_buffers_3336.rrd': No such file or directory
----
I have M10i router ,the interfaces and uptime graphs are working great.
Anyone has made through with those scripts?
Please reply
Peter
Change step from 60 to 300 and heartbeat to 600.
My polling cycle is every 1min.
And i cant seem to create even rrds with Create Graphs
My rrd debug says:
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="R1 - CFEB 0 Internet Processor II - Buffer Utilisation" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="percent" \
--slope-mode \
DEF:a="/usr/local/apache/htdocs/cacti/rra/r1_fru_buffers_3336.rrd":fru_buffers:AVERAGE \
DEF:b="/usr/local/apache/htdocs/cacti/rra/r1_fru_buffers_3336.rrd":fru_buffers:AVERAGE \
AREA:b#FFC3C0:"" \
LINE2:b#FF3932:"Buffer Utilisation" \
GPRINTLAST:"Current\:%8.0lf" \
GPRINTAVERAGE:"Average\:%8.0lf" \
GPRINTMAX:"Maximum\:%8.0lf"
RRDTool Says:
ERROR: opening '/usr/local/apache/htdocs/cacti/rra/r1_fru_buffers_3336.rrd': No such file or directory
----
I have M10i router ,the interfaces and uptime graphs are working great.
Anyone has made through with those scripts?
Please reply
Peter
Re: Juniper FRU statistics
Hi all.
Can someone pinpoint me where I can get CPU/Memory template for Juniper MX960/320 ?
Or how difficult it cand be building yourself, as describe here
http://forums.cacti.net/viewtopic.php?t ... ht=juniper
Can someone pinpoint me where I can get CPU/Memory template for Juniper MX960/320 ?
Or how difficult it cand be building yourself, as describe here
http://forums.cacti.net/viewtopic.php?t ... ht=juniper
Re: Juniper FRU statistics
well gr8 this just work fine
i have got every thing running but i observe a graph naming problem
graph for daily working fine but with the name hourly(1 minute average)
same for hourly it say graph for daily (5 minute average)
can you please solve this
i have got every thing running but i observe a graph naming problem
graph for daily working fine but with the name hourly(1 minute average)
same for hourly it say graph for daily (5 minute average)
can you please solve this
Who is online
Users browsing this forum: No registered users and 1 guest