X-Git-Url: http://git.onelab.eu/?p=monitor.git;a=blobdiff_plain;f=zabbix%2Fzabbixsync.py;fp=zabbix%2Fzabbixsync.py;h=aaee4ff89852e7565c03c4ce5c78ce3f6085db7c;hp=5cc2cd35ce7d8341120159a5c7ab7c8d3c731503;hb=c9d06f3b274ecbc092a0b3eb1f5ceb6c0f734aad;hpb=c678c008f0c3a10947b38880e52005a856e1b122 diff --git a/zabbix/zabbixsync.py b/zabbix/zabbixsync.py index 5cc2cd3..aaee4ff 100755 --- a/zabbix/zabbixsync.py +++ b/zabbix/zabbixsync.py @@ -44,7 +44,7 @@ if __name__=="__main__": from monitor import parser as parsermodule parser = parsermodule.getParser(['cacheset']) - parser.set_defaults( setupglobal=False, syncsite=True, site=None, setupids=False) + parser.set_defaults( setupglobal=False, syncsite=True, site=None, sitelist=None, setupids=False) parser.add_option("", "--setupids", action="store_true", dest="setupids", help="Setup global IDs.") parser.add_option("", "--setupglobal", action="store_true", dest="setupglobal", @@ -53,6 +53,8 @@ if __name__=="__main__": help="Do not sync sites.") parser.add_option("", "--site", dest="site", help="Sync only given site name.") + parser.add_option("", "--sitelist", dest="sitelist", + help="Sync only given site names in the list.") opts = parsermodule.parse_args(parser) os.system("""echo '' > /usr/share/monitor/nodelist.txt""")