Cisco CSS SNMP rosetta stone
Moderators: Developers, Moderators
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.
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.
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.
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.
- Attachments
-
- css-new-v3.zip
- (65.85 KiB) Downloaded 1776 times
-
- Posts: 2
- Joined: Sun Feb 18, 2007 7:31 pm
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
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
-
- Posts: 2
- Joined: Sun Feb 18, 2007 7:31 pm
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...
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...
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: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.
Any luck with that maximum value? I've been hackin at it too but havn't made any progress yet.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.
Best regards,
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?
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?
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
+ 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 fileslavermil 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
Code: Select all
<xml_path><path_cacti>/resource/snmp_queries/css.xml</xml_path>
Code: Select all
<xml_path><path_cacti>/resource/snmp_queries/css.xml</xml_path>
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
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.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
-
- Cacti User
- Posts: 379
- Joined: Fri Feb 16, 2007 11:37 am
- Location: Emeryville, CA
- Contact:
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
Thanks much
app
[b]Cacti Version[/b] - 0.8.7b
[b]Plugin Architecture[/b] - 2.2 Beta
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.9-78.0.1.ELsmp
[b]Web Server[/b] - Apache/2.0.52 (Red Hat)
[b]PHP[/b] - 4.3.9
[b]MySQL[/b] - 4.1.22
[b]RRDTool[/b] - 1.2.23
[b]SNMP[/b] - 5.1.2
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.5)
SuperLinks (superlinks - v0.72)
Host Info (hostinfo - v0.2)
Report Creator (reports - v0.3)
Update Checker (update - v0.4)
Realtime for Cacti (realtime - v0.35)
Cacti Log View (clog - v1.1)
RRD File Cleaner (rrdclean - v0.36)
Network Discovery (discovery - v0.9)
Uptime (uptime - v0.4)[/list]
[b]Plugin Architecture[/b] - 2.2 Beta
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.9-78.0.1.ELsmp
[b]Web Server[/b] - Apache/2.0.52 (Red Hat)
[b]PHP[/b] - 4.3.9
[b]MySQL[/b] - 4.1.22
[b]RRDTool[/b] - 1.2.23
[b]SNMP[/b] - 5.1.2
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.5)
SuperLinks (superlinks - v0.72)
Host Info (hostinfo - v0.2)
Report Creator (reports - v0.3)
Update Checker (update - v0.4)
Realtime for Cacti (realtime - v0.35)
Cacti Log View (clog - v1.1)
RRD File Cleaner (rrdclean - v0.36)
Network Discovery (discovery - v0.9)
Uptime (uptime - v0.4)[/list]
-
- Cacti User
- Posts: 379
- Joined: Fri Feb 16, 2007 11:37 am
- Location: Emeryville, CA
- Contact:
<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
Thanks all.
I will play around and see if i can make it work
app
[b]Cacti Version[/b] - 0.8.7b
[b]Plugin Architecture[/b] - 2.2 Beta
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.9-78.0.1.ELsmp
[b]Web Server[/b] - Apache/2.0.52 (Red Hat)
[b]PHP[/b] - 4.3.9
[b]MySQL[/b] - 4.1.22
[b]RRDTool[/b] - 1.2.23
[b]SNMP[/b] - 5.1.2
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.5)
SuperLinks (superlinks - v0.72)
Host Info (hostinfo - v0.2)
Report Creator (reports - v0.3)
Update Checker (update - v0.4)
Realtime for Cacti (realtime - v0.35)
Cacti Log View (clog - v1.1)
RRD File Cleaner (rrdclean - v0.36)
Network Discovery (discovery - v0.9)
Uptime (uptime - v0.4)[/list]
[b]Plugin Architecture[/b] - 2.2 Beta
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.9-78.0.1.ELsmp
[b]Web Server[/b] - Apache/2.0.52 (Red Hat)
[b]PHP[/b] - 4.3.9
[b]MySQL[/b] - 4.1.22
[b]RRDTool[/b] - 1.2.23
[b]SNMP[/b] - 5.1.2
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.5)
SuperLinks (superlinks - v0.72)
Host Info (hostinfo - v0.2)
Report Creator (reports - v0.3)
Update Checker (update - v0.4)
Realtime for Cacti (realtime - v0.35)
Cacti Log View (clog - v1.1)
RRD File Cleaner (rrdclean - v0.36)
Network Discovery (discovery - v0.9)
Uptime (uptime - v0.4)[/list]
-
- Cacti User
- Posts: 379
- Joined: Fri Feb 16, 2007 11:37 am
- Location: Emeryville, CA
- Contact:
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
Thanks
app
[b]Cacti Version[/b] - 0.8.7b
[b]Plugin Architecture[/b] - 2.2 Beta
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.9-78.0.1.ELsmp
[b]Web Server[/b] - Apache/2.0.52 (Red Hat)
[b]PHP[/b] - 4.3.9
[b]MySQL[/b] - 4.1.22
[b]RRDTool[/b] - 1.2.23
[b]SNMP[/b] - 5.1.2
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.5)
SuperLinks (superlinks - v0.72)
Host Info (hostinfo - v0.2)
Report Creator (reports - v0.3)
Update Checker (update - v0.4)
Realtime for Cacti (realtime - v0.35)
Cacti Log View (clog - v1.1)
RRD File Cleaner (rrdclean - v0.36)
Network Discovery (discovery - v0.9)
Uptime (uptime - v0.4)[/list]
[b]Plugin Architecture[/b] - 2.2 Beta
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.9-78.0.1.ELsmp
[b]Web Server[/b] - Apache/2.0.52 (Red Hat)
[b]PHP[/b] - 4.3.9
[b]MySQL[/b] - 4.1.22
[b]RRDTool[/b] - 1.2.23
[b]SNMP[/b] - 5.1.2
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.5)
SuperLinks (superlinks - v0.72)
Host Info (hostinfo - v0.2)
Report Creator (reports - v0.3)
Update Checker (update - v0.4)
Realtime for Cacti (realtime - v0.35)
Cacti Log View (clog - v1.1)
RRD File Cleaner (rrdclean - v0.36)
Network Discovery (discovery - v0.9)
Uptime (uptime - v0.4)[/list]
Who is online
Users browsing this forum: No registered users and 0 guests