SNMP traps for monitoring WING FTP

Please post here if you have problems in using Wing FTP Server.

SNMP traps for monitoring WING FTP

Postby mellul » Mon Feb 22, 2010 4:16 pm

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
mellul
 
posts 77
 
joined Mon Nov 16, 2009 2:00 pm

Re: SNMP traps for monitoring WING FTP

Postby FTP » Wed Feb 24, 2010 12:52 pm

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.
FTP
Site Admin
 
posts 1212
 
joined Tue Sep 29, 2009 6:09 am

Re: SNMP traps for monitoring WING FTP

Postby mellul » Wed Feb 24, 2010 1:51 pm

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
mellul
 
posts 77
 
joined Mon Nov 16, 2009 2:00 pm

Re: SNMP traps for monitoring WING FTP

Postby FTP » Wed Feb 24, 2010 2:48 pm

OK, I will install that software then try to write a script for you.
FTP
Site Admin
 
posts 1212
 
joined Tue Sep 29, 2009 6:09 am

Re: SNMP traps for monitoring WING FTP

Postby FTP » Fri Feb 26, 2010 12:32 pm

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:
http://www.askaboutphp.com/44/cacti-using-cacti-to-monitor-web-page-loading-part-1.html
FTP
Site Admin
 
posts 1212
 
joined Tue Sep 29, 2009 6:09 am

Re: SNMP traps for monitoring WING FTP

Postby mellul » Wed Apr 14, 2010 10:12 am

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.
mellul
 
posts 77
 
joined Mon Nov 16, 2009 2:00 pm

Re: SNMP traps for monitoring WING FTP

Postby FTP » Wed Apr 14, 2010 1:56 pm

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".
FTP
Site Admin
 
posts 1212
 
joined Tue Sep 29, 2009 6:09 am


Return to Support

Who is online

Users browsing this forum: No registered users and 3 guests

cron