Steps to follow if the TFTP and SCP servers in the Site24x7 On-Premise Poller are not running
If you have chosen the TFTP and SCP protocols for network configuration management, the status of the TFTP and SCP servers should be
Running
for configuration backups to happen properly. If the status is
Not Running
, follow the steps below.
Windows
-
From your Windows machine, open
Resource Monitor
as an administrator.
-
Click the
Network
tab.
-
In the
Port
column under the
Listening Ports
section, check ports 22 and 69 for the SCP and TFTP servers, respectively.
-
Make a note of the PID for each port.
Port 22
Port 69
-
To stop a running process in Windows:
-
Run
Task Manager
as an administrator.
-
Click the
Details
tab.
-
Search for the process with the PID that you noted above.
-
Right-click the process and select
Properties
.
-
Check the process location and verify if it is important.
-
If not, right-click the process and select
End process tree
.
-
Restart the On-Premise Poller for the changes to take effect.
Linux
The SCP server is not running
The default SSH service used for remote login to the server on which the On-Premise Poller is installed runs on port 22. A conflict arises when another process uses the same port. Due to this, the SCP server status is shown as
Not Running
.
To resolve this issue, you must replace the SSH port number used for remote server login. Changing the port may impact your remote login to the server. So, we recommend using the SSH/TELNET or SSH - TFTP/TELNET - TFTP protocol before changing the SSH service port. As another option, you can try using the On-Premise Poller on a Windows server.
Nevertheless, if you must use the SCP protocol, follow the steps given below.
-
Select an unused port between 1024 and 65535. In this example, we will select port 2222. To verify if it is available, execute the following command on the terminal:
sudo netstat -tulpn | grep ':2222'
If the port is available, it will not be listed when the command is executed. Otherwise, select a different port within the specified range.
-
Next, we will change the default port 22 to 2222. For this, you must open the port in the firewall also.
Updating the SSH service port without opening the new port in the firewall might result in losing the remote connection to the server. Execute the appropriate command according to the Linux flavor and firewall type
-
For Uncomplicated Firewall (UFW) in Ubuntu-based systems:
-
To open the port, execute the following command:
sudo ufw allow [port-number]
For example: sudo ufw allow 2222
-
After adding the port to the firewall, restart the UFW service to apply the changes by executing the following command:
sudo systemctl restart ufw
-
For firewalld in CentOS- and RHEL-based systems:
-
To open the port, execute the following command:
sudo firewall-cmd --zone=public --add-port=[port-number]/[protocol] --permanent
For example: sudo firewall-cmd --zone=public --add-port=2222/tcp --permanent
-
Restart the firewalld service with the following command:
sudo systemctl restart firewalld
If you are using a SELinux-based system, execute the following command in addition to the previous commands:
semanage port -a -t ssh_port_t -p tcp [port_number]
For example: semanage port -a -t ssh_port_t -p tcp 2222
Next, open the /etc/ssh/sshd_config file.
Search for the #Port 22 line and add the line Port 2222 below it.
Save the file.
Then, reload the SSH service by executing the following command:
sudo systemctl restart sshd
Before closing this session, try connecting to the remote host with the newly configured port using the following command:
ssh {user}@{server_ip} -p 2222
If you still face any issues, delete the line added in step 5 and reload the SSH service as stated in step 7. After this, contact your sysadmin with the details to change the SSH service port.
The TFTP server is not running
This issue occurs when port 69 is already occupied by another process. You must end any unnecessary process using this port to resolve this issue.
Execute the following command to list all the programs on port 69 and fetch the process ID:
sudo netstat -tulpn | grep ':69'
Here, the process ID is 5908.
To know more about this process, execute the following command:
ps aux | grep '5908'
If the process is not required and is not related to the On-Premise Poller, verify it with your sysadmin, then end it by using the following command:
kill -9 '5908'
Related Articles
Troubleshooting issues with Site24x7's Network Configuration Manager (NCM)
Some common NCM issues occur with: NCM credentials. Configuration backups. Device additions. Points to note when adding a device to NCM Prerequisites: Protocols and ports Protocol Port TFTP 69 SSH 22 Telnet 23 Ensure that the above ports are not ...
Prerequisites for installing the On-Premise Poller
To monitor your internal network and resources behind a firewall, you need to install the On-Premise Poller within your network. You can install the On-Premise Poller on physical or virtual machines. System requirements: The machine on which the ...
How do I uninstall an On-Premise Poller
The default directories for installing the On-Premise Poller are: Windows: C:\Program Files(x86)\Site24x7OnPremisePoller Linux: /opt/Site24x7OnPremisePoller Follow the steps given below to uninstall the On-Premise Poller from your Windows or Linux ...
Add an On-Premise Poller for different servers having similar host name and IP address
On-Premise Poller helps monitor your internal network/resources behind the firewall. To add an On-Premise Poller for multiple servers having similar hostname and IP addresses, please follow the steps given below: Install the Poller agent. Refer here ...
Troubleshooting steps for On-Premise Poller
Prerequisites and basic details: Prerequisites for installing On-Premise Poller Necessary ports to allow access to the installed On-Premise Poller How secure is On-Premise Poller Amount of bandwidth consumed by the On-Premise Poller software Adding ...