Anyone succesfully using APM 2.0 for monitoring website availability? I have run into a few problems when monitoring a site that is loadbalanced, if the site is stopped on one of the loadbalanced web servers the monitor is still reporting up. Any guidence on how this is done or examples of monitor configuration would be great.
How are your web servers being load balanced (round robin, MS NLB, Hardware load balancer)? This may be a clue into why this isn't working.
The web servers are load balanced by round robin.
A little more detail on the problem: We have a site running on two webservers that are LB (by round robin). When we configure the template for the given url on port 80 then assign the template to both servers the monitor turns green. The problem is when I stop the site on one of the servers the monitor for the template as well as both web servers stays green rather than going to yellow on the template and red on the failed server.
To set up an HTTP component monitor to use the IP address of the current node in the HTTP request, type http://${IP}/ in the Url field.
To use both the IP address of the current node and the Port Number as defined in the HTTP component monitor, type http://${IP}:${PORT}/ in the Url field.
You may need to add a unique IP for each node, then assign them as an additional IP on the website. Then set your monitor based on the new IPs. That's how I've had to do it in the past to monitor individual sites on both Windows NLB and through a Cisco CSS.
If you are using the Virtual IP for the site then it should always be up, regardless of which node is Up/Down.
Is there a test where you can enter a username and password, so you can test a web site with login?
videotech:Is there a test where you can enter a username and password, so you can test a web site with login?
HTTP Login Script? what is this and where do I find it?
Also our SMTP Server requires authentication, with a user name and password. I was gonna ask in a seperate thread if this could be done.
So am I correct in assuming that this (SMTP authentication) as well as the http login cannot be done without writing a script?
If yes, then can these small features be added to the APM roadmap?
Also are there any examples of these 2 types of scripts, as I need to test these..
Thanks.
The HttpLogin.vbs Windows script in the Program Files\Solarwinds\Orion\APM\SampleScriptMonitors\WindowsScripts folder logs on to a web form. To use it, copy and paste the script into the Script Body field of a Windows Script component monitor.
The variables for the username, password, and url are hardcoded inside the script, and you have to change them to match what you're trying to do. For example, to make the script log into my Google account and then verify that it has successfully accessed my google account page, I would change the variables to the following:
str_url = "https://www.google.com/accounts/Login"
str_find = "Roger's Google Account"str_user = "myGoogleUserName"str_pwd = "myGooglePassword"
Note: There's not supposed to be a semi-colon after the str_url line... the forum is inserting it for some unknown reason. Please delete the semi-colon if you're copying directly from this page.
Excellent, I will give it a try. Is their an example one for SMTP or POP?
The POP3 and SMTP component monitors built into APM 2.0 report the up/down status of the services. The round-trip, SMTP/POP3 monitor you're looking for is on our radar.
I have tried this script and it always seems to show as be working, even when I put a wrong username and password in. Please see below the four lines which I changed in the script.
str_url="http://IP ADDRESS"str_find = ""str_user = "TEST"str_pwd = "WRONG"
Can you see what I am doing wrong?