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
SNMP traps for monitoring WING FTP
-
- Site Admin
- Posts: 2082
- Joined: Tue Sep 29, 2009 6:09 am
Re: SNMP traps for monitoring WING 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.
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.
-
- Posts: 77
- Joined: Mon Nov 16, 2009 2:00 pm
Re: SNMP traps for monitoring WING FTP
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
Thanks again
-
- Site Admin
- Posts: 2082
- Joined: Tue Sep 29, 2009 6:09 am
Re: SNMP traps for monitoring WING FTP
OK, I will install that software then try to write a script for you.
-
- Site Admin
- Posts: 2082
- Joined: Tue Sep 29, 2009 6:09 am
Re: SNMP traps for monitoring WING 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"
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:
https://www.askaboutphp.com/2008/09/17/cacti-using-cacti-to-monitor-web-page-loading-part-1/
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:
https://www.askaboutphp.com/2008/09/17/cacti-using-cacti-to-monitor-web-page-loading-part-1/
-
- Posts: 77
- Joined: Mon Nov 16, 2009 2:00 pm
Re: SNMP traps for monitoring WING FTP
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.
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.
-
- Site Admin
- Posts: 2082
- Joined: Tue Sep 29, 2009 6:09 am
Re: SNMP traps for monitoring WING 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".