Skip to content

Commit

Permalink
Update to newer paths (#20)
Browse files Browse the repository at this point in the history
* new paths
  • Loading branch information
nobody43 authored Feb 27, 2023
1 parent d5c4640 commit b0f9125
Show file tree
Hide file tree
Showing 8 changed files with 290 additions and 290 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ Verbose mode. Does not detaches or prints LLD. Lists all items sent to zabbix-se

These scripts were tested to work with following configurations:

- Windows 7 / Server (3.0, 5.0) / Agent (3.0, 5.0) / Python (3.1-3.8)

- Windows Server 2012 / Zabbix 3.0 / Python 3.7
- Windows 10 / Server 6.0 / Agent 4.0 / Python (3.1-3.11)
- Windows Server 2012 / Server 6.0 / Agent 4.0 / Python 3.11
- Windows 7 / Server (5.0, 6.0) / Agent (4.0, 5.0) / Python (3.1-3.8)
10 changes: 5 additions & 5 deletions scripts/hardware_bios_wmi.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
## Installation instructions: https://github.com/nobodysu/zabbix-hardware ##

senderPyPath = r'C:\zabbix-agent\scripts\sender_wrapper.py'
senderPyPath = r'C:\Program Files\Zabbix Agent\scripts\sender_wrapper.py'

agentConf = r'C:\zabbix_agentd.conf'
agentConf = r'C:\Program Files\Zabbix Agent\zabbix_agentd.conf'

senderPath = r'C:\zabbix-agent\bin\win32\zabbix_sender.exe'
senderPath = r'C:\Program Files\Zabbix Agent\zabbix_sender.exe'

## Advanced configuration ##

Expand Down Expand Up @@ -233,8 +233,8 @@ def findValues(p):
p_out = p_out_once[0]
senderData = findValues(p_out)

timeout = '0'
delay = '0'

link = 'https://github.com/nobodysu/zabbix-hardware'
sendStatusKey = 'hw.bios.info[SendStatus]'
processData(senderData, '', agentConf, senderPyPath, senderPath, timeout, host, link, sendStatusKey)
processData(senderData, '', agentConf, senderPyPath, senderPath, delay, host, link, sendStatusKey)
12 changes: 6 additions & 6 deletions scripts/hardware_cpu_wmi.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
## Installation instructions: https://github.com/nobodysu/zabbix-hardware ##

senderPyPath = r'C:\zabbix-agent\scripts\sender_wrapper.py'
senderPyPath = r'C:\Program Files\Zabbix Agent\scripts\sender_wrapper.py'

agentConf = r'C:\zabbix_agentd.conf'
agentConf = r'C:\Program Files\Zabbix Agent\zabbix_agentd.conf'

senderPath = r'C:\zabbix-agent\bin\win32\zabbix_sender.exe'
senderPath = r'C:\Program Files\Zabbix Agent\zabbix_sender.exe'

## Advanced configuration ##

timeout = '80'
delay = '50'

cmd = ['wmic', 'CPU', 'list', 'full']

globalTimeout = 25
unknownCPUshift = 1000

keysandRegexp = (
('hw.cpu.AddressWidth', r'^AddressWidth\=(.+)'),
('hw.cpu.Architecture', r'^Architecture\=(.+)'),
Expand Down Expand Up @@ -375,4 +375,4 @@ def findCPUnum(cpu_out):

link = 'https://github.com/nobodysu/zabbix-hardware'
sendStatusKey = 'hw.cpu.info[SendStatus]'
processData(senderData, jsonData, agentConf, senderPyPath, senderPath, timeout, host, link, sendStatusKey)
processData(senderData, jsonData, agentConf, senderPyPath, senderPath, delay, host, link, sendStatusKey)
12 changes: 6 additions & 6 deletions scripts/hardware_net_wmi.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
## Installation instructions: https://github.com/nobodysu/zabbix-hardware ##

senderPyPath = r'C:\zabbix-agent\scripts\sender_wrapper.py'
senderPyPath = r'C:\Program Files\Zabbix Agent\scripts\sender_wrapper.py'

agentConf = r'C:\zabbix_agentd.conf'
agentConf = r'C:\Program Files\Zabbix Agent\zabbix_agentd.conf'

senderPath = r'C:\zabbix-agent\bin\win32\zabbix_sender.exe'
senderPath = r'C:\Program Files\Zabbix Agent\zabbix_sender.exe'


## Advanced configuration ##

timeout = '80' # Between LLD and data sending
heavyDebug = False
delay = '50' # Between LLD and data sending
heavyDebug = False

cmd = 'wmic path Win32_NetworkAdapter where PhysicalAdapter=TRUE get /value'

Expand Down Expand Up @@ -428,4 +428,4 @@ def findSpeedByID(allBlocks_, raw_ifID_):

link = 'https://github.com/nobodysu/zabbix-hardware'
sendStatusKey = 'hw.net.info[SendStatus]'
processData(senderData, jsonData, agentConf, senderPyPath, senderPath, timeout, host, link, sendStatusKey)
processData(senderData, jsonData, agentConf, senderPyPath, senderPath, delay, host, link, sendStatusKey)
Loading

0 comments on commit b0f9125

Please sign in to comment.