[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [xymon] External scripts for Xymon client on Xymon Server
- To: xymon (at) xymon.com
- Subject: Re: [xymon] External scripts for Xymon client on Xymon Server
- From: Ralph Mitchell <ralphmitchell (at) gmail.com>
- Date: Wed, 22 Dec 2010 18:05:12 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=ymNCXA7lokCbfVQ3MD8nKvLBL5yUwBSi57K0oqDI2CI=; b=PP6GdvIqlHnPe1me40FwLbsBQMVGrQZn0kyvhP0hPIJRiVY0UbAY667UoZYAd5l4E2 +O4S/A5oCVZlxKJjgl8srtyu7AHuXgPPU5Klpbp9vWvLL4QSavSeKPIhEC6zsnoskxcd h09w9/UnsxdXeI8p83+dw4eHU0KScPwnKvDyI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=bI+LgPVHCsbUKDoi6O7IeCq0e6u7Oc0cYLCrYk1rkW5zblFi9CI85nglGTFMKq5TYs CUJFOBkVAskhZuFRAOsHZTQkRMxamywcb/QGK2m7pWDowyKXsfSbfDa6vrMYyh6YINp9 vcGISLznRLzfewX7cBQwnIEeY9x/9vAb+OOoY=
- References: <4D127BD9.7060702 (at) umdnj.edu> <8D17C43B4F1AC3498DE039AEA93812906C9B50C9BA (at) VA3DIAXVS051.RED001.local> <4D1281C0.90202 (at) umdnj.edu>
You probably have a log file somewhere. In Tim's example, it defined like
this:
LOGFILE $HOBBITCLIENTHOME/logs/na2.log
If the log doesn't show anything interesting, you should be able to *make*
it show something interesting. For example, a "set -x" at the top of the
script will show you exactly what it does.
You can also execute the script manually as if it were Xymon executing it,
using the bbcmd command.
Ralph Mitchell
On Wed, Dec 22, 2010 at 5:54 PM, Ryan Novosielski <novosirj (at) umdnj.edu>wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 12/22/2010 05:43 PM, Tim McCloskey wrote:
> > The clientlaunch.cfg is in the client's etc dir, not the server etc dir.
> Logs / tmp files will be under the client dir too.
> >
> > Example, on a hobbit server there are both $hobbithome/{server,client}
> dirs.
> >
> > client/ext/na2.sh
> >
> > [client/etc] tail clientlaunch.cfg
> >
> > [NA2CPU]
> > ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
> > CMD $HOBBITCLIENTHOME/ext/na2.sh
> > LOGFILE $HOBBITCLIENTHOME/logs/na2.log
> > INTERVAL 2m
>
> Yes, that much I knew. OK, so I've taken another look at this. It looks
> as if the external client scripts ARE running, but the data doesn't go
> anywhere and there are no ghost clients. I've also checked what I
> believe are all of the places that the port and server address are
> defined to make sure this isn't all going someplace else.
>
> One of my external scripts, for example, is a vmio script. You can see
> it is running the commands needed to accomplish that:
>
> xymon 4976 4973 0 17:50:09 ? 0:00 vmstat 300 2
> xymon 4978 4975 0 17:50:09 ? 0:00 iostat -dxsrP 300 2
>
> ...however, about 6 months ago, these tests turned purple (to me, what
> seems like by magic). The other external scripts (one that gets
> temperature and one that does metastat for the SW raid) run too quickly
> for me to tell what their story is, but they do not write anything to
> the client log directory.
>
> Anyone have any idea how to troubleshoot this?
>
> - --
> - ---- _ _ _ _ ___ _ _ _
> |Y#| | | |\/| | \ |\ | | |Ryan Novosielski - Sr. Systems Programmer
> |$&| |__| | | |__/ | \| _| |novosirj (at) umdnj.edu - 973/972.0922 (2-0922)
> \__/ Univ. of Med. and Dent.|IST/CST-Academic Svcs. - ADMC 450, Newark
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk0SgcAACgkQmb+gadEcsb4AMgCfcebR4VMSStbvrzA3JZpF6wzB
> 6DcAnA5yA1redutitZN8AYnOtldWY5lZ
> =wP+T
> -----END PGP SIGNATURE-----
>
>
> To unsubscribe from the xymon list, send an e-mail to
> xymon-unsubscribe (at) xymon.com
>
>