microsoft / SCXcore

System Center Cross Platform Provider for Operations Manager
Microsoft Public License
36 stars 31 forks source link

Pre_Exec() issue in SCX #85

Closed JumpingYang001 closed 7 years ago

JumpingYang001 commented 7 years ago
2017/09/14 01:47:36 [50706,50706] INFO: null(0): EventId=40012 Priority=INFO Socket: 0x1adc070, closing connection (mask 2)
2017/09/14 01:47:36 [50706,50706] INFO: null(0): EventId=40033 Priority=INFO Selector_RemoveHandler: selector=0x5d29e8, handler=0x1adc070, name=BINARY_SERVER_CONNECTION
Failed to create directory /var/opt/microsoft/scx/lib/state/scxuser, errno=13 (Permission denied)
2017/09/14 01:47:36 [50707,50707] ERROR: null(0): EventId=20115 Priority=ERROR Failed to execute PREEXEC program: {/opt/microsoft/scx/bin/omi_preexec}
2017/09/14 01:47:36 [50707,50707] ERROR: null(0): EventId=20000 Priority=ERROR AgentMgr_HandleRequest failed for namespace: root/scx
2017/09/14 01:47:36 [50707,50707] INFO: null(0): EventId=40028 Priority=INFO Socket: 0x20559d0, Connection Closed while reading header

2017/09/14 01:47:36 [50707,50707] INFO: null(0): EventId=40012 Priority=INFO Socket: 0x20559d0, closing connection (mask 2)

Command:
/opt/omi/bin/omicli iv -u scxuser -p scxuserpassword --auth Basic --hostname yourlinuxhost root/scx { SCX_LogFile } GetMatchedRows { filename /var/log.txt regexps ".*" qid myQID }  --port 1270 --encryption https

Stop omiserver and run ` /opt/omi/bin/omiserver --loglevel 5 --httptrace -l ` to get the above log, thanks.
sarojcare commented 7 years ago

It need to be fixed in OMI.