diff options
author | Rihards Olups <git-no-reply@zabbix.com> | 2013-01-22 19:58:10 +0400 |
---|---|---|
committer | Rihards Olups <git-no-reply@zabbix.com> | 2013-01-22 19:58:10 +0400 |
commit | a84fc43367252416e1379239d9bd5764c8e87536 (patch) | |
tree | f3eee387583131f8a321537b51a9a3358e3be5b4 /misc | |
parent | 9483d2c8aa68a5475a0ccdf1f9124b18841f6f49 (diff) |
....I..... [ZBXNEXT-1589] removed 'win32floppy' directory
Diffstat (limited to 'misc')
-rw-r--r-- | misc/win32floppy/README | 63 | ||||
-rw-r--r-- | misc/win32floppy/install.bat | 235 | ||||
-rwxr-xr-x | misc/win32floppy/uninstall.bat | 77 |
3 files changed, 0 insertions, 375 deletions
diff --git a/misc/win32floppy/README b/misc/win32floppy/README deleted file mode 100644 index 0bf9df125e9..00000000000 --- a/misc/win32floppy/README +++ /dev/null @@ -1,63 +0,0 @@ -/* -** Zabbix -** Copyright (C) 2000-2011 Zabbix SIA -** -** This program is free software; you can redistribute it and/or modify -** it under the terms of the GNU General Public License as published by -** the Free Software Foundation; either version 2 of the License, or -** (at your option) any later version. -** -** This program is distributed in the hope that it will be useful, -** but WITHOUT ANY WARRANTY; without even the implied warranty of -** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -** GNU General Public License for more details. -** -** You should have received a copy of the GNU General Public License -** along with this program; if not, write to the Free Software -** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -**/ - -SYNOPSIS - install.bat "host name" "server IP" [ "install dir" ] [ "config dir" ] - - uninstall.bat [ "install dir" ] - -DESCRIPTION - install.bat - installation script, which copies executable file to - "install dir", creates configuration file in "config dir" with - default parameters, installs Zabbix Agent as a service and starts the service. - - uninstall.bat - uninstallation script, which stops Zabbix Agent service - and removes the service from the system. uninstall.bat DOESN'T remove files, you - must manualy remove them. - - NOTE: For installation script, file 'ZabbixW32.exe' must be accessible from current '.' directory. - For example: You may copy 'install.bat','uninstall.bat' and 'ZabbixW32.exe' - into one directory and start intallation. - -OPTIONS - "host name" - Zabbix Agent unique hostname which will be used for active checks. - - "server IP" - Zabbix Server IP address - - "install dir" - installation directory for binary files. - Default value is %PROGRAMFILES%/zabbix - - "config dir" - directory for configuration file. - Default value is "install dir" - -USAGE - install.bat localhost 127.0.0.1 c:/zabbix - uninstall.bat c:/zabbix - - install.bat "My Host Name" 192.168.5.1 d:/programs/zabbix_bin d:/programs/zabbix_conf - uninstall.bat d:/programs/zabbix_bin - -AUTHOR - Eugene Grigorjev, Nov 2005 - eugene.grigorjev@zabbix.com - http://www.zabbix.com diff --git a/misc/win32floppy/install.bat b/misc/win32floppy/install.bat deleted file mode 100644 index 99a62122e98..00000000000 --- a/misc/win32floppy/install.bat +++ /dev/null @@ -1,235 +0,0 @@ -@echo off -REM Installation script for Windows Zabbix Agent -REM Version 1 -REM -REM Written by Eugene Grigorjev, Nov 2005 -REM email: eugene.grigorjev@zabbix.com - -ECHO Installation script for Windows Zabbix Agent [ http://www.zabbix.com ] -ECHO. -ECHO Welcome to Zabbix Agent installation! -ECHO. - -SET srcbindir=. -SET config_name=zabbix_agentd.conf -SET log_name=zabbix_agentd.log -SET pid_name=zabbix_agentd.pid -SET zabbix_agent=ZabbixW32.exe - -SET def_install_dir=%PROGRAMFILES%/zabbix -SET def_config_dir=%def_install_dir% - -SET Configfile=%def_config_dir%/%config_name% - -if "%1"=="" GOTO Err_param -if "%2"=="" GOTO Err_param - -:Install - -REM default active parameters - -SET Hostname=%1 -SET serverip=%2 -SET serverport=10051 -SET listenport=10050 -SET startagents=5 -SET debuglevel=3 -SET timeout=3 - -REM default hidden parameters, to enable this parameters -REM You can remove '#' symbol from line with this -REM parameters to enable it. - -SET listenip=127.0.0.1 -SET refAC=120 -SET disableAC=1 -SET notimewait=1 - -REM Check parameters and create needed direcoryes. - -IF NOT "%3"=="" SET install_dir=%3 -IF "%3"=="" SET install_dir=%def_install_dir% -IF NOT EXIST "%install_dir%" MKDIR "%install_dir%" -IF NOT EXIST "%install_dir%" GOTO Err_install_dir - -IF NOT "%4"=="" SET config_dir=%4 -IF "%4"=="" SET config_dir=%install_dir% -IF NOT EXIST "%config_dir%" MKDIR "%config_dir%" -IF NOT EXIST "%config_dir%" GOTO Err_config_dir - -SET logfile=%install_dir%/%log_name% -SET pidfile=%install_dir%/%pid_name% - -SET Configfile=%config_dir%/%config_name% - -ECHO Creating ZABBIX Agent configuration file "%Configfile%" - -REM ============================================================================= -REM =================== START OF CONFIGURATION FILE ============================= -REM ============================================================================= -ECHO # This is config file for zabbix_agentd > "%Configfile%" -ECHO # To get more information about ZABBIX, go http://www.zabbix.com >> "%Configfile%" -ECHO. >> "%Configfile%" -ECHO ############ GENERAL PARAMETERS ################# >> "%Configfile%" -ECHO. >> "%Configfile%" -ECHO # List of comma delimited IP addresses (or hostnames) of Zabbix Servers. >> "%Configfile%" -ECHO # No spaces allowed. First entry is used for sending active checks. >> "%Configfile%" -ECHO # Note that hostnames must resolve hostname - IP address and >> "%Configfile%" -ECHO # IP address - hostname. >> "%Configfile%" -ECHO. >> "%Configfile%" -ECHO Server=%serverip% >> "%Configfile%" -ECHO. >> "%Configfile%" -ECHO # Server port for sending active checks >> "%Configfile%" -ECHO. >> "%Configfile%" -ECHO ServerPort=%serverport% >> "%Configfile%" -ECHO. >> "%Configfile%" -ECHO # Unique hostname. Required for active checks. >> "%Configfile%" -ECHO. >> "%Configfile%" -ECHO Hostname=%Hostname% >> "%Configfile%" -ECHO. >> "%Configfile%" -ECHO # Listen port. Default is 10050 >> "%Configfile%" -ECHO. >> "%Configfile%" -ECHO ListenPort=%listenport%>> "%Configfile%" -ECHO. >> "%Configfile%" -ECHO # IP address to bind agent >> "%Configfile%" -ECHO # If missing, bind to all available IPs >> "%Configfile%" -ECHO. >> "%Configfile%" -ECHO #ListenIP=%listenip%>> "%Configfile%" -ECHO. >> "%Configfile%" -ECHO # Number of pre-forked instances of zabbix_agentd. >> "%Configfile%" -ECHO # Default value is 5 >> "%Configfile%" -ECHO # This parameter must be between 1 and 16 >> "%Configfile%" -ECHO. >> "%Configfile%" -ECHO StartAgents=%startagents% >> "%Configfile%" -ECHO. >> "%Configfile%" -ECHO # How often refresh list of active checks. 2 minutes by default. >> "%Configfile%" -ECHO. >> "%Configfile%" -ECHO #RefreshActiveChecks=%refAC% >> "%Configfile%" -ECHO. >> "%Configfile%" -ECHO # Disable active checks. The agent will work in passive mode listening server. >> "%Configfile%" -ECHO. >> "%Configfile%" -ECHO #DisableActive=%disableAC% >> "%Configfile%" -ECHO. >> "%Configfile%" -ECHO # Specifies debug level >> "%Configfile%" -ECHO # 0 - debug is not created >> "%Configfile%" -ECHO # 1 - critical information >> "%Configfile%" -ECHO # 2 - error information >> "%Configfile%" -ECHO # 3 - warnings (default) >> "%Configfile%" -ECHO # 4 - for debugging (produces lots of information) >> "%Configfile%" -ECHO. >> "%Configfile%" -ECHO DebugLevel=%debuglevel% >> "%Configfile%" -ECHO. >> "%Configfile%" -ECHO # Name of PID file >> "%Configfile%" -ECHO. >> "%Configfile%" -ECHO #PidFile=%pidfile%>> "%Configfile%" -ECHO. >> "%Configfile%" -ECHO # Name of log file. >> "%Configfile%" -ECHO # If not set, syslog will be used >> "%Configfile%" -ECHO. >> "%Configfile%" -ECHO LogFile=%logfile% >> "%Configfile%" -ECHO. >> "%Configfile%" -ECHO # Spend no more than Timeout seconds on processing >> "%Configfile%" -ECHO # Must be between 1 and 30 >> "%Configfile%" -ECHO. >> "%Configfile%" -ECHO Timeout=%timeout% >> "%Configfile%" -ECHO. >> "%Configfile%" -ECHO ##### Experimental options. Use with care ! ##### >> "%Configfile%" -ECHO. >> "%Configfile%" -ECHO # Get rid of sockets in TIME_WAIT state >> "%Configfile%" -ECHO # This will set socket option SO_LINGER >> "%Configfile%" -ECHO. >> "%Configfile%" -ECHO # NoTimeWait=%notimewait% >> "%Configfile%" -ECHO. >> "%Configfile%" -ECHO ##### End of experimental options >> "%Configfile%" -ECHO. >> "%Configfile%" -ECHO ####### USER-DEFINED MONITORED PARAMETERS ####### >> "%Configfile%" -ECHO # Format: "UserParameter='key','shell command'" >> "%Configfile%" -ECHO # Note that shell command must not return empty string or EOL only >> "%Configfile%" -ECHO. >> "%Configfile%" -ECHO UserParameter=mysql.version,mysql -V >> "%Configfile%" -REM ============================================================================= -REM ==================== END OF CONFIGURATION FILE ============================== -REM ============================================================================= - -ECHO Installing ZABBIX Agent files... - -COPY "%srcbindir%/%zabbix_agent%" "%install_dir%/%zabbix_agent%" > NULL -IF ERRORLEVEL 1 GOTO Err_copy - -ECHO Creating Zabbix Agent service... - -CALL "%install_dir%/%zabbix_agent%" --config "%Configfile%" install -IF ERRORLEVEL 1 GOTO Err_install - -ECHO Starting Zabbix Agent service... - -CALL "%install_dir%/%zabbix_agent%" start -IF ERRORLEVEL 1 GOTO Err_start - -ECHO. -ECHO ############################################################# -ECHO Congratulations! -ECHO Zabbix agent for Windows successfuly instaled on Your PC! -ECHO. -ECHO Installation directory: %install_dir% -ECHO Configureation file: %Configfile% -ECHO. -ECHO Zabbix agent has the following configuration: -ECHO Agent hostname for Zabbix Server: %Hostname% -ECHO Zabbix Server IP: %serverip% -ECHO Zabbix Server port: %serverport% -ECHO Zabbix Agent listen port: %listenport% -ECHO Connection timeout: %timeout% -ECHO Start Agent count: %startagents% -ECHO Debug level: %debuglevel% -ECHO Log file: %logfile% -ECHO. -ECHO IF You want to change configuration or configure Zabbix Agent -ECHO in more detail, you can manualy change configureation file and -ECHO restart Zabbix Agent service. -ECHO. -ECHO Now You can configure Zabbix Server to monitor this PC. -ECHO. -ECHO Thank You for using Zabbix software. -ECHO http://www.zabbix.com -ECHO ############################################################# -ECHO. - -GOTO End - -:Err_param -ECHO INSTALL ERROR: Please use script with required parameters! -GOTO Syntax - -:Err_start -ECHO INSTALL ERROR: Can't start Zabbix Agent service! -GOTO Syntax - -:Err_install -ECHO INSTALL ERROR: Can't install Zabbix Agent as service! -GOTO Syntax - -:Err_copy -ECHO INSTALL ERROR: Can't copy file "%srcbindir%.%zabbix_agent%" in to "%install_dir%"! -GOTO Syntax - -:Err_install_dir -ECHO INSTALL ERROR: Can't create installation directory "%install_dir%"! -GOTO Syntax - -:Err_config_dir -ECHO INSTALL ERROR: Can't create directory "%config_dir%" for configuration file! -GOTO Syntax - -:Syntax -ECHO. -ECHO ------------------------------------------------------------- -ECHO Usage: -ECHO %0 "hostname" "srver ip" ["install path]" ["config file dir"] -ECHO. -ECHO Default installation path is "%def_install_dir%" -ECHO Default configuration file is "%Configfile%" -ECHO ------------------------------------------------------------- - -:End -@echo on diff --git a/misc/win32floppy/uninstall.bat b/misc/win32floppy/uninstall.bat deleted file mode 100755 index 6c99daed137..00000000000 --- a/misc/win32floppy/uninstall.bat +++ /dev/null @@ -1,77 +0,0 @@ -@echo off -REM Uninstallation script for Windows Zabbix Agent -REM Version 1 -REM -REM Written by Eugene Grigorjev, Nov 2005 -REM email: eugene.grigorjev@zabbix.com - -ECHO Uninstallation script for Windows Zabbix Agent [ http://www.zabbix.com ] -ECHO. -ECHO Welcome to Zabbix Agent uninstallation! -ECHO. - -SET def_install_dir=%PROGRAMFILES%/zabbix - -IF "%1"=="help" GOTO Syntax -IF "%1"=="/help" GOTO Syntax -IF "%1"=="--help" GOTO Syntax -IF "%1"=="-help" GOTO Syntax -IF "%1"=="-h" GOTO Syntax -IF "%1"=="/h" GOTO Syntax - -IF NOT "%1"=="" SET install_dir=%1 -IF "%1"=="" SET install_dir=%def_install_dir% - -IF NOT EXIST "%install_dir%" GOTO Err_path - -SET zabbix_agent=%install_dir%/ZabbixW32.exe -IF NOT EXIST "%zabbix_agent%" GOTO Err_agent - -ECHO Stoping Zabbix Agent srvice... - -CALL "%zabbix_agent%" stop -IF ERRORLEVEL 1 ECHO UNINSTALL WARNING: Can't stop Zabbix Agent service! - -ECHO Removing Zabbix Agent service... - -CALL "%zabbix_agent%" remove -IF ERRORLEVEL 1 GOTO Err_remove - -ECHO. -ECHO ############################################################# -ECHO. -ECHO Zabbix agent for Windows successfuly uninstaled from Your PC. -ECHO. -ECHO Now you can remove: -ECHO Zabbix Agent binary file -ECHO Zabbix Agent log file (see config file) -ECHO Zabbix Agent config file -ECHO. -ECHO http://www.zabbix.com -ECHO. -ECHO ############################################################# -ECHO. - -GOTO End - -:Err_agent -ECHO UNINSTAL ERROR: Can't find Zabbix Agent binary file 'ZabbixW32.exe'! -:Err_path -ECHO UNINSTAL ERROR: Please set the correct installation directory! -GOTO Syntax - -:Err_remove -ECHO UNINSTALL ERROR: Can't remove Zabbix Agent service"! -GOTO Syntax - -:Syntax -ECHO. -ECHO ------------------------------------------------------------- -ECHO Usage: -ECHO %0 ["install path]" -ECHO. -ECHO Default installation path is "%def_install_dir%" -ECHO ------------------------------------------------------------- - -:End -@echo on |