Skip to content

Instantly share code, notes, and snippets.

@silfreed
Created August 20, 2014 14:49
Show Gist options
  • Save silfreed/c59cfd6ef213a3a42c12 to your computer and use it in GitHub Desktop.
Save silfreed/c59cfd6ef213a3a42c12 to your computer and use it in GitHub Desktop.
# curlplugin-zoom-cablemodem-types.db
#
# DownstreamChannelPowerdBmVBase value:GAUGE:U:U
# DownstreamFrequencyBase value:GAUGE:U:U
# DownstreamQamBase value:GAUGE:U:U
# DownstreamSnrBase value:GAUGE:U:U
# UpstreamBwBase value:GAUGE:U:U
# UpstreamChannelIdBase value:GAUGE:U:U
# UpstreamChannelPowerBase value:GAUGE:U:U
# UpstreamFrequencyBase value:GAUGE:U:U
LoadPlugin curl
<Plugin curl>
# this status scraping was designed for the Zoom 5341 4x4 cable modem
<Page "cablestatus">
URL "http://192.168.100.1/status_connection.asp"
MeasureResponseTime false
#var CmDownstreamFrequencyBase = "290998047|0|0|0|";
<Match>
Regex "CmDownstreamFrequencyBase = \"([0-9]+)\\|[0-9]+\\|[0-9]+\\|[0-9]+\\|"
DSType "GaugeLast"
Type "DownstreamFrequencyBase"
Instance "0"
</Match>
<Match>
Regex "CmDownstreamFrequencyBase = \"[0-9]+\\|([0-9]+)\\|[0-9]+\\|[0-9]+\\|"
DSType "GaugeLast"
Type "DownstreamFrequencyBase"
Instance "1"
</Match>
<Match>
Regex "CmDownstreamFrequencyBase = \"[0-9]+\\|[0-9]+\\|([0-9]+)\\|[0-9]+\\|"
DSType "GaugeLast"
Type "DownstreamFrequencyBase"
Instance "2"
</Match>
<Match>
Regex "CmDownstreamFrequencyBase = \"[0-9]+\\|[0-9]+\\|[0-9]+\\|([0-9]+)\\|"
DSType "GaugeLast"
Type "DownstreamFrequencyBase"
Instance "3"
</Match>
#var CmDownstreamQamBase = "256 QAM|256 QAM|256 QAM|256 QAM|";
<Match>
Regex "CmDownstreamQamBase = \"([0-9]+) QAM\\|[0-9]+ QAM\\|[0-9]+ QAM\\|[0-9]+ QAM\\|"
DSType "GaugeLast"
Type "DownstreamQamBase"
Instance "0"
</Match>
<Match>
Regex "CmDownstreamQamBase = \"[0-9]+ QAM\\|([0-9]+) QAM\\|[0-9]+ QAM\\|[0-9]+ QAM\\|"
DSType "GaugeLast"
Type "DownstreamQamBase"
Instance "1"
</Match>
<Match>
Regex "CmDownstreamQamBase = \"[0-9]+ QAM\\|[0-9]+ QAM\\|([0-9]+) QAM\\|[0-9]+ QAM\\|"
DSType "GaugeLast"
Type "DownstreamQamBase"
Instance "2"
</Match>
<Match>
Regex "CmDownstreamQamBase = \"[0-9]+ QAM\\|[0-9]+ QAM\\|[0-9]+ QAM\\|([0-9]+) QAM\\|"
DSType "GaugeLast"
Type "DownstreamQamBase"
Instance "3"
</Match>
#var CmDownstreamChannelPowerdBmVBase = "5.0513|-9.3108|-9.3108|-9.3108|";
<Match>
Regex "CmDownstreamChannelPowerdBmVBase = \"([-.0-9]+)\\|[-.0-9]+\\|[-.0-9]+\\|[-.0-9]+\\|"
DSType "GaugeLast"
Type "DownstreamChannelPowerdBmVBase"
Instance "0"
</Match>
<Match>
Regex "CmDownstreamChannelPowerdBmVBase = \"[-.0-9]+\\|([-.0-9]+)\\|[-.0-9]+\\|[-.0-9]+\\|"
DSType "GaugeLast"
Type "DownstreamChannelPowerdBmVBase"
Instance "1"
</Match>
<Match>
Regex "CmDownstreamChannelPowerdBmVBase = \"[-.0-9]+\\|[-.0-9]+\\|([-.0-9]+)\\|[-.0-9]+\\|"
DSType "GaugeLast"
Type "DownstreamChannelPowerdBmVBase"
Instance "2"
</Match>
<Match>
Regex "CmDownstreamChannelPowerdBmVBase = \"[-.0-9]+\\|[-.0-9]+\\|[-.0-9]+\\|([-.0-9]+)\\|"
DSType "GaugeLast"
Type "DownstreamChannelPowerdBmVBase"
Instance "3"
</Match>
#var CmDownstreamSnrBase = "37.093|11.667|11.674|11.681|";
<Match>
Regex "CmDownstreamSnrBase = \"([-.0-9]+)\\|[-.0-9]+\\|[-.0-9]+\\|[-.0-9]+\\|"
DSType "GaugeLast"
Type "DownstreamSnrBase"
Instance "0"
</Match>
<Match>
Regex "CmDownstreamSnrBase = \"[-.0-9]+\\|([-.0-9]+)\\|[-.0-9]+\\|[-.0-9]+\\|"
DSType "GaugeLast"
Type "DownstreamSnrBase"
Instance "1"
</Match>
<Match>
Regex "CmDownstreamSnrBase = \"[-.0-9]+\\|[-.0-9]+\\|([-.0-9]+)\\|[-.0-9]+\\|"
DSType "GaugeLast"
Type "DownstreamSnrBase"
Instance "2"
</Match>
<Match>
Regex "CmDownstreamSnrBase = \"[-.0-9]+\\|[-.0-9]+\\|[-.0-9]+\\|([-.0-9]+)\\|"
DSType "GaugeLast"
Type "DownstreamSnrBase"
Instance "3"
</Match>
#var CmUpstreamChannelIdBase = "49|0|0|0|";
<Match>
Regex "CmUpstreamChannelIdBase = \"([-.0-9]+)\\|[-.0-9]+\\|[-.0-9]+\\|[-.0-9]+\\|"
DSType "GaugeLast"
Type "UpstreamChannelIdBase"
Instance "0"
</Match>
<Match>
Regex "CmUpstreamChannelIdBase = \"[-.0-9]+\\|([-.0-9]+)\\|[-.0-9]+\\|[-.0-9]+\\|"
DSType "GaugeLast"
Type "UpstreamChannelIdBase"
Instance "1"
</Match>
<Match>
Regex "CmUpstreamChannelIdBase = \"[-.0-9]+\\|[-.0-9]+\\|([-.0-9]+)\\|[-.0-9]+\\|"
DSType "GaugeLast"
Type "UpstreamChannelIdBase"
Instance "2"
</Match>
<Match>
Regex "CmUpstreamChannelIdBase = \"[-.0-9]+\\|[-.0-9]+\\|[-.0-9]+\\|([-.0-9]+)\\|"
DSType "GaugeLast"
Type "UpstreamChannelIdBase"
Instance "3"
</Match>
#var CmUpstreamFrequencyBase = "23000000|10000000|10000000|10000000|";
<Match>
Regex "CmUpstreamFrequencyBase = \"([-.0-9]+)\\|[-.0-9]+\\|[-.0-9]+\\|[-.0-9]+\\|"
DSType "GaugeLast"
Type "UpstreamFrequencyBase"
Instance "0"
</Match>
<Match>
Regex "CmUpstreamFrequencyBase = \"[-.0-9]+\\|([-.0-9]+)\\|[-.0-9]+\\|[-.0-9]+\\|"
DSType "GaugeLast"
Type "UpstreamFrequencyBase"
Instance "1"
</Match>
<Match>
Regex "CmUpstreamFrequencyBase = \"[-.0-9]+\\|[-.0-9]+\\|([-.0-9]+)\\|[-.0-9]+\\|"
DSType "GaugeLast"
Type "UpstreamFrequencyBase"
Instance "2"
</Match>
<Match>
Regex "CmUpstreamFrequencyBase = \"[-.0-9]+\\|[-.0-9]+\\|[-.0-9]+\\|([-.0-9]+)\\|"
DSType "GaugeLast"
Type "UpstreamFrequencyBase"
Instance "3"
</Match>
#var CmUpstreamBwBase = "3200000|6400000|6400000|6400000|";
<Match>
Regex "CmUpstreamBwBase = \"([-.0-9]+)\\|[-.0-9]+\\|[-.0-9]+\\|[-.0-9]+\\|"
DSType "GaugeLast"
Type "UpstreamBwBase"
Instance "0"
</Match>
<Match>
Regex "CmUpstreamBwBase = \"[-.0-9]+\\|([-.0-9]+)\\|[-.0-9]+\\|[-.0-9]+\\|"
DSType "GaugeLast"
Type "UpstreamBwBase"
Instance "1"
</Match>
<Match>
Regex "CmUpstreamBwBase = \"[-.0-9]+\\|[-.0-9]+\\|([-.0-9]+)\\|[-.0-9]+\\|"
DSType "GaugeLast"
Type "UpstreamBwBase"
Instance "2"
</Match>
<Match>
Regex "CmUpstreamBwBase = \"[-.0-9]+\\|[-.0-9]+\\|[-.0-9]+\\|([-.0-9]+)\\|"
DSType "GaugeLast"
Type "UpstreamBwBase"
Instance "3"
</Match>
#var CmUpstreamChannelPowerBase = "55.5000|-1.0000|-1.0000|-1.0000|";
<Match>
Regex "CmUpstreamChannelPowerBase = \"([-.0-9]+)\\|[-.0-9]+\\|[-.0-9]+\\|[-.0-9]+\\|"
DSType "GaugeLast"
Type "UpstreamChannelPowerBase"
Instance "0"
</Match>
<Match>
Regex "CmUpstreamChannelPowerBase = \"[-.0-9]+\\|([-.0-9]+)\\|[-.0-9]+\\|[-.0-9]+\\|"
DSType "GaugeLast"
Type "UpstreamChannelPowerBase"
Instance "1"
</Match>
<Match>
Regex "CmUpstreamChannelPowerBase = \"[-.0-9]+\\|[-.0-9]+\\|([-.0-9]+)\\|[-.0-9]+\\|"
DSType "GaugeLast"
Type "UpstreamChannelPowerBase"
Instance "2"
</Match>
<Match>
Regex "CmUpstreamChannelPowerBase = \"[-.0-9]+\\|[-.0-9]+\\|[-.0-9]+\\|([-.0-9]+)\\|"
DSType "GaugeLast"
Type "UpstreamChannelPowerBase"
Instance "3"
</Match>
</Page>
</Plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment