I’m trying to monitor a server with Windows XP 32bits, that it has an instance of Veeam.
I’m using check_mk to monitor all my network. The server has the Windows agent of check_mk. I can obtain the data of the agent via telnet from monitor with
telnet veeam-host 6556
The problem comes when I am trying to retrieve information about the veeam plug-in (veeam_backup_status).
First, I put the agent for veeam inside the check_mk agent’s folder “C:\Program Files\check_mk\plugins\veeam_backup_status.bat”, the content of this file is:
@ECHO OFF
REM version 0.9
REM Put this file in cmk Plugins-Folder *only* if you need to run
REM the veeam_backup_status.ps1 powershell script and you
REM have no 64 bit check_mk agent available
REM In this case the powershell script needs to be put somewhere else
REM (see example here) and is called from this .bat script with the 64 bit powershell
%systemroot%\sysnative\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Unrestricted " & ""C:\skripte\veeam_backup_status.ps1"""
The other file .ps1_ is in the path “C:\skripte\veeam_backup_status.ps1_” and its content is the same of this file
In my configuration file of check_mk agent (check_mk.ini), I allow to execute .ps1 and bat
[global]
# Restrict access to certain IP addresses
# only_from = 127.0.0.1 [192.168.56.0/24](http://192.168.56.0/24)
# Change port where the agent is listening ( default 6556 )
# port = 6556
# Do only execute programs and scripts with
# the following suffixes (in local and plugins).
# Per default all extensions except txt and dir
# are being executed.
# execute = exe bat vbs
execute = bat exe vbs ps1
# Restrict the following configuration variables
# in [global] to the following hosts
# host = winsrv* zab???ad
# Just output certain sections (e.g. for upper hosts)
# sections = check_mk winperf
# Write a logfile for tackling down crashes of the agent
# crash_debug = yes
Then I restarted the agent’s services and recollect the data via telnet again and it is the same, different data, but the same sections.
My test
- I tried to rename the .ps1_ to .ps1 but nothing happens.
- Changing the folder of the script and modifying the .bat, the result nothing new.
- Adding huge time-outs for this plug-in in .ini, nothing.
Notes
I installed the Powershell v1.0 and .Net Framework 2.0, they are a requirements for the veeam_agent.
The monitor has the checks for veeam, I just check this.
I just need your help. I’m not able to configure the agent to do this check and send the information to the monitor.
Thank you.
···
RataDP ![]()