I test some packs to monitor Win machines with WMI.
commands are with parameters "${dev/zWinUser}" "${dev/zWinPassword}"
Here is the problem: Username and Password are displayed in clear text in 
command log when timed out.
I supress displaing them to event log with transform in 
/Events/Win/Exchange/Perf(where i send events from commands):
-------transform code-------
if evt.severity:
    s = getattr(evt, 'summary', getattr(evt, 'message', ''))
    if s.find('Command timed out') >= 0:
        evt.message = 'Command timed out on device ' + evt.device
--------------(copy and paste with spacess! important for python)

---log of zencommand---------
2009-03-05 14:41:27 INFO zen.zencommand: ---------- - schedule has 19 commands
2009-03-05 14:41:27 WARNING zen.zencommand: Command timed out on device 
DEVICE_NAME: $ZENHOME/Products/WMIExchangeMonitor/libexec/wmi_exch_stats.pl IMF 
"DEVICE_NAME" "DEVICE_IP" "DOMAIN\user" "password_in_clear_text"
2009-03-05 14:41:27 INFO zen.zencommand: ---------- - schedule has 19 commands
2009-03-05 14:41:36 WARNING zen.zencommand: Command timed out on device 
DEVICE_NAME: $ZENHOME/Products/WMIExchangeMonitor/libexec/wmi_exch_stats.pl 
IS_Client_RPC "DEVICE_NAME" "DEVICE_IP" "DOMAIN\user" "password_in_clear_text"
2009-03-05 14:41:36 INFO zen.zencommand: ---------- - schedule has 19 commands
-----------------------------------




-------------------- m2f --------------------

Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=31946#31946

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to