Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problemas con modulo discos duros mapeados.
#1
Buenos dias,

Soy nuevo en el foro y acabo de montar el Pandora desde la imagen que hay en la seccion de descargas. Esta todo operativo, y me habia puesto a crear un script para que me dijera el espacio libre que hay en los disco mapeados, en concreto de uno de los discos que es donde se realizan las copias de seguridad, asi que nos avise en caso de estar lleno.

Buenos pues he creado el script, desde consola funciona bien pero al pandora no le llega informacion alguna del modulo. He probado a poner el pandora en modo Debug para ver el XML y no crea ninguna entrada. No se si en la version Free es posible realizar dicha tarea, doy por entendido que si ya que es algo basico, pero ya empiezo a dudar.

La version del agenta que tengo instaldo es el SP2 y el pandora instalado es el SP1.

Os dejo el codigo que tengo montado para ver si hay algo mal, de echo lo he probado de dos formas diferentes y nada.
Espero que me podais aclarar el probelma ya que no se por donde tirar.

Este es el escript
_____________________________

Option Explicit
On Error Resume Next

' Variables
Dim objWMIService, objItem, colItems, argc, argv, i, Percent

' Parse command line parameters
argc = Wscript.Arguments.Count
Set argv = CreateObject("Scripting.Dictionary")
For i = 0 To argc - 1
    argv.Add Wscript.Arguments(i), i
Next

' Get drive information
Set objWMIService = GetObject ("winmgmts:\\.\root\cimv2")
Set colItems = objWMIService.ExecQuery ("Select * from Win32_LogicalDisk WHERE DriveType=4 AND DeviceID = 'X:'")

For Each objItem in colItems
If (objItem.FreeSpace <> "")  Then

    Percent = round (100 - (objItem.FreeSpace / objItem.Size) * 100, 2)
Wscript.StdOut.WriteLine "<module>"
Wscript.StdOut.WriteLine "    <name>backup_plugin</name>"
Wscript.StdOut.WriteLine "    <description><![CDATA[Used space on " & objItem.Name & " (%)]]></description>"
Wscript.StdOut.WriteLine "    <type>generic_data</type>"
Wscript.StdOut.WriteLine "    <unit>MB</unit>"
Wscript.StdOut.WriteLine "    <min_warning>85</min_warning>"
Wscript.StdOut.WriteLine "    <max_warning>89.9</max_warning>"
Wscript.StdOut.WriteLine "    <min_critical>90</min_critical>"
Wscript.StdOut.WriteLine "    <max_critical>100</max_critical>"
Wscript.StdOut.WriteLine "    <disabled>0</disabled>"
Wscript.StdOut.WriteLine "    <data><![CDATA[" & Percent & "]]></data>"
Wscript.StdOut.WriteLine "</module>"

       
End If
Next


Desde el propio agente
____________________________

module_begin
module_name WMILogicalDisk
module_type generic_data_string
module_wmiquery Select FreeSpace from Win32_MappedLogicalDisk where Name="Y:"
module_wmicolumn FreeSpace
module_end

Un saludo y muchas gracias.
 Reply
#2
Buenos días,

Hemos estado verificando tu script y es correcto, debería funcionar, debe ser un problema interno.
Prueba a hacer la consulta de la siguiente forma:
Get-WmiObject -Query "select * from win32_service where name='WinRM'"

Un saludo,

Ana
 Reply
#3
Buenas tardes,

Puedes probar a lanzar el script desde el agente directamente mediante la directiva:


module_plugin cscript //B C:\Path\to\the\script\test.vbs


Saludos,

Borja
 Reply
#4
Muchas gracias Ana y Borja,

Yo lo ejecuto de esta manera : module_plugin cscript //B "%programfiles%\pandora_agent\util\diskusage_plugin.vbs"

Lo curisos es que desde la consola cmd, si que me muestra los valores pero en el fichero XML no carga nada. Ya no se que como demonios hacer que muestre la informacion.

Con el PowerShell, se me indicas como hacer te lo agradeceria, o bien algun ejemplo o manual.


Attached Files


.png   Pandora.png (Size: 32.9 KB / Downloads: 132)
 Reply
#5
Buenos días izzi2

Podrías pegar aquí el fichero de pandora_agent.conf?

A ver como está,

También si es posible, ponlo en modo debug, y adjunta la salida de pandora_agent.debug, pandora_agent.log y si genera, el fichero que te genere en el directorio temp dentro de la carpeta de pandora_agent.

gracias!
 Reply
#6
Si claro, aqui lo tienes, a ver si vosotros veis algo raro que a mi se me escapa. Es que llevo 4 dias haciendo pruebas y ya no se que hacer.


AGENTE
------------------------------

# © 2006-2014 Artica Soluciones Tecnologicas
# Version 5.1SP3

# This program is Free Software, you can redistribute it and/or modify it under the terms of the GNU General Public Licence as published by the Free Software Foundation; either version 2 of the Licence or any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY, without ever the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE

# General Parameters

server_ip 192.168.1.200
server_path /var/spool/pandora/data_in
temporal "C:\Program Files\pandora_agent\temp"

# Group assigned for this agent (descriptive, p.e: Servers)
group "Servers AS"
# If set to 1 allows the agent to be configured via the web console
# (only works on enterprise version).

remote_config 0

#include "C:\Archivos de programa\pandora_agent\pandora_agent_alt.conf"
#broker_agent name_agent

# Agent uses your hostname automatically, if you need to change agent name
# use directive agent_name (do not use blank spaces, please).
# This parameter is CASE SENSITIVE.

# agent_name My_Custom_Agent_name

# To define agent name by specific command, define 'agent_name_cmd'.
# If agent_name_cmd is defined, agent_name is ignored.
# (In the following example, agent name is 'hostname_IP')
#agent_name_cmd cscript.exe //B "%ProgramFiles%\Pandora_Agent\util\agentname.vbs"

#Parent agent_name
#parent_agent_name caprica

# address: Enforce to server a ip address to this agent
# You can also try to detect the first IP using "auto", for example

#address auto
# or setting a fixed IP address, like for example:
#address 192.168.36.73

# This limits operation if temporal dir has not enough free disk.
#temporal_min_size 1024

# Delay start execution X second before start to minonitoring nothing
#startup_delay 30

# Interval is defined in seconds
interval 300

# tranfer_modes: Possible values are local, tentacle (default), ftp and ssh.
transfer_mode tentacle
server_port 41121

# In case of using FTP or tentacle with password. User is always "pandora"
#server_pwd pandora

# Debug mode do not copy XML data files to server.
debug 1

# Set XML encoding (ISO-8859-1 by default). For Windows 7 and 2012 works fine UTF-8 encoding.(Recommended)
#encoding UTF-8

# If set to 1 start Drone Agent's Proxy Mode
# proxy_mode 1

# Max number of simmultaneus connection for proxy (by default 10)
# proxy_max_connection 10

# Proxy timeout (by default 1s)
# proxy_timeout 1

# Enable or disable XML buffer.
xml_buffer 0

# Secondary server configuration
# ==============================

# If secondary_mode is set to on_error, data files are copied to the secondary
# server only if the primary server fails. If set to always, data files are
# always copied to the secondary server.
#secondary_mode on_error
#secondary_server_ip localhost
#secondary_server_path /var/spool/pandora/data_in
#secondary_server_port 41121
#secondary_transfer_mode tentacle
#secondary_server_pwd mypassword
#secondary_server_ssl no
#secondary_server_opts

# Example UDP server to be able to execute remote actions such
# as starting or stopping process.
#udp_server 1
#udp_server_port 4321
#udp_server_auth_address 192.168.1.23
#process_firefox_start firefox
#process_firefox_stop killall firefox
#service_messenger 1

# Module Definition
# Check online documentation and module library at http://pandorafms.org
# =================

#module_plugin cscript.exe //B "C:\diskusage_plugin.vbs"
module_plugin cscript.exe //B "%programfiles%\pandora_agent\util\backup_plugin.vbs"


module_begin
module_name WMILogicalDisk
module_type generic_data_string
module_wmiquery Select FreeSpace from Win32_LogicalDisk where Name="C:"
module_wmicolumn FreeSpace
module_end

#module_begin
#module_name SQL Query
#module_type generic_data_string
#module_exec "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" C:\hd.ps1
#module_end


# CPU Load using WMI
module_begin
module_name CPU Load
module_type generic_data
module_wmiquery SELECT LoadPercentage FROM Win32_Processor
module_wmicolumn LoadPercentage
module_description CPU Load (%)
module_min_warning 80
module_max_warning 90
module_min_critical 91
module_max_critical 100
module_end

# Number processes
#module_begin
#module_name Number processes
#module_type generic_data
#module_exec tasklist | gawk "NR > 3 {print$0}" | wc -l
#module_description Number of processes running
#module_min_warning 175
#module_max_warning 249
#module_min_critical 250
#module_max_critical 300
#module_end

# Free Memory
#module_begin
#module_name FreeMemory
#module_type generic_data
#module_freepercentmemory
#module_description Free memory (%).
#module_min_warning 21
#module_max_warning 30
#module_min_critical 0
#module_max_critical 20
#module_end

# Log events
#module_begin
#module_name System Events (TermService)
#module_type async_string
#module_logevent
#module_description Log Events coming from Terminal Service
#module_source System
#module_application TermService
#module_end

#module_begin
#module_name Security Events (Invalid Login)
#module_type async_string
#module_description Security log events for invalid login attempt
#module_logevent
#module_source Security
#module_eventcode 529
#module_end

# Check if Dhcp service is enabled
#module_begin
#module_name DHCP Enabled
#module_type generic_proc
#module_service Dhcp
#module_description Check DCHP service enabled
#module_end

#Antivirus monitoring
#This modules checks the antivirus is running on your system, if there is and antivirus
#This module gets the last date the signature file was updated and send this date to pandora.
#module_begin
#module_name Antivirus Last Update
#module_type async_string
#module_precondition =~ avguard.exe cmd.exe /c tasklist | grep avguard.exe | gawk "{print $1}"
#module_exec dir "%ProgramFiles%\Avira\AntiVir Desktop\aevdf.dat" | grep aevdf.dat | gawk "{print $1\" \"$2}"
#module_description Last update for Antivirus Signature file
#module_end

# Example plugin to retrieve drive usage
#module_plugin cscript.exe //B "%ProgramFiles%\Pandora_Agent\util\df.vbs"

# Free space on disk C: (%)
#module_begin
#module_name FreeDiskC
#module_type generic_data
#module_freepercentdisk C:
#module_description Free space on drive C: (%)
#module_min_warning 31
#module_max_warning 40
#module_min_critical 0
#module_max_critical 30
#module_end

# CPU usage percentage
#module_begin
#module_name CPUUse
#module_type generic_data
#module_cpuusage all
#module_description CPU# usage
#module_min_warning 70
#module_max_warning 90
#module_min_critical 91
#module_max_critical 100
#module_end

# Free space on disk D: (%)
# module_begin
# module_name FreeDiskD
# module_type generic_data
# module_freepercentdisk D:
# module_description Free space on drive D: (%)
# module_end

# Windows inventory module (This information will be displayed only in enterprise version)^M
module_begin
module_plugin cscript.exe //B "%PROGRAMFILES%\Pandora_Agent\util\cpuinfo.vbs"
module_crontab * 12-15 * * 1
module_end

module_begin
module_plugin cscript.exe //B "%PROGRAMFILES%\Pandora_Agent\util\moboinfo.vbs"
module_crontab * 12-15 * * 1
module_end

module_begin
module_plugin cscript.exe //B "%PROGRAMFILES%\Pandora_Agent\util\diskdrives.vbs"
module_crontab * 12-15 * * 1
module_end

module_begin
module_plugin cscript.exe //B "%PROGRAMFILES%\Pandora_Agent\util\cdromdrives.vbs"
module_crontab * 12-15 * * 1
module_end

module_begin
module_plugin cscript.exe //B "%PROGRAMFILES%\Pandora_Agent\util\videocardinfo.vbs"
module_crontab * 12-15 * * 1
module_end

module_begin
module_plugin cscript.exe //B "%PROGRAMFILES%\Pandora_Agent\util\ifaces.vbs"
module_crontab * 12-15 * * 1
module_end

module_begin
module_plugin cscript.exe //B "%PROGRAMFILES%\Pandora_Agent\util\monitors.vbs"
module_crontab * 12-15 * * 1
module_end

module_begin
module_plugin cscript.exe //B "%PROGRAMFILES%\Pandora_Agent\util\printers.vbs"
module_crontab * 12-15 * * 1
module_end

module_begin
module_plugin cscript.exe //B "%PROGRAMFILES%\Pandora_Agent\util\raminfo.vbs"
module_crontab * 12-15 * * 1
module_end

module_begin
module_plugin cscript.exe //B "%PROGRAMFILES%\Pandora_Agent\util\software_installed.vbs"
module_crontab * 12-15 * * 1
module_end

module_begin
module_plugin cscript.exe //B "%PROGRAMFILES%\Pandora_Agent\util\userslogged.vbs"
module_crontab * 12-15 * * 1
module_end

module_begin
module_plugin cscript.exe //B "%PROGRAMFILES%\Pandora_Agent\util\productkey.vbs"
module_crontab * 12-15 * * 1
module_end

module_begin
module_plugin cscript.exe //B "%PROGRAMFILES%\Pandora_Agent\util\productID.vbs"
module_crontab * 12-15 * * 1
module_end

module_begin
module_plugin cscript.exe //B "%PROGRAMFILES%\Pandora_Agent\util\architecture.vbs"
module_crontab * 12-15 * * 1
module_end

module_begin
module_plugin cscript.exe //B "%PROGRAMFILES%\Pandora_Agent\util\domain.vbs"
module_crontab * 12-15 * * 1
module_end

module_begin
module_plugin cscript.exe //B "%PROGRAMFILES%\Pandora_Agent\util\osversion.vbs"
module_crontab * 12-15 * * 1
module_end

# Example plugin to retrieve last 5 min events in log4x format
# module_plugin cscript.exe //B "%ProgramFiles%\Pandora_Agent\util\logevent_log4x.vbs" Aplicacion System 300

# Sample on how to get a value from registry
# This returns the last time user launch microsoft Windows update
#module_begin
#module_name Windows_Update_LastRun
#module_type generic_data_string
#module_exec getreg LM "SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" SetupWizardLaunchTime
#module_description Last date and time user launch microsoft Windows update
#module_end

# Example of a remote TCP check
#module_begin
#module_name Google Port 80
#module_type generic_proc
#module_tcpcheck http://www.google.com
#module_port 80
#module_timeout 5
#module_description Check local port 80
#module_end

# Example of regexp matching
#module_begin
#module_name PandoraAgent_log
#module_type generic_data_string
#module_regexp C:\archivos de programa\pandora_agent\pandora_agent.log
#module_description This module will return all lines from the specified logfile
#module_pattern .*
#module_end

# Get processor time from Performance Counter (SPANISH only, check your
# locale string) using the Windows Performance tool to
# identify proper PerCounter strings. Check documentation for detailed steps.
#module_begin
#module_name Processor_Time
#module_type generic_data
#module_perfcounter \Procesador(_Total)\% de tiempo de procesador
#module_end

# Example of module exec, used to know about the memory used by pandora process
# grep.exe and gawk.exe are included in the util directory of the agent.
#module_begin
#module_name PandoraFMS RAM
#module_type generic_data
#module_exec tasklist | grep Pandora | gawk "{ print $5 }" | tr -d "."
#module_end

# Example of module exec, used get number of active terminal services sessions
# Works on Windows 2003. In Windows XP the query.exe and quser.exe files were
# moved to %WINDIR%\system32\dllcache. If XP, copy the exe to %WINDIR%\system32
#module_begin
#module_name Active TS Sessions
#module_type generic_data_string
#module_exec query session | grep Activ | gawk "{ print $2 }" |wc -l
#module_description Number of active TS Sessions
#module_end

# Example of watchdog process opening it if it gets closed
# NOTE: This need to enable "Service can interactuate with the deskop" option
# in the Pandora FMS Service configuration (Windows Service Control management).
#module_begin
#module_name TaskManager
#module_type generic_proc
#module_proc taskmgr.exe
#module_description This keeps taskmgr always running in the system
#module_async yes
#module_watchdog yes
#module_start_command c:\windows\system32\taskmgr.exe
#module_end

# Example of watchdog service opening it if it gets closed
#module_begin
#module_name ServiceVNC_Server
#module_type generic_proc
#module_service winvnc
#module_description Service VNC Server watchdog/service
#module_async yes
#module_watchdog yes
#module_end

# Example of preconditions
#module_begin
#module_name Test Precondicion
#module_type generic_data
#module_precondition < 10 cmd.exe /c echo 5
#module_precondition > 10 cmd.exe /c echo 15
#module_precondition = 10 cmd.exe /c echo 10
#module_precondition != 10 cmd.exe /c echo 5
#module_precondition =~ 10 cmd.exe /c echo 10
#module_precondition (5,15) cmd.exe /c echo 10
#module_freepercentmemory
#module_description Precondition test module
#module_end

# Example of postconditions
#module_begin
#module_name Test Postcondicion
#module_type generic_data
#module_condition < 10 cmd.exe /c echo min >> c:\log.txt
#module_condition > 3 cmd.exe /c echo max >> c:\log.txt
#module_condition = 5 cmd.exe /c echo equal >> c:\log.txt
#module_condition != 10 cmd.exe /c echo diff >> c:\log.txt
#module_condition =~ 5 cmd.exe /c echo regexp >> c:\log.txt
#module_condition (3,8) cmd.exe /c echo range >> c:\log.txt
#module_exec echo 5
#module_description Postcondition test module
#module_end


PANDORA AGENT LOG
_____________________________________

2015-07-14 10:31:50 Pandora agent started


PANDORA AGENT DEBUG LOG
_____________________________________

2015-07-14 12:01:50 Run begin
2015-07-14 12:01:50 Run plugin
2015-07-14 12:01:50 Executing: cmd.exe /c "cscript.exe //B "%programfiles%\pandora_agent\util\backup_plugin.vbs""
2015-07-14 12:01:50 Run WMILogicalDisk
2015-07-14 12:01:51 Run CPU Load
2015-07-14 12:01:52 Cron not matched for module plugin
2015-07-14 12:01:52 Cron not matched for module plugin
2015-07-14 12:01:52 Cron not matched for module plugin
2015-07-14 12:01:52 Cron not matched for module plugin
2015-07-14 12:01:52 Cron not matched for module plugin
2015-07-14 12:01:52 Cron not matched for module plugin
2015-07-14 12:01:52 Cron not matched for module plugin
2015-07-14 12:01:52 Cron not matched for module plugin
2015-07-14 12:01:52 Cron not matched for module plugin
2015-07-14 12:01:52 Cron not matched for module plugin
2015-07-14 12:01:52 Cron not matched for module plugin
2015-07-14 12:01:52 Cron not matched for module plugin
2015-07-14 12:01:52 Cron not matched for module plugin
2015-07-14 12:01:52 Cron not matched for module plugin
2015-07-14 12:01:52 Cron not matched for module plugin
2015-07-14 12:01:52 Cron not matched for module plugin
2015-07-14 12:01:52 plugin getXML begin
2015-07-14 12:01:52 plugin getXML end
2015-07-14 12:01:52 WMILogicalDisk getXML begin
2015-07-14 12:01:52 WMILogicalDisk getXML end
2015-07-14 12:01:52 CPU Load getXML begin
2015-07-14 12:01:52 CPU Load getXML end
2015-07-14 12:01:52 plugin getXML begin
2015-07-14 12:01:52 plugin getXML end
2015-07-14 12:01:52 plugin getXML begin
2015-07-14 12:01:52 plugin getXML end
2015-07-14 12:01:52 plugin getXML begin
2015-07-14 12:01:52 plugin getXML end
2015-07-14 12:01:52 plugin getXML begin
2015-07-14 12:01:52 plugin getXML end
2015-07-14 12:01:52 plugin getXML begin
2015-07-14 12:01:52 plugin getXML end
2015-07-14 12:01:52 plugin getXML begin
2015-07-14 12:01:52 plugin getXML end
2015-07-14 12:01:52 plugin getXML begin
2015-07-14 12:01:52 plugin getXML end
2015-07-14 12:01:52 plugin getXML begin
2015-07-14 12:01:52 plugin getXML end
2015-07-14 12:01:52 plugin getXML begin
2015-07-14 12:01:52 plugin getXML end
2015-07-14 12:01:52 plugin getXML begin
2015-07-14 12:01:52 plugin getXML end
2015-07-14 12:01:52 plugin getXML begin
2015-07-14 12:01:52 plugin getXML end
2015-07-14 12:01:52 plugin getXML begin
2015-07-14 12:01:52 plugin getXML end
2015-07-14 12:01:52 plugin getXML begin
2015-07-14 12:01:52 plugin getXML end
2015-07-14 12:01:52 plugin getXML begin
2015-07-14 12:01:52 plugin getXML end
2015-07-14 12:01:52 plugin getXML begin
2015-07-14 12:01:52 plugin getXML end
2015-07-14 12:01:52 plugin getXML begin
2015-07-14 12:01:52 plugin getXML end
2015-07-14 12:01:52 Copying XML on C:\Program Files\pandora_agent\temp\BAHRAM.27514.data
2015-07-14 12:01:52 Next execution on 300 seconds



PANDORA XML
_____________________________________

<?xml version="1.0" encoding="ISO-8859-1" ?>
<agent_data agent_name="BAHRAM" description="" version="5.1SP3(Build 150624)" timestamp="2015-07-14 10:36:52" interval="300" os_name="Microsoft Windows 7 Professional " os_version="Microsoft Windows 7 Professional Service Pack 1" group="Servers AS" parent_agent_name="">
<module>
<name><![CDATA[WMILogicalDisk]]></name>
<type><![CDATA[generic_data_string]]></type>
<module_interval><![CDATA[1]]></module_interval>
<data><![CDATA[271866138624]]></data>
</module>
<module>
<name><![CDATA[CPU Load]]></name>
<type><![CDATA[generic_data]]></type>
<description><![CDATA[CPU Load (%)]]></description>
<module_interval><![CDATA[1]]></module_interval>
<min_critical><![CDATA[91]]></min_critical>
<max_critical><![CDATA[100]]></max_critical>
<min_warning><![CDATA[80]]></min_warning>
<max_warning><![CDATA[90]]></max_warning>
<data><![CDATA[4]]></data>
</module>
</agent_data>
 Reply
#7
Habéis podido ver donde esta el problema. Estoy pensando que igual es el propio agente que no genera la consulta de forma correcta.

La verdad que es una putada, porque este script es muy sencillo y no debería de dar problemas. No se que puedo hacer.
 Reply
#8
¿Puede ser por esto?
<name><![CDATA[WMILogicalDisk]]></name>
<type><![CDATA[generic_data_string]]></type>
<module_interval><![CDATA[1]]></module_interval>
<data><![CDATA[271866138624]]></data>
</module>

Fíjate que tenemos un generic_data_string y nos devuelve valores númericos solamente. ¿Puedes cambiar el tipo a generic_data?

Un saludo,

Sergio
 Reply
#9
Muchas gracias smartin, pero el modulo que no carga es el del Backup, el que te pongo aquí. El el XML que genera pandora no saca nada, pero en modo consola si que sale la información. Estoy pensado que igual es algún fallo del agente, porque ya no se que puede ser.

Option Explicit
On Error Resume Next

' Variables
Dim objWMIService, objItem, colItems, argc, argv, i, Percent

' Parse command line parameters
argc = Wscript.Arguments.Count
Set argv = CreateObject("Scripting.Dictionary")
For i = 0 To argc - 1
    argv.Add Wscript.Arguments(i), i
Next

' Get drive information
Set objWMIService = GetObject ("winmgmts:\\.\root\cimv2")
Set colItems = objWMIService.ExecQuery ("Select * from Win32_LogicalDisk WHERE DriveType=4 AND DeviceID = 'X:'")

For Each objItem in colItems
If (objItem.FreeSpace <> "")  Then

    Percent = round (100 - (objItem.FreeSpace / objItem.Size) * 100, 2)
Wscript.StdOut.WriteLine "<module>"
Wscript.StdOut.WriteLine "    <name>backup_plugin</name>"
Wscript.StdOut.WriteLine "    <description><![CDATA[Used space on " & objItem.Name & " (%)]]></description>"
Wscript.StdOut.WriteLine "    <type>generic_data</type>"
Wscript.StdOut.WriteLine "    <unit>MB</unit>"
Wscript.StdOut.WriteLine "    <min_warning>85</min_warning>"
Wscript.StdOut.WriteLine "    <max_warning>89.9</max_warning>"
Wscript.StdOut.WriteLine "    <min_critical>90</min_critical>"
Wscript.StdOut.WriteLine "    <max_critical>100</max_critical>"
Wscript.StdOut.WriteLine "    <disabled>0</disabled>"
Wscript.StdOut.WriteLine "    <data><![CDATA[" & Percent & "]]></data>"
Wscript.StdOut.WriteLine "</module>"

       
End If
Next
 Reply


Users browsing this thread: 1 Guest(s)


(c) 2006-2018 Artica Soluciones Tecnológicas. Contents of this wiki are under Create Common Attribution v3 licence. | pandorafms.com | pandorafms.org

Theme © MyBB Themes