Skip to content

Commit

Permalink
Fixing #8
Browse files Browse the repository at this point in the history
  • Loading branch information
nobodysu committed Jun 4, 2018
1 parent ec33ed2 commit ef39757
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Win/mini_ipmi_ohmr.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

# path to zabbix agent configuration file
agentConf = r'C:\zabbix_agentd.conf'
#agentConf = r'C:\zabbix\conf\zabbix_agentd.win.conf'

#senderPath = r'zabbix_sender'
senderPath = r'C:\zabbix-agent\bin\win32\zabbix_sender.exe'
Expand Down Expand Up @@ -62,6 +61,16 @@ def getOutput():
else:
error = 'CONFIGURED'

# Prevent empty results
m0 = 'Status: Extracting driver failed'
m1 = 'First Exception: OpenSCManager returned zero.'
m2 = 'Second Exception: OpenSCManager returned zero.'
if m0 in p or \
m1 in p or \
m2 in p:
print('OHMR failed. Try again.')
sys.exit(1)

return error, p


Expand Down

0 comments on commit ef39757

Please sign in to comment.