Как удалить службу zabbix agent windows
Перейти к содержимому

Как удалить службу zabbix agent windows

  • автор:

10 Zabbix agent on Microsoft Windows

Both generations of Zabbix agents run as a Windows service. For Zabbix agent 2, replace agentd with agent2 in the instructions below.

You can run a single instance of Zabbix agent or multiple instances of the agent on a Microsoft Windows host. A single instance can use the default configuration file C:\zabbix_agentd.conf or a configuration file specified in the command line. In case of multiple instances each agent instance must have its own configuration file (one of the instances can use the default configuration file).

An example configuration file is available in Zabbix source archive as conf/zabbix_agentd.win.conf .

See the configuration file options for details on configuring Zabbix Windows agent.

Hostname parameter

To perform active checks on a host Zabbix agent needs to have the hostname defined. Moreover, the hostname value set on the agent side should exactly match the «Host name» configured for the host in the frontend.

The hostname value on the agent side can be defined by either the Hostname or HostnameItem parameter in the agent configuration file — or the default values are used if any of these parameters are not specified.

The default value for HostnameItem parameter is the value returned by the «system.hostname» agent key. For Windows, it returns result of the gethostname() function, which queries namespace providers to determine the local host name. If no namespace provider responds, the NetBIOS name is returned.

The default value for Hostname is the value returned by the HostnameItem parameter. So, in effect, if both these parameters are unspecified the actual hostname will be the host NetBIOS name; Zabbix agent will use NetBIOS host name to retrieve the list of active checks from Zabbix server and send results to it.

The default value for Hostname is the value returned by the HostnameItem parameter. So, in effect, if both these parameters are unspecified the actual hostname will be the host NetBIOS name; Zabbix agent will use NetBIOS host name to retrieve the list of active checks from Zabbix server and send results to it.

The «system.hostname» key supports two optional parameters — type and transform.

Type parameter determines the type of the name the item should return. Supported values:

  • netbios (default) — returns the NetBIOS host name which is limited to 15 symbols and is in the UPPERCASE only;
  • host — case-sensitive, returns the full, real Windows host name (without a domain);
  • shorthost (supported since Zabbix 5.4.7) — returns part of the hostname before the first dot. It will return a full string if the name does not contain a dot.

Transform parameter is supported since Zabbix 5.4.7 and allows to specify additional transformation rule for the hostname. Supported values:

  • none (default) — use the original letter case;
  • lower — convert the text into lowercase.

So, to simplify the configuration of zabbix_agentd.conf file and make it unified, two different approaches could be used.

  1. leave Hostname or HostnameItem parameters undefined and Zabbix agent will use NetBIOS host name as the hostname;
  2. leave Hostname parameter undefined and define HostnameItem like this:
    HostnameItem=system.hostname[host] — for Zabbix agent to use the full, real (case sensitive) Windows host name as the hostname
    HostnameItem=system.hostname[shorthost,lower] — for Zabbix agent to use only part of the hostname before the first dot, converted into lowercase.

Host name is also used as part of Windows service name which is used for installing, starting, stopping and uninstalling the Windows service. For example, if Zabbix agent configuration file specifies Hostname=Windows_db_server , then the agent will be installed as a Windows service » Zabbix Agent [Windows_db_server] «. Therefore, to have a different Windows service name for each Zabbix agent instance, each instance must use a different host name.

Installing agent as Windows service

To install a single instance of Zabbix agent with the default configuration file c:\zabbix_agentd.conf :

On a 64-bit system, a 64-bit Zabbix agent version is required for all checks related to running 64-bit processes to work correctly.

If you wish to use a configuration file other than c:\zabbix_agentd.conf , you should use the following command for service installation:

A full path to the configuration file should be specified.

Multiple instances of Zabbix agent can be installed as services like this:

The installed service should now be visible in Control Panel.

Starting agent

To start the agent service, you can use Control Panel or do it from command line.

To start a single instance of Zabbix agent with the default configuration file:

To start a single instance of Zabbix agent with another configuration file:

To start one of multiple instances of Zabbix agent:

Stopping agent

To stop the agent service, you can use Control Panel or do it from command line.

To stop a single instance of Zabbix agent started with the default configuration file:

To stop a single instance of Zabbix agent started with another configuration file:

To stop one of multiple instances of Zabbix agent:

Uninstalling agent Windows service

To uninstall a single instance of Zabbix agent using the default configuration file:

To uninstall a single instance of Zabbix agent using a non-default configuration file:

To uninstall multiple instances of Zabbix agent from Windows services:

Limitations

Zabbix agent for Windows does not support non-standard Windows configurations where CPUs are distributed non-uniformly across NUMA nodes. If logical CPUs are distributed non-uniformly, then CPU performance metrics may not be available for some CPUs. For example, if there are 72 logical CPUs with 2 NUMA nodes, both nodes must have 36 CPUs each.

Remove Zabbix agent from Windows and CentOS

At Bobcares, we offer solutions for every query, big and small, as a part of our Server Management Service.

Let’s take a look at how our Support Team recently helped remove Zabbix agent from Windows and CentOS.

How to remove Zabbix agent from Windows and CentOS

A Zabbix agent is a lightweight version of Zabbix that collects different performance data like CPU usage, memory usage, disk space usage, network interface utilization, and so on. Furthermore, it forwards this information to the server for visualization and storage.

Установка zabbix агента

Рекомендую обратить внимание на централизованное развёртывание агентов https://imbicile.pp.ru/zabbix-agent-ansible/ для linux, так как возможно реализовать такую же установку zabbix агента для windows или попробовать взять готовую роль с сайта zabbix упомянутого в статье

Подготовка

Распаковать архив по пути C:\zabbix\
В моем случае созданы папки для Windows 32 и 64
Отдельно папка под конфигурацию
Настроить файл конфигурации C:\zabbix\conf\zabbix_agentd.win.conf
Рассчитано что он для всех агентов одинаков, и настраивать на каждом компьютере не требуется

  • В корне папки zabbix будут созданы скрипты, сюда же будет писаться лог
  • Установка агента zabbix
  • Удаление агента zabbix
  • Попытка решения проблем
  • Получение информации от агента
  • Перезапуск агента

Во время установки через netsh в брандмауэре открываются порты для zabbix агента 10050 и ping.
Так же делается пересчет счетчиков системы. Это не обязательно, но иногда решает проблемы с чтением данных.

В итоге буде такая структура

Установка zabbix агента install.cmd

Здесь установка только для 64 версии. Раньше была и для 32 но со временем необходимость в ней отпала. Чтобы поставить агент для версии Windows 32 необходимо изменить путь C:\zabbix\bin\win64\ на C:\zabbix\bin\win32\
Во время установки через netsh в брандмауэре открываются порты для zabbix агента 10050 и ICMP Ping.
Так же делается пересчет счетчиков системы. Это не обязательно, но иногда решает проблемы с чтением данных.

Русские Блоги

Установка Zabbix Windows от конфигурации клиента и, и удаление

Установка клиента для Windows Zabbix и конфигурации

1. Загрузите соответствующий клиент в браузере

Я выбрал.4.4.1 Windows amd64 Скачать, вы должны быть этот взгляд, есть мусорное ведро и confed две папки

2. Создайте папку Zabbix под C-Погруженный каталога, поместите папку бинZabbix_Agentd.exe, Zabbix_Get.exe, Zabbix_Sender.exe, папка DEVИ в папке конфzabbix_agentd.confФайл копируется в папку Zabbix построен на диске C, (которого в основном удобно в диск С, это удобно), как показано на рисунке:

Помните, чтобы увидеть папку Zabbix под диск C

3. Щелкните правой кнопкой мыши, чтобы изменить zabbix_agentd.win.conf профиль.

Установить сервер = XXXXXXXX # Здесь Заполните IP-адрес сервера Zabbix

Набор ServeActive = XXXXXXXX # соответствует значению сервера

Набор HostName = Windows1 (имя Custom) # Клиент Имя компьютера (монитор компьютера), я себя мониторинг, имя пользовательского

4. После того как конфигурация установлена, она начнет установку и запуск.

Откройте CMD (должен быть запущен в качестве администратора в качестве администратора), введите команду

C:\zabbix\zabbix_agentd.exe -i -c C:\zabbix\zabbix_agentd.win.conf # Установите клиент Zabbix

C:\ zabbix\ zabbix_agentd.exe -s -c C:\zabbix\zabbix_agentd.win.conf # сервис zbix

После того, как входная команда выглядит следующим образом, если он состоит в следующем, это означает, что установка прошла успешно и начал.

img

Когда я установил его, это может быть, что путь не правильно. Установка прошла успешно. Его команда запуска не работает, так что я пойду на службу, откройте службу в Пуск Windows, найдите Zabbix агент правой кнопкой для запустить его, если запуск выполняется это не проблема, если нет, то и команда в ЦМД не так, вы , возможно , придется удалить переустановку.

Специальные меры:

Если у вас есть успешный запуск, пожалуйста, игнорировать следующее

Есть несколько небольших партнеров, потому что путь неправильно, в результате чего сервиса, что услуга не доступна, и услуга должна быть установлена ​​снова.

Во-первых, вам нужно остановить службу Zabbix агента для остановки в интерфейсе сервиса.

img

Затем выполнить операцию удаления клиента Zabbix под окном CMD.

C:\zabbix\zabbix_agentd.exe -d -c C:\zabbix\zabbix_agentd.win.conf

Удалить успех, а затем снова начать с первого шага.

Работа сервера

1. Выберите конфигурацию —- хоста —- Создание хоста.

img

2, введите имя компьютера клиента — видимое имя подгонян —- Группа вы выбираете —- Введите КЛИЕНТ Рассчитайте IP-адрес —- Проверьте Enabled —- Выберите Добавить.

(Имя хоста должно быть и профильzabbix_agentd.confНабор HostName оставаться последовательным)

img

В случае возникновения проблем, вы можете найти причину ошибки в zabbix_agented.log.

Существует также ошибка, которая может привести к связи, то есть путь журнала в файле конфигурации не прав, у меня есть дело, мне нужно, чтобы изменить свой путь к пути.

[Внешняя цепь картинка не удалось, источник станция может иметь механизм противоугонные цепи, рекомендуется сохранить изображение непосредственно закачанный

О создании мониторинга, временно зная, создается с помощью шаблона, вы можете создать его самостоятельно, другие вам нужны большие люди, чтобы исследовать

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *