When adding or monitoring a Windows server through WMI mode of monitoring, I get an error like "Error # The RPC server is unavailable". 1) Try to add server using domain nameuame if the server is in a domain
2) Try to add server using hostnameuame if the server is in a workgroup
3) Check whether you are able to ping to the remote windows machine from the Applications Manager machine. Try ping with hostname and its actual ipaddress.
4) If the server is in a DMZ, then add the ipaddress and hostname in the <C:\Windows\system32\drivers\etc\hosts> file in Applications Manager server.
5) Check whether the RPC and WMI Services are running in the remote machine.
In the remote machine go to Click Start --> Run --> services.msc
Check whether the Service Remote Procedure Call and Windows Management Instrumentation are running.
If it is not running start those Services and try adding it in Applications Manager.
6) Check for any firewall in between the machine where Applications Manager is running and the remote windows machine, open the ports required for WMI Mode of monitoring.
a) Windows Management Instrumentation (WMI) (default : 445)
b) Remote Procedure Call (RPC) (default : 135)
c) WMI uses DCOM for remote communication:
The server to be monitored uses a random port number above 1024 by default to respond back. You have to connect to the target server and configure it to use a port within a specified range of ports (5000- 5100). You can follow the steps mentioned in this link : http://support.microsoft.com/kb/154596 for restricting the ports in the target server.
You are normally recommended to open at least range of 100 ports - http://support.microsoft.com/kb/217351/EN-US/ .The same range of ports must also be opened in firewall.
7) Also on the remote Windows computer, configure the firewall to allow remote administration. To do this, open a command prompt (with run as administrator) and type:
netsh advfirewall firewall set rule group="remote administration" new enable=yes
netsh advfirewall firewall set rule group="Windows Remote Management" new enable=yes
netsh advfirewall firewall set rule group="windows management instrumentation (wmi)" new enable=yes
8) From AppManager host, use wbemtest to find the error message when connecting to the remote system.
Click on Start --> Run --> wbemtest
It opens up Windows Management Instrument Tester. Click Connect button. In the first text box (\\root\default) , give the <\\hostname\root\cimv2>
Give username and password. Now click the Connect button. If it gives error, try giving the ipaddress in the place of hostname. <\\ipaddress\root\cimv2>
If it works, then only through IP address you would be able to access the machine. This may be due to some wrong entires in the hosts file in <C:\\Windows\system32\drivers\etc\hosts> file.
Remove the wrong entries in the file and try with the hostname.
If it still does not work, send the screen shot of the error dialog which comes in wbemtest to appmanager-support@manageengine.com
Click here for image reference