Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
install_zabbix_agent_win
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rinat K. Nugaev
install_zabbix_agent_win
Commits
efa10a15
Commit
efa10a15
authored
Jun 08, 2018
by
Rinat K. Nugaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added automatic getting ip of monitoring server for firewall rule
parent
a70c3a21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
zabbix_install.ps1
+4
-2
No files found.
zabbix_install.ps1
View file @
efa10a15
...
@@ -3,8 +3,10 @@ Import-Module BitsTransfer
...
@@ -3,8 +3,10 @@ Import-Module BitsTransfer
$PathZabbix
=
${
env
:ProgramFiles
}
+
'\Zabbix'
$PathZabbix
=
${
env
:ProgramFiles
}
+
'\Zabbix'
$osarch
=
wmic os get OSArchitecture /value
$osarch
=
wmic os get OSArchitecture /value
$ZabbixConf
=
$PathZabbix
+
'\conf\zabbix_agentd.conf'
$ZabbixConf
=
$PathZabbix
+
'\conf\zabbix_agentd.conf'
#$monserverip = (Resolve-DNSName monitoring.nugaev.net | select -property IP4Address).ip4address
$monserverip
=
"195.209.52.7"
#Getting monitoring server ip for Firewall Rule
$monserverip
=
(
Test-Connection
-ComputerName monitoring.nugaev.net -count 1
)
.IPV4Address.ipaddressTOstring
#Downloading and unzip zabbix agent
#Downloading and unzip zabbix agent
$url
=
"https://support.nugaev.net/files/distrib/zabbix_agent.zip"
$url
=
"https://support.nugaev.net/files/distrib/zabbix_agent.zip"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment