|
|
| Author |
Message |
tix6174
Joined: 01 Jul 2006 Posts: 4
|
Posted: Tue Jan 09, 2007 4:32 pm Post subject: Scripts Polling but Graphs aren't Right |
|
|
This group of scripts works great! I was manually creating the OID's before finding this. Thank You! Thank You!
I can get the graphs created and polling without any problems, however all the Service Connections graphs and most of Service Stats graphs have incorrect data.
The Svc Conn graphs all show a steady state of 65534 connections! The Svc Stats graphs show Zeros (which really have values).
The content rules seem to be working.
All this on a v7.50.0.4 CSS 11503 with SSL module.
Anyone have any ideas? I'm out of them.
|
|
| Back to top |
|
 |
gl2000
Joined: 08 Dec 2006 Posts: 4
|
Posted: Wed Jan 10, 2007 8:43 am Post subject: |
|
|
Here is the latest version of the CSS template. Changes are as follows.
1) I have corrected the issues pointed out by thierry.chich, thanks for pointing them out.
2) I changed the Service Connections Data Source Type from COUNTER to GAUGE. This should fix the problem tix6174 is having. You will probably need to recreate the graphs.
3) I have added Primary and Secondary Sorry Server hits to the Service Stats. These graphs may also need to be recreated to make them work.
| Description: |
|
 Download |
| Filename: |
css-new-v3.zip |
| Filesize: |
65.85 KB |
| Downloaded: |
889 Time(s) |
|
|
| Back to top |
|
 |
twochannel
Joined: 18 Feb 2007 Posts: 1
|
Posted: Sun Feb 18, 2007 9:37 pm Post subject: awesome! |
|
|
Great work!
I'm new to cacti, in fact it was this css thread that encouraged me to install it.
I have a few questions, mostly about how to best go about things.
1) By the time the title logic of "|host_description|/|query_apSvcNames| - Service Connections " is processed, information in the title is truncated. Specifically the apSvcName data. Is there a way increase the allowable characters for a graph title? I can obviously edit the titles, although it appears the graph template delegates this to the specific graphs themselves.
2) When graphing service stats, the max value is graphed as well (65535). Its nice to have a visual of the upper boundary, but the scaling causes the lower hit services (100-200 connections) to be but a blip on the map.
3) misc
- Service Connections are a snapshot type value. "At this time there are X connections". Not connections/sec rate.
I'm not sure about content hits though, that one may be /sec or incremental over time since last clearing.
-I had a content hit graph show 26million/sec, as a one time data spike. I'm thinking it was a corrupt data point between snmp/rrd?
-While setting up a few services on a css I had a pipedream thought. It would be nice if there was some constant between a content rule and the services tied to it (via oids?). On a 400+ service css it became a bit tedious to select the content rule, go hunt down all the services that belong to it etc. The hierarchical nature of the css config owner\content\service makes one hope there would exist a common shared piece of information that would give us a way to say "add content rule and child services".
-I hope ssl offload graphs are on someone's todo
|
|
| Back to top |
|
 |
twochannel
Joined: 18 Feb 2007 Posts: 1
|
Posted: Sun Feb 18, 2007 10:23 pm Post subject: some more thinking |
|
|
In my previous post I had a question about the max stat graphing of the service connections. After going through the svcext.mib it dawned on me that there are probably implementations where a max cconnection limit is set, much much lower than software/hardware theoretical max.
With that new found understanding my need is the same, I would indeed like to stop the graphing of the 65535 data. I might see if I can replace it with apSvcAvgLoad. This is a 0-255 value that shows a services load value based on the css's view of tcp traffic to/from the service.
I also came across the apSvcKalState part of the mib that indicated a services state. It might be be nice to use this as text for each graph... However, what would really rock, is a single graph that contained the connection count and load of each service for a given content rule... hrm...
|
|
| Back to top |
|
 |
bitgod
Joined: 31 Mar 2005 Posts: 19 Location: Texas, USA
|
Posted: Thu Feb 22, 2007 4:49 pm Post subject: |
|
|
| twochannel wrote: | | By the time the title logic of "|host_description|/|query_apSvcNames| - Service Connections " is processed, information in the title is truncated. Specifically the apSvcName data. Is there a way increase the allowable characters for a graph title? I can obviously edit the titles, although it appears the graph template delegates this to the specific graphs themselves. |
Just had to figure out how to adjust that myself.. check it out go to settings, the visual tab, and adjust the Maximum Title Length. I also adjusted the Maximum Field Length. Should fix ya up...
| twochannel wrote: | | With that new found understanding my need is the same, I would indeed like to stop the graphing of the 65535 data. I might see if I can replace it with apSvcAvgLoad. This is a 0-255 value that shows a services load value based on the css's view of tcp traffic to/from the service. |
Any luck with that maximum value? I've been hackin at it too but havn't made any progress yet.
Best regards,
|
|
| Back to top |
|
 |
bitgod
Joined: 31 Mar 2005 Posts: 19 Location: Texas, USA
|
Posted: Fri Feb 23, 2007 11:27 am Post subject: |
|
|
In regards to lowering the max value.. i think i found a better solution. I removed the max value all together so that im only graphing based on actual counts.. So my peaks go to the top of the graph and its much easier to read.
Go to data queries, click on CSS Service connections, click on the "Associated Graph Templates" link, then uncheck "svc_maxconns"
You'll have to recreate the graphs, but i think you'll be pleased.
---
Now my next quest is to find a way to script cacti so that if a new content rule is added to one of our hundreds of CSS', a new graph will automatically be created and added to the device.... hmmm.. I hate to recreate the wheel but im not having any luck with my searches. Any ideas?
|
|
| Back to top |
|
 |
lavermil
Joined: 15 Feb 2007 Posts: 45 Location: Phoenix, Arizona
|
Posted: Mon Mar 05, 2007 7:27 pm Post subject: |
|
|
Anyone know how to solve this? I have down loaded the latest css-v3.zip Am I missing something?
+ Running data query [13].
+ Found type = '3' [snmp query].
+ Could not find data query XML file at 'path_cacti/resource/snmp_queries/css.xml'
+ Error parsing XML file into an array.
+ Could not find data query XML file at 'path_cacti/resource/snmp_queries/css.xml'
+ Could not find data query XML file at 'path_cacti/resource/snmp_queries/css.xml'
+ Could not find data query XML file at 'path_cacti/resource/snmp_queries/css.xml'
</srv/www/htdocs/cacti/tarz/css-new-v3>: ls -als ../../resource/snmp_queries/
total 52
4 drwxr-xr-x 2 wwwrun www 4096 2007-03-05 17:03 .
4 drwxr-xr-x 5 wwwrun www 4096 2007-01-17 17:23 ..
4 -rw-r--r-- 1 wwwrun www 1412 2007-03-05 17:03 css-conns.xml
4 -rw-r--r-- 1 wwwrun www 2406 2007-03-05 17:03 css-svc.xml
4 -rw-r--r-- 1 wwwrun www 1053 2007-03-05 17:03 css-trfc.xml
4 -rw-r--r-- 1 wwwrun www 900 2007-03-05 17:05 css.xml
4 -rw-r--r-- 1 wwwrun www 1373 2007-01-17 17:23 host_disk.xml
8 -rw-r--r-- 1 wwwrun www 4312 2007-01-17 17:23 interface.xml
4 -rw-r--r-- 1 wwwrun www 3256 2007-01-17 17:23 kbridge.xml
4 -rw-r--r-- 1 wwwrun www 1532 2007-01-17 17:23 net-snmp_disk.xml
4 -rw-r--r-- 1 wwwrun www 1753 2007-01-17 17:23 netware_cpu.xml
4 -rw-r--r-- 1 wwwrun www 2104 2007-01-17 17:23 netware_disk.xml
|
|
| Back to top |
|
 |
lavermil
Joined: 15 Feb 2007 Posts: 45 Location: Phoenix, Arizona
|
Posted: Mon Mar 05, 2007 8:00 pm Post subject: |
|
|
| lavermil wrote: | Anyone know how to solve this? I have down loaded the latest css-v3.zip Am I missing something?
+ Running data query [13].
+ Found type = '3' [snmp query].
+ Could not find data query XML file at 'path_cacti/resource/snmp_queries/css.xml'
+ Error parsing XML file into an array.
+ Could not find data query XML file at 'path_cacti/resource/snmp_queries/css.xml'
+ Could not find data query XML file at 'path_cacti/resource/snmp_queries/css.xml'
+ Could not find data query XML file at 'path_cacti/resource/snmp_queries/css.xml'
</srv/www/htdocs/cacti/tarz/css-new-v3>: ls -als ../../resource/snmp_queries/
total 52
4 drwxr-xr-x 2 wwwrun www 4096 2007-03-05 17:03 .
4 drwxr-xr-x 5 wwwrun www 4096 2007-01-17 17:23 ..
4 -rw-r--r-- 1 wwwrun www 1412 2007-03-05 17:03 css-conns.xml
4 -rw-r--r-- 1 wwwrun www 2406 2007-03-05 17:03 css-svc.xml
4 -rw-r--r-- 1 wwwrun www 1053 2007-03-05 17:03 css-trfc.xml
4 -rw-r--r-- 1 wwwrun www 900 2007-03-05 17:05 css.xml
4 -rw-r--r-- 1 wwwrun www 1373 2007-01-17 17:23 host_disk.xml
8 -rw-r--r-- 1 wwwrun www 4312 2007-01-17 17:23 interface.xml
4 -rw-r--r-- 1 wwwrun www 3256 2007-01-17 17:23 kbridge.xml
4 -rw-r--r-- 1 wwwrun www 1532 2007-01-17 17:23 net-snmp_disk.xml
4 -rw-r--r-- 1 wwwrun www 1753 2007-01-17 17:23 netware_cpu.xml
4 -rw-r--r-- 1 wwwrun www 2104 2007-01-17 17:23 netware_disk.xml |
Nevermind. I found the error in the xml files. For those of us that don't copy paste stuff and actually move files, this causes an issue. This is what is in the files
| Code: |
<xml_path><path_cacti>/resource/snmp_queries/css.xml</xml_path>
|
This is what it should be if you are not going to be viewing the XML file in a web browser.
| Code: |
<xml_path><path_cacti>/resource/snmp_queries/css.xml</xml_path>
|
|
|
| Back to top |
|
 |
lavermil
Joined: 15 Feb 2007 Posts: 45 Location: Phoenix, Arizona
|
Posted: Tue Mar 06, 2007 12:24 pm Post subject: |
|
|
Does anyone know how/where to change the output of the displayed. By this I mean the conversion of ascii to text. I want more to be displayed. Example. I would like to see the owner displayed. Something like this.
On the "*Create Graphs for this Host" page I see all the services/content but now owner. Thus making it very hard to decide what owner they belong to. So I would like to change it so we can see the owner too.
8.100.99.111.110.110.101.99.116.8.120.109.108.100.99.97.112.112 xmldcapp
content
TO
8.100.99.111.110.110.101.99.116.8.120.109.108.100.99.97.112.112 dconnect xmldcapp
owner content
echo "8.100.99.111.110.110.101.99.116.8.120.109.108.100.99.97.112.112" | perl ascii2txt.pl.txt
dconnect xmldcapp
|
|
| Back to top |
|
 |
lavermil
Joined: 15 Feb 2007 Posts: 45 Location: Phoenix, Arizona
|
Posted: Tue Mar 06, 2007 1:58 pm Post subject: |
|
|
| lavermil wrote: | Does anyone know how/where to change the output of the displayed. By this I mean the conversion of ascii to text. I want more to be displayed. Example. I would like to see the owner displayed. Something like this.
On the "*Create Graphs for this Host" page I see all the services/content but now owner. Thus making it very hard to decide what owner they belong to. So I would like to change it so we can see the owner too.
8.100.99.111.110.110.101.99.116.8.120.109.108.100.99.97.112.112 xmldcapp
content
TO
8.100.99.111.110.110.101.99.116.8.120.109.108.100.99.97.112.112 dconnect xmldcapp
owner content
echo "8.100.99.111.110.110.101.99.116.8.120.109.108.100.99.97.112.112" | perl ascii2txt.pl.txt
dconnect xmldcapp |
After messing around for a little bit I have come up with a clean looking display for what I wanted for 3 out of 4 categories. I will have to just settle with that. I will update the graph templates and then I will upload my changes so you all can enjoy them too.
|
|
| Back to top |
|
 |
lavermil
Joined: 15 Feb 2007 Posts: 45 Location: Phoenix, Arizona
|
Posted: Tue Mar 06, 2007 3:21 pm Post subject: |
|
|
Can someone tell me how I add a new data_template_id, data_template_rrd_id?
I would like to track active connections as well as total connections.
|
|
| Back to top |
|
 |
apperrault Cacti User
Joined: 16 Feb 2007 Posts: 351 Location: Emeryville, CA
|
Posted: Thu Apr 05, 2007 4:32 pm Post subject: |
|
|
Thanks for what appear to be great scripts. Now i have a question regarding their use. We have two of these devices that were not really being used. We brought in a new Network Admin, and are finally going to start using these devices. I downloaded the version 3 of scripts, and un-zipped them, but what i am presented with is 29 XML files. I know that i do not have to import all of them, i assume that some of them probably need to go into script folders etc. can anyone tell me which of these files need to be imported and which of them need to be placed in specific folders?
Thanks much
app
|
|
| Back to top |
|
 |
apperrault Cacti User
Joined: 16 Feb 2007 Posts: 351 Location: Emeryville, CA
|
Posted: Thu Jun 21, 2007 4:27 pm Post subject: |
|
|
<BUMP> Anyone? Where do these files go? I know that the host template needs to be imported, but what about the others? Do I import all of the Data Templates and Graph templates? And what about the data query's and the 4 css-XXXXX.xml files, where do those go.
Thanks all.
I will play around and see if i can make it work
app
|
|
| Back to top |
|
 |
ialves
Joined: 20 Jul 2007 Posts: 2 Location: Brasil - SP
|
Posted: Thu Aug 09, 2007 12:01 pm Post subject: |
|
|
Copy the following files to <cacti-Home>/resource/snmp_queries
css-conns.xml css-svc.xml css-trfc.xml css.xml
The others you just have to import.
|
|
| Back to top |
|
 |
apperrault Cacti User
Joined: 16 Feb 2007 Posts: 351 Location: Emeryville, CA
|
Posted: Thu Aug 09, 2007 3:43 pm Post subject: |
|
|
Thanks, i should have posted back that i got it to work. I have a question for you though. Do you have the MIBS for these devices? I am getting some odd data on the index pages when i create graphs, and the last time this happened, it was because i was missing the MIBs in my MIBDIR folder.
Thanks
app
|
|
| Back to top |
|
 |
|