本文整理汇总了Python中pymunin.muninMain函数的典型用法代码示例。如果您正苦于以下问题:Python muninMain函数的具体用法?Python muninMain怎么用?Python muninMain使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了muninMain函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: main
def main():
sys.exit(muninMain(MuninActiveMQPlugin))
示例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))
示例3: main
def main():
sys.exit(muninMain(MuninNginxPlugin))
示例4: main
def main():
sys.exit(muninMain(MuninVarnishPlugin))
示例5: main
def main():
sys.exit(muninMain(MuninNTPhostOffsetPlugin))
示例6: main
def main():
sys.exit(muninMain(MuninNetstatsPlugin))
示例7: main
def main():
sys.exit(muninMain(MuninProcStatsPlugin))
示例8: main
def main():
sys.exit(muninMain(MuninRackspacePlugin))
示例9: main
def main():
sys.exit(muninMain(MuninFritzPlugin, debug=True))
示例10: main
def main():
sys.exit(muninMain(MuninLighttpdPlugin))
示例11: main
def main():
sys.exit(muninMain(MuninCgminerPlugin))
示例12: main
def main():
sys.exit(muninMain(MuninApachePlugin))
示例13: main
def main():
sys.exit(muninMain(MuninAsteriskPlugin))
示例14: main
def main():
sys.exit(muninMain(RedisPlugin))
示例15: main
def main():
sys.exit(muninMain(MuninVoyagerPlugin))