Welcome to the Pandora FMS Module Library

 
This is a library with modules, documentation and tools for Pandora FMS users, both public Open Source and Enterprise. Please use your support credentials (same as used to enter support/ticketing system) in the menu to your right. You will be granted access to a resourceful module library, such as Oracle, VMware, JBoss and others, ready to be used in production enviroments, with official professional support from Artica. If you do not own an enterprise account, you still can browse and download lots of modules, you can even register a free account and contribute with your own modules/tools for other public users.

Home > Operating Systems > Windows

FTP Connection from windows agent

Author: mario_pulido Create in: 12/15/2015 Update in: 01/01/1970
Rating:
Module type : Local module


How monitor with a simple module to check ftp connectivity from windows agent to ftp server.

1.- Create a bat file with this setup:

@echo off

REM Generate the script. Will overwrite any existing temp.txt
echo open servername> temp.txt
echo username>> temp.txt
echo password>> temp.txt
echo get %1>> temp.txt
echo quit>> temp.txt

REM Launch FTP and pass it the script
ftp -s:temp.txt

REM Clean up.
del temp.txt

2.- Check the output of this bat and do a grep / wc -l with content of the output

Module data

module_begin
module_name FTP Check
module_type generic_proc
module_exec FTP.bat | grep " content " | wc -l
module_end