Skip to content

Library to send message status and graf data to xymon server

License

Notifications You must be signed in to change notification settings

ragonlan/pyXymon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyXymon

Library to send message status and graf data to xymon server

Example

#!/usr/bin/env python
# -*- coding: utf-8 -*-
from pyXymon import Xymon,XymonGraph
import sys

x = Xymon(test='test', server='xymon1.acens.priv', host='pru.server.priv')
vars = x.LoadConf('/etc/xymon/xymonclient.cfg');
x.green()
x.say("test text")
x.colorLine('yellow',"line status")
x.send()

# rrd file name will be test.rrd
xg=XymonGraph(test='test', server='xymon1.server.priv', host='pru.server.priv')
xg.insert(51, 'ds0')
#xg.show()
xg.send()
# rrd file name become test,side1.rrd
xg=XymonGraph(test='test', server='xymon1.server.priv', host='pru.server.priv', rrdname='side1') 
xg.insert(51, 'ds0')
#xg.show()
xg.send()

About

Library to send message status and graf data to xymon server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages