本文整理汇总了Python中pymunin.muninMain函数的典型用法代码示例。如果您正苦于以下问题:Python muninMain函数的具体用法?Python muninMain怎么用?Python muninMain使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了muninMain函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: main
def main():
sys.exit(muninMain(MuninActiveMQPlugin))
开发者ID:bra-fsn,项目名称:PyMunin,代码行数:2,代码来源:activemqstats.py
示例2: MuninGraph
"FreeSwitch",
info="FreeSWITCH - Number of Active Calls.",
args="--base 1000 --lower-limit 0",
)
graph.addField("calls", "calls", type="GAUGE", draw="LINE2", info="Active Calls")
self.appendGraph("fs_calls", graph)
if self.graphEnabled("fs_channels"):
graph = MuninGraph(
"FreeSWITCH - Active Channels",
"FreeSWITCH",
info="FreeSWITCH - Number of Active Channels.",
args="--base 1000 --lower-limit 0",
)
graph.addField("channels", "channels", type="GAUGE", draw="LINE2")
self.appendGraph("fs_channels", graph)
def retrieveVals(self):
"""Retrieve values for graphs."""
fs = FSinfo(self._fshost, self._fsport, self._fspass)
if self.hasGraph("fs_calls"):
count = fs.getCallCount()
self.setGraphVal("fs_calls", "calls", count)
if self.hasGraph("fs_channels"):
count = fs.getChannelCount()
self.setGraphVal("fs_channels", "channels", count)
if __name__ == "__main__":
sys.exit(muninMain(MuninFreeswitchPlugin))
开发者ID:remotesyssupport,项目名称:PyMunin,代码行数:30,代码来源:fsstats.py
示例3: main
def main():
sys.exit(muninMain(MuninNginxPlugin))
开发者ID:phizev,项目名称:PyMunin,代码行数:2,代码来源:nginxstats.py
示例4: main
def main():
sys.exit(muninMain(MuninVarnishPlugin))
开发者ID:tehstone,项目名称:PyMunin,代码行数:2,代码来源:varnishstats.py
示例5: main
def main():
sys.exit(muninMain(MuninNTPhostOffsetPlugin))
开发者ID:phizev,项目名称:PyMunin,代码行数:2,代码来源:ntphostoffset_.py
示例6: main
def main():
sys.exit(muninMain(MuninNetstatsPlugin))
开发者ID:tehstone,项目名称:PyMunin,代码行数:2,代码来源:netstats.py
示例7: main
def main():
sys.exit(muninMain(MuninProcStatsPlugin))
开发者ID:dhepper,项目名称:PyMunin,代码行数:2,代码来源:procstats.py
示例8: main
def main():
sys.exit(muninMain(MuninRackspacePlugin))
开发者ID:87439247,项目名称:PyMunin,代码行数:2,代码来源:rackspacestats.py
示例9: main
def main():
sys.exit(muninMain(MuninFritzPlugin, debug=True))
开发者ID:jmbreuer,项目名称:PyMunin,代码行数:2,代码来源:fritzstats_.py
示例10: main
def main():
sys.exit(muninMain(MuninLighttpdPlugin))
开发者ID:pserrano,项目名称:PyMunin,代码行数:2,代码来源:lighttpdstats.py
示例11: main
def main():
sys.exit(muninMain(MuninCgminerPlugin))
开发者ID:Elbandi,项目名称:PyMunin,代码行数:2,代码来源:cgminer_.py
示例12: main
def main():
sys.exit(muninMain(MuninApachePlugin))
开发者ID:pserrano,项目名称:PyMunin,代码行数:2,代码来源:apachestats.py
示例13: main
def main():
sys.exit(muninMain(MuninAsteriskPlugin))
开发者ID:jcamach2,项目名称:PyMunin,代码行数:2,代码来源:asteriskstats.py
示例14: main
def main():
sys.exit(muninMain(RedisPlugin))
开发者ID:87439247,项目名称:PyMunin,代码行数:2,代码来源:redisstats.py
示例15: main
def main():
sys.exit(muninMain(MuninVoyagerPlugin))
开发者ID:prizos,项目名称:common-scripts,代码行数:2,代码来源:pymunin-voyagersnmp.py
示例16: MuninGraph
if self.graphEnabled('ntp_peer_stats'):
graph = MuninGraph('NTP Timing Stats for System Peer', 'Time',
info='Timing Stats for the NTP Server the system is in sync with.',
args='--base 1000 --lower-limit 0',
vlabel='seconds'
)
graph.addField('offset', 'offset', type='GAUGE', draw='LINE2')
graph.addField('delay', 'delay', type='GAUGE', draw='LINE2')
graph.addField('jitter', 'jitter', type='GAUGE', draw='LINE2')
self.appendGraph('ntp_peer_stats', graph)
def retrieveVals(self):
"""Retrieve values for graphs."""
ntpinfo = NTPinfo()
stats = ntpinfo.getPeerStats()
if stats:
if self.hasGraph('ntp_peer_stratum'):
self.setGraphVal('ntp_peer_stratum', 'stratum',
stats.get('stratum'))
if self.hasGraph('ntp_peer_stats'):
self.setGraphVal('ntp_peer_stats', 'offset',
stats.get('offset'))
self.setGraphVal('ntp_peer_stats', 'delay',
stats.get('delay'))
self.setGraphVal('ntp_peer_stats', 'jitter',
stats.get('jitter'))
if __name__ == "__main__":
sys.exit(muninMain(MuninNTPstatsPlugin))
开发者ID:mlavin,项目名称:PyMunin,代码行数:30,代码来源:ntpstats.py
示例17: main
def main():
sys.exit(muninMain(MuninPgPlugin))
开发者ID:pserrano,项目名称:PyMunin,代码行数:2,代码来源:pgstats.py
示例18: main
def main():
sys.exit(muninMain(MuninDiskUsagePlugin))
开发者ID:tehstone,项目名称:PyMunin,代码行数:2,代码来源:diskusagestats.py
示例19: main
def main():
sys.exit(muninMain(MuninDiskIOplugin))
开发者ID:87439247,项目名称:PyMunin,代码行数:2,代码来源:diskiostats.py
示例20: main
def main():
sys.exit(muninMain(MuninNetIfacePlugin))
开发者ID:dhepper,项目名称:PyMunin,代码行数:2,代码来源:netifacestats.py
注:本文中的pymunin.muninMain函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论