Linux agent installation for VM monitoring
Hi Team,
I wanted to monitor and test one of my SuSe linux server via lpar2rrd. I have installed "lpar2rrd-agent-7.20-1.noarch.rpm" and configured Perl script in crontab.
Though script runs fine as I see files and output getting generated under /var/tmp/, data is not getting populated on lpar2rrd web interface.
Any suggestion on this or am I missing something in this approach.
I wanted to monitor and test one of my SuSe linux server via lpar2rrd. I have installed "lpar2rrd-agent-7.20-1.noarch.rpm" and configured Perl script in crontab.
Though script runs fine as I see files and output getting generated under /var/tmp/, data is not getting populated on lpar2rrd web interface.
Any suggestion on this or am I missing something in this approach.
Comments
-
Hi,datels -ltr /var/tmp/lpar*tail /var/tmp/lpar*err
-
Please find below details.
I have followed below link and see all output is fine, starting from client to lpar2rrd server.
https://www.lpar2rrd.com/Linux-agent-install.php#OSagent
only other observation is, on lpar2rrd server, data is populating under below path and is getting updated every 15 mins but I cannot see linux tab/server under Graph UI
/home/lpar2rrd/lpar2rrd/data/Linux--unknown/no_hmc/stnsvpeadb201stnsvpeadb201:~ # dateTue Aug 17 16:21:38 CST 2021stnsvpeadb201:~ # ls -ltr /var/tmp/lpar*-rw-r--r-- 1 lpar2rrd users 0 Aug 17 09:45 /var/tmp/lpar2rrd-agent-stnsvpxorux01-root.err-rw-r--r-- 1 lpar2rrd users 0 Aug 17 09:45 /var/tmp/lpar2rrd-agent-stnsvpxorux01-root.stamp-trimlogs-rw-r--r-- 1 lpar2rrd users 0 Aug 17 09:46 /var/tmp/lpar2rrd-agent-stnsvpxorux01-root-diskid.stamp-rw-r--r-- 1 lpar2rrd users 0 Aug 17 09:46 /var/tmp/lpar2rrd-agent-stnsvpxorux01-root-multipath.stamp-rw-r--r-- 1 lpar2rrd users 1128 Aug 17 09:46 /var/tmp/lpar2rrd-agent-stnsvpxorux01-root-fs.txt-rw-r--r-- 1 lpar2rrd users 2315 Aug 17 09:56 /var/tmp/lpar2rrd-agent-stnsvpxorux01-root.txtorig-rw-r--r-- 1 lpar2rrd users 0 Aug 17 09:56 /var/tmp/lpar2rrd-agent-stnsvpxorux01-root.stamp-rw-r--r-- 1 lpar2rrd users 0 Aug 17 09:56 /var/tmp/lpar2rrd-agent-stnsvpxorux01-root.txt-tmp-rw-r--r-- 1 lpar2rrd users 10 Aug 17 09:56 /var/tmp/lpar2rrd-agent-stnsvpxorux01-root.stamp-send-rw-r--r-- 1 lpar2rrd users 33898 Aug 17 10:00 /var/tmp/lpar2rrd-agent-stnsvpxorux01-root-ps_job.txt-rw-r--r-- 1 lpar2rrd users 1185 Aug 17 10:11 /var/tmp/lpar2rrd-agent-stnsvpxorux01-root.txt-rw-r--r-- 1 lpar2rrd users 0 Aug 17 10:15 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-root.err-rw-r--r-- 1 lpar2rrd users 0 Aug 17 10:15 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-root.stamp-trimlogs-rw-r--r-- 1 lpar2rrd users 0 Aug 17 10:16 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-root-diskid.stamp-rw-r--r-- 1 lpar2rrd users 0 Aug 17 12:26 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-root-multipath.stamp-rw-r--r-- 1 lpar2rrd users 1086 Aug 17 12:26 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-root-fs.txt-rw-r--r-- 1 lpar2rrd users 34359 Aug 17 12:30 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-root-ps_job.txt-rw-r--r-- 1 lpar2rrd users 0 Aug 17 12:31 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-root.stamp-rw-r--r-- 1 lpar2rrd users 3367 Aug 17 12:31 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-root.txtorig-rw-r--r-- 1 lpar2rrd users 0 Aug 17 12:31 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-root.txt-tmp-rw-r--r-- 1 lpar2rrd users 10 Aug 17 12:31 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-root.stamp-send-rw-r--r-- 1 lpar2rrd users 802 Aug 17 12:41 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-root.txt-rw-r--r-- 1 lpar2rrd users 0 Aug 17 12:44 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-lpar2rrd.err-rw-r--r-- 1 lpar2rrd users 0 Aug 17 12:44 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-lpar2rrd.stamp-trimlogs-rw-r--r-- 1 lpar2rrd users 0 Aug 17 12:45 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-lpar2rrd-diskid.stamp-rw-r--r-- 1 lpar2rrd users 37981 Aug 17 16:00 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-lpar2rrd-ps_job.txt-rw-r--r-- 1 lpar2rrd users 0 Aug 17 16:01 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-lpar2rrd-multipath.stamp-rw-r--r-- 1 lpar2rrd users 1129 Aug 17 16:01 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-lpar2rrd-fs.txt-rw-r--r-- 1 lpar2rrd users 0 Aug 17 16:11 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-lpar2rrd.stamp-rw-r--r-- 1 lpar2rrd users 3009 Aug 17 16:11 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-lpar2rrd.txtorig-rw-r--r-- 1 lpar2rrd users 0 Aug 17 16:11 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-lpar2rrd.txt-tmp-rw-r--r-- 1 lpar2rrd users 10 Aug 17 16:11 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-lpar2rrd.stamp-send-rw-r--r-- 1 lpar2rrd users 790 Aug 17 16:21 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-lpar2rrd.txt-rw-r--r-- 1 lpar2rrd users 2260 Aug 17 16:21 /var/tmp/lpar2rrd-agent.outstnsvpeadb201:~ # tail /var/tmp/lpar*err==> /var/tmp/lpar2rrd-agent-stnsvpxorux01-root.err <====> /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-lpar2rrd.err <====> /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-root.err <== -
Hi,is stnsvpeadb201 a VM runing on VMware or any other virtualisation platform?Do you monitoring that virtualisation platform via lpar2rrd? You should see that data under that platform in the lpar2rd menu, pls checkls -l /home/lpar2rrd/lpar2rrd/tmp/menu*grep stnsvpeadb201 /home/lpar2rrd/lpar2rrd/tmp/menu*grep stnsvpeadb201 /home/lpar2rrd/lpar2rrd/logs/daily*
-
Hi Pavel, stnsvpeadb201 is a VM running on VM. we are trying to direcly send data from VM to lpar2rrd UI via agent.
Below is the output requested.[root@xorux ~]$ls -l /home/lpar2rrd/lpar2rrd/tmp/menu*-rw-r--r-- 1 lpar2rrd lpar2rrd 87924 Aug 18 04:33 /home/lpar2rrd/lpar2rrd/tmp/menu_power_pl.txt-rw-r--r-- 1 lpar2rrd lpar2rrd 87924 Aug 18 04:33 /home/lpar2rrd/lpar2rrd/tmp/menu_power_pl.txt-tmp-rw-r--r-- 1 lpar2rrd lpar2rrd 445515 Aug 18 04:33 /home/lpar2rrd/lpar2rrd/tmp/menu_power.txt-rwxr-xr-x 1 lpar2rrd root 445515 Aug 18 04:33 /home/lpar2rrd/lpar2rrd/tmp/menu.txt-rw-r--r-- 1 lpar2rrd lpar2rrd 0 Apr 1 12:36 /home/lpar2rrd/lpar2rrd/tmp/menu_vms_pl.txt-rw-r--r-- 1 lpar2rrd lpar2rrd 0 Apr 1 12:36 /home/lpar2rrd/lpar2rrd/tmp/menu_vmware_pl.txt-rw-r--r-- 1 lpar2rrd lpar2rrd 0 Apr 1 12:36 /home/lpar2rrd/lpar2rrd/tmp/menu_vmware.txt[root@xorux ~]$[root@xorux ~]$grep stnsvpeadb201 /home/lpar2rrd/lpar2rrd/tmp/menu*[root@xorux ~]$grep stnsvpeadb201 /home/lpar2rrd/lpar2rrd/logs/daily*Linux--unknown,no_hmc,stnsvpeadb201,agent_OK ,2021-08-18 00:06[root@xorux ~]$ -
is hostanme stnsvpeadb201 same as the VM name?
-
Hi Pavel, yes both are same. Any other output or config we need to check
-
Do you monitor that VM via virtualisation management station (like VMware, Hyper-V, RHV ...)
-
I mean monitor it via lpar2rrd
-
Hi Pavel, no we don't monitor VMWRE via lpar2rrd.
-
send us logsNote a short problem description in the text field of the upload form.
cd /home/lpar2rrd/lpar2rrd # or where is your LPAR2RRD working dir
tar cvhf logs.tar logs tmp/*txt tmp/*json
gzip -9 logs.tar
-
Hi Pavel,
Logs has been submitted.
Thank you
Regards,
Gaurav Mishra -
Hi Pavel,
Any update by seeing the logs submitted -
Have not you got direct email we sent you 23/08 ?
-
Hi Jindra, I did not receive the email, can you re-send it.
Thank you -
Hi Gauravsent again
-
Hi Jindra,
Not sure but I am unable to see the email. just confirming that it is been sent to gaurav.mishra@nutrien.com -
Hi Team, Can you please check and update please.
-
Hi Gaurav,the linux machine was before some time under vmware, that is why it is not taken to Linux menuHere is hot fixKeep the original script "bin/find_active_lpar.pl" in backuphttps://download.lpar2rrd.com/patch/7.21-8-4-gd000/find_active_lpar.pl.gz
Gunzip it and copy to /home/lpar2rrd/lpar2rrd/bin (755, lpar2rrd owner)
-rwxrwxr-x 1 lpar2rrd lpar2rrd 88888 Jul 21 09:06 find_active_lpar.pl
If your web browser gunzips it automatically then just rename it: mv find_active_lpar.pl.gz find_active_lpar.pl
Assure that file size is the same as on above exampleEither wait till next day, the change in menu will come automatically or from cmd line:su - lpar2rrd. /home/lpar2rrd/lpar2rrd/etc/lpar2rrd.cfg ; $PERL ./bin/find_active_lpar.pl./load.sh htmlRefresh your guiLet us know
-
Hi Team, I tried above steps but still VM is not populating and graphs are not showing up. Any logs to be captured to check further?
Regards
Gaurav Mishra -
Hi,on the agent side this output:datels -ltr /var/tmp/lpar*tail /bvar/tmp/lpar*err
-
stnsvpeadb201:~ # ls -ltr /var/tmp/lpar*-rw-r--r-- 1 lpar2rrd users 0 Aug 17 09:45 /var/tmp/lpar2rrd-agent-stnsvpxorux01-root.err-rw-r--r-- 1 lpar2rrd users 0 Aug 17 09:45 /var/tmp/lpar2rrd-agent-stnsvpxorux01-root.stamp-trimlogs-rw-r--r-- 1 lpar2rrd users 0 Aug 17 09:46 /var/tmp/lpar2rrd-agent-stnsvpxorux01-root-diskid.stamp-rw-r--r-- 1 lpar2rrd users 0 Aug 17 09:46 /var/tmp/lpar2rrd-agent-stnsvpxorux01-root-multipath.stamp-rw-r--r-- 1 lpar2rrd users 1128 Aug 17 09:46 /var/tmp/lpar2rrd-agent-stnsvpxorux01-root-fs.txt-rw-r--r-- 1 lpar2rrd users 2315 Aug 17 09:56 /var/tmp/lpar2rrd-agent-stnsvpxorux01-root.txtorig-rw-r--r-- 1 lpar2rrd users 0 Aug 17 09:56 /var/tmp/lpar2rrd-agent-stnsvpxorux01-root.stamp-rw-r--r-- 1 lpar2rrd users 0 Aug 17 09:56 /var/tmp/lpar2rrd-agent-stnsvpxorux01-root.txt-tmp-rw-r--r-- 1 lpar2rrd users 10 Aug 17 09:56 /var/tmp/lpar2rrd-agent-stnsvpxorux01-root.stamp-send-rw-r--r-- 1 lpar2rrd users 33898 Aug 17 10:00 /var/tmp/lpar2rrd-agent-stnsvpxorux01-root-ps_job.txt-rw-r--r-- 1 lpar2rrd users 1185 Aug 17 10:11 /var/tmp/lpar2rrd-agent-stnsvpxorux01-root.txt-rw-r--r-- 1 lpar2rrd users 0 Aug 17 10:15 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-root.err-rw-r--r-- 1 lpar2rrd users 0 Aug 17 12:44 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-lpar2rrd.err-rw-r--r-- 1 lpar2rrd users 80 Sep 22 22:05 /var/tmp/lpar2rrd-agent-vmstat-iostat-1632369901-18099.txt-rw-r--r-- 1 lpar2rrd users 0 Oct 3 16:10 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-lpar2rrd.stamp-trimlogs-rw-r--r-- 1 lpar2rrd users 0 Oct 3 16:41 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-lpar2rrd-diskid.stamp-rw-r--r-- 1 lpar2rrd users 0 Oct 3 17:15 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-root.stamp-trimlogs-rw-r--r-- 1 lpar2rrd users 0 Oct 3 17:16 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-root-diskid.stamp-rw-r--r-- 1 lpar2rrd users 0 Oct 4 12:21 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-lpar2rrd-multipath.stamp-rw-r--r-- 1 lpar2rrd users 1129 Oct 4 12:21 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-lpar2rrd-fs.txt-rw-r--r-- 1 lpar2rrd users 0 Oct 4 12:26 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-root-multipath.stamp-rw-r--r-- 1 lpar2rrd users 1129 Oct 4 12:26 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-root-fs.txt-rw-r--r-- 1 lpar2rrd users 45120 Oct 4 13:00 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-lpar2rrd-ps_job.txt-rw-r--r-- 1 root root 45116 Oct 4 13:00 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-root-ps_job.txt-rw-r--r-- 1 lpar2rrd users 0 Oct 4 13:16 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-root.stamp-rw-r--r-- 1 lpar2rrd users 0 Oct 4 13:16 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-lpar2rrd.stamp-rw-r--r-- 1 lpar2rrd users 751 Oct 4 13:16 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-lpar2rrd.txtorig-rw-r--r-- 1 lpar2rrd users 0 Oct 4 13:16 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-lpar2rrd.txt-tmp-rw-r--r-- 1 lpar2rrd users 10 Oct 4 13:16 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-lpar2rrd.stamp-send-rw-r--r-- 1 lpar2rrd users 1135 Oct 4 13:16 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-root.txtorig-rw-r--r-- 1 lpar2rrd users 0 Oct 4 13:16 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-root.txt-tmp-rw-r--r-- 1 lpar2rrd users 2396 Oct 4 13:16 /var/tmp/lpar2rrd-agent.out-rw-r--r-- 1 lpar2rrd users 10 Oct 4 13:16 /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-root.stamp-sendstnsvpeadb201:~ # tail /var/tmp/lpar*err==> /var/tmp/lpar2rrd-agent-stnsvpxorux01-root.err <====> /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-lpar2rrd.err <====> /var/tmp/lpar2rrd-agent-stnsvpxorux01.potashcorp.com-root.err <==stnsvpeadb201:~ # dateMon Oct 4 13:17:45 CST 2021stnsvpeadb201:~ #
-
Hi Pavel, let me know if we can connect quick on a call.
Thank you -
Hi,you run the agent from lpar2rrd's and even root's crontabs, it is wrong, stop one of them.I need some data from lpar2rrd server, you are a customer, drop an email to our support.
-
Thank you, will drop an email to the support
Howdy, Stranger!
Categories
- 1.6K All Categories
- 42 XORMON NG
- 25 XORMON
- 150 LPAR2RRD
- 13 VMware
- 16 IBM i
- 2 oVirt / RHV
- 4 MS Windows and Hyper-V
- Solaris / OracleVM
- XenServer / Citrix
- Nutanix
- 6 Database
- 2 Cloud
- 10 Kubernetes / OpenShift / Docker
- 122 STOR2RRD
- 19 SAN
- 7 LAN
- 17 IBM
- 3 EMC
- 12 Hitachi
- 5 NetApp
- 15 HPE
- Lenovo
- 1 Huawei
- 1 Dell
- Fujitsu
- 2 DataCore
- INFINIDAT
- 3 Pure Storage
- Oracle