Page 1 of 1

SNMP traps for monitoring WING FTP

Posted: Mon Feb 22, 2010 4:16 pm
by mellul
Hi,

I have been asked if it is possible to monitor your FTP service remotely by using SNMP traps. We already have basic monitoring of the server - hard disk, cpu etc, but we are now looking into monitoring applications.

Is this possible? I am running Wing FTP on Windows Server 2003 and I have approximatly 300 FTP users. We are using Cacti for monitoring purposes on a remote server.

Thanks in Advance

Re: SNMP traps for monitoring WING FTP

Posted: Wed Feb 24, 2010 12:52 pm
by FTP
Which status do you want to monitor? FTP is living or die?
Or more complex status? If you want to monitor more complex status like "Domain status" under admin console,
You need to use HTTP protocol(webservice) to receive status data, not SNMP protocol. Even though I have not used your monitor software.

Re: SNMP traps for monitoring WING FTP

Posted: Wed Feb 24, 2010 1:51 pm
by mellul
What I would like to monitor is for example, how many people are using their FTP accounts at a specific time (by graphing the results automatically) and what protocol is used the most. It would also be useful to monitor the performance, upload and download speeds at different intervals.

Thanks again

Re: SNMP traps for monitoring WING FTP

Posted: Wed Feb 24, 2010 2:48 pm
by FTP
OK, I will install that software then try to write a script for you.

Re: SNMP traps for monitoring WING FTP

Posted: Fri Feb 26, 2010 12:32 pm
by FTP
I have tried Cacti for monitoring Wing FTP for a while, I used php script to capture WingFTP webservice's output, and this output will be Cacti's data input. Here is the php script, you may save it into "scripts/wingftp.php"

Code: Select all

<?php

$strUrl = "http://127.0.0.1:5466/admin_webservice.html"; 
$strUrlParam = "?admin=demo&pass=demo123&cmd=";             //change it to your own admin/pass

$strLuaScript = <<< EOT
	local statistic = c_GetDomainStatistic("domain1")
	print("sessions:"..statistic["current_session"])
	print(" downloads:"..statistic["down_speed"])
	print(" uploads:"..statistic["up_speed"])
EOT;
 
$strResult = file_get_contents($strUrl.$strUrlParam.rawurlencode($strLuaScript));
print($strResult);

?>
Image

Then define a Data Source like this:
Image

Then create a Graph mapping with Data Source, finally you will see the graph output like this:
Image


And you may refer to this helpful article:
https://www.askaboutphp.com/2008/09/17/cacti-using-cacti-to-monitor-web-page-loading-part-1/

Re: SNMP traps for monitoring WING FTP

Posted: Wed Apr 14, 2010 10:12 am
by mellul
Hi,

Thanks for your help. We have finally configured it on our Cacti monitoring system and that seems to work.

We have a problem though with what is sent from WingFTP.

The download speed, Sessions and Upload speed is giving a constant value. For example Download speed is giving a contant value of 25k. We checked with the output of the FTP console and it is giving the same output. Could there be some kind of configuration I am missing?

Thanks again for your help.

Re: SNMP traps for monitoring WING FTP

Posted: Wed Apr 14, 2010 1:56 pm
by FTP
constant value? I have no idea with this. But I suggest you use built-in graph chart of Wing FTP Server, you can see it on "Domains -> Graphs".