Hi Gilad,
What version of xCAT are you using? (xdsh -V)
You did everything right. The problem is in the code. One of the
user on this list fount it and found a cure. We have checked the code in
the latest xCAT 2.6.10 and xCAT 2.7. You can either download the latest
build, or change the code manually.
/opt/xcat/lib/perl/xCAT_plugin/nodestat.pm
change
$newappstatus =~ s/(\w+)\=(\w+)//g;
to
$newappstatus =~ s/(\w+)\=(\w+)//;
Change it on both mn and service nodes, restart the xcatd ( service xcatd
restart).
Performance wise, I see no difference between letting xcatmon handle it or
using script to handle the output of nodestat. Remember you can change
the "ping-interval".
Hope it helps,
Ling
Ling Gao
Poughkeepsie Unix Development Lab
IBM Systems and Technology Group
Internal: T/L 293-5692
External: [email protected], 845-433-5692
"I never worry about the future. It comes soon enough." --- Albert
Einstein
From: Gilad Berman <[email protected]>
To: xCAT Users Mailing list <[email protected]>
Date: 02/21/2012 04:44 PM
Subject: [xcat-user] xcatmon question
Hello,
I'm trying to use xCAT to monitor LSF status on the nodes using xcatmon. i
followed the instruction in the monitoring document, however, i don't get
any indication to the apps status and monitoring, although the defauls
sshd and xend monitoring works as expected. I tried both the port method
and the dcmd method, neither worked.
on the other hand, nodestat -m works as expected.
[root@lsfsr ~]# tabdump monsetting
#name,key,value,comments,disable
"xcatmon","apps","lsf,lsf1",,
"xcatmon","lsf1","dcmd=/root/lsfcheck",,
"xcatmon","lsf","port=6878,group=blades",,
"xcatmon","ping-interval","1",,
[root@lsfsr ~]# tabdump nodelist
#node,groups,status,statustime,appstatus,appstatustime,primarysn,hidden,comments,disable
"lsfcl1","all,blades","ping","02-21-2012
20:08:02",",xend=down,sshd=up","02-21-2012 23:07:03",,,,
"lsfcl2","all,blades","ping","02-21-2012
20:08:02",",xend=down,sshd=up","02-21-2012 23:07:03",,,,
"lsfcl3","all,blades","ping","02-21-2012
20:08:02",",xend=down,sshd=up","02-21-2012 23:07:03",,,,
"amm","mm",,,,,,,,
[root@lsfsr ~]# monls
xcatmon monitored node-status-monitored
[root@lsfsr ~]# crontab -l
*/1 * * * * XCATROOT=/opt/xcat
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/opt/xcat/bin:/opt/xcat/sbin XCATCFG=''
/opt/xcat/bin/nodestat all -m -u -q
[root@lsfsr ~]# nodestat blades -m
lsfcl1: sshd,lsf1=down
lsfcl2: lsf,sshd,lsf1=up
lsfcl3: lsf,sshd,lsf1=up
/root/lsfcheck is a script the returns 'up' or 'down', depends on the lsf
service status.
1. What am i missing? why the nodelist table is not updated?
2. Performance wise - what will be better - to parse the nodestat command
and run a script or using the xcat notification infrastructure?
thx in advance!
Regards,
Gilad Berman
HPC Architect
IBM System & Technology Group. Israel
E-mail: [email protected]
Tel: 972-3-9188262
Mobile: 972-52-2554262
The information contained in this email is being provided by IBM as a
matter of courtesy and provided "AS-IS" without any direct and implied
warranty; IBM assumes no liability. It is your responsibility to ensure
that any resulting customer proposal has been correctly designed to meet
your clients' requirements and to have an active review process which
ensures an appropriate level of solution assurance is performed for all
proposals. IBM does not take responsibility for the solution or solution
assurance.
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user