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);
?>

Then define a Data Source like this:

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

And you may refer to this helpful article:
http://www.askaboutphp.com/44/cacti-using-cacti-to-monitor-web-page-loading-part-1.html