Monitoring Ubuntu Linux from LoadRunner (RSTAT)

Over the years I’ve used RSTAT to monitor the performance of Linux servers during performance tests many times. Historically I’ve asked Linux admins to enable RSTAT for me but over the last year or two I’ve incorporated various Linux machines into my test and demo environment so I’ve had to do this myself.

I’m primarily a Microsoft specialist so I always seem to rely on Google searches and some trial and error to resolve problems that I encounter with Linux and this weekend was no exception. I spotted a FaceBook post from Scott Moore describing problems that he was having with LoadRunner and RSTAT so I decided to see if I could help him.

2016-11-15-08_16_07-scott-moore

I installed RSTAT on my Ubuntu test machine at home and immediately saw the dreaded error message “Error while creating the RPC client. Ensure that the machine can be connected and that it runs the rstat daemon (use rpcinfo utility for this verification).”

Whatever I tried, I could’t get RSTAT to start. After some ‘Googling’, I found a number of posts in various places which helped me to resolve this problem.

A post on StackExchange (related to NFS issues) told me that rpcbind may have a dependency on a package called nfs-common. I installed this “just in case”. The same post told me that to start STATD (which I think is related to RSTAT) automatically at boot, I needed to add “NEED_STATD=yes” to the file “/etc/default/nfs-common”.

A  post on GadgetWiz.com told me that I should edit my /etc/hosts.allow file to ensure that the local host could make rstatd requests.

After restarting my Ubuntu PC, I checked that RSTATD was running using the commands “rsysinfo localhost” and “rup localhost”. I was pleased to see that after making these changes, it was possible to monitor my Ubuntu machine using LoadRunner.

 

lr_ubuntu2

I repeated my test on a new Ubuntu 16.04 LTS machine which I monitored using LoadRunner 12.53. A list of the commands that I used is below:

Install rstatd and related components:

sudo apt-get install rstatd rstat-client nfs-common

Add a line to /etc/hosts.allow to allow certain hosts to make rstatd requests:

rpc.rstatd: localhost

Added a line to /etc/default/nfs-common to start STATD automatically:

NEED_STATD=yes

These commands confirm that RSTATD is running:

rpcinfo -p localhost 
rsysinfo localhost
rup localhost

Another Trump-related website failure

My son came home from school today to show me a funny Trump-related website. Apparently it’s all the rage at school.  The website lets you blow a Trumpet in Donald Trump’s face. There’s a trumpet noise and a funny animation of the President-elect’s hair blowing. I can see why this is popular in schools and (probably) workplaces…. it’s disrespectful and childishly funny.

The site (trumpdonald.org) has been developed by a Swedish Ad Agency called Animal and it’s obviously captured the world’s imagination in the last day or so. Their website hit counter is at over 100 million hits and I just had a look at the site, only to see a HTTP 503 (Service Unavailable) error.

These (earlier) images are from the Daily Telegraph. In their article which was published on 7th November the site had 9 million “Trumps” (hits)
trump2_copy_3567766b trumpy_3567775b

 

The site has more than 100 million hits now (10th November) and the counter is still rocketing upwards, have a look if the site’s not melted yet under load…..

 

HPE software and Micro Focus merger

In September many people were surprised at the news that HPE was set to spin-off their software business including the former HP Operations Management products and former Mercury products.

I wrote a brief article decribing my thoughts about this at the time.

Since this announcement, more information has been released by HPE describing their reasoning behind this proposed change to their business as well as what it means for their customers. The Vivit user group in Chicago recently held a webinar hosted by Mihai Grigorescu which allowed HPE to describe the proposed changes. Tony Sumpster and Genefa Murphy from HPE then took questions from Vivit members. If you’re a current HPE Software customer I’d heartily recommend watching this webinar.

tony_sumpster_hpe genefa_murphy_hpe
 Tony Sumpster
Senior Vice President
IT Operations Management
Hewlett Packard Enterprise
Genefa Murphy
Vice PresidentProduct & Program Marketing
Application Delivery Management
Hewlett Packard Enterprise

The webinar is available on the Vivit website at this URL:
(Free Vivit membership required)
http://www.vivit-worldwide.org/members/group_content_view.asp?group=80108&id=620706

Alternatively, you can view the webinar by clicking the link below
(Bright Talk membership required)
https://www.brighttalk.com/webcast/9649/229733