11.07.2015 Views

Windows Monitoring - netways

Windows Monitoring - netways

Windows Monitoring - netways

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Writing a Scriptfrom NSCP import Registry, Core, log, log_errorimport unicodedatacore = Core.get()def process(channel, source, command, code, message, perf):message = unicodedata.normalize('NFKD', message).encode('ascii','ignore')core.simple_submit('channel_2', command, code,'PythonEnhanced: %s'%message, perf)def init(plugin_id, plugin_alias, script_alias):reg = Registry.get(plugin_id)reg.simple_subscription('channel_1', process)def shutdown():None

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!