Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
zbx-sadman committed Apr 6, 2017
1 parent 5716356 commit 8d318c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -37,7 +37,7 @@ Virtual keys for _LastSynchronization_ object is:
Virtual keys for _SynchronizationProcess_ object:
- _Status_ - Synchronization process status

###How to use standalone
### How to use standalone

# Show all metrics of 'Configuration' object and see verbose messages
powershell -NoProfile -ExecutionPolicy "RemoteSigned" -File "wsus_miner.ps1" -Action "Get" -Object "Configuration" -Verbose
Expand All @@ -51,7 +51,7 @@ Virtual keys for _SynchronizationProcess_ object:
# Get number of computers that have update errors and placed in ComputerGroup with ID=e4b8b165-4e29-42ec-ac40-66178600ca9b
..."wsus_miner.ps1" -Action "Count" -Object "ComputerGroup" -Key "ComputerTargetsWithUpdateErrors" -Id "e4b8b165-4e29-42ec-ac40-66178600ca9b"

###How to use with Zabbix
### How to use with Zabbix
1. Just include [zbx\_wsus\_miner.conf](https://github.com/zbx-sadman/wsus_miner/tree/master/Zabbix_Templates/zbx_wsus_miner.conf) to Zabbix Agent config;
2. Put _wsus\_miner.ps1_ to _C:\zabbix\scripts_ dir. If you want to place script to other directory, you must edit _zbx\_wsus\_miner.conf_ to properly set script's path;
3. Set Zabbix Agent's / Server's _Timeout_ to more that 3 sec (may be 10 or 30);
Expand All @@ -62,7 +62,7 @@ Virtual keys for _SynchronizationProcess_ object:
**Note**
Do not try import Zabbix v2.4 template to Zabbix _pre_ v2.4. You need to edit .xml file and make some changes at discovery_rule - filter tags area and change _#_ to _<>_ in trigger expressions. I will try to make template to old Zabbix.

###Hints
### Hints
- To see available metrics, run script without "-Key" option: _... "wsus_miner.ps1" -Action "Get" -Object "Status"_;
- To get on Zabbix Server side properly UTF-8 output when have non-english (for example Russian Cyrillic) symbols in Computer Group's names, use _-consoleCP **your_native_codepage**_ command line option. For example to convert from Russian Cyrillic codepage (CP866): _... "wsus_miner.ps1" ... -consoleCP CP866_;
- If u need additional symbol escaping in LLD JSON - just add one or more symbols to _$EscapedSymbols_ array in _PrepareTo-Zabbix_ function;
Expand Down

0 comments on commit 8d318c1

Please sign in to comment.