[hobbit] Question on cpu test under solaris 6->10

rdeal rdeal at tigr.ORG
Fri Aug 18 15:10:56 CEST 2006


The problem seems to be that $TOP is set to "/usr/bin/prstat -can 20 1 1"
And this causes the if statement to fail { if test -x "$TOP"}
I made a change to hobbitclient.cfg and hobbitserver.cfg so that:
TOP="/usr/bin/prstat"
TOPARGS="-can 20 1 1"

And then changed hobbitclient-sunos.sh to:
if test "$TOP" != ""
then
    if test -x "$TOP"
    then
        echo "[top]"
#        $TOP -b 40
        $TOP $TOPARGS
    fi
fi

And this works well except the hobbit server does not get a cpu load graph.
It only gets a graph if there is not [top] line in the data set

> From: <thomas.seglard.enata at cnp.fr>
> Reply-To: <hobbit at hswn.dk>
> Date: Fri, 18 Aug 2006 14:38:53 +0200
> To: <hobbit at hswn.dk>
> Subject: [hobbit] Question on cpu test under solaris 6->10
> 
> Hello,
> 
> I'm currently migrating to hobbit 4.2. All is going ok but I notice
> something strange under solaris (6->10)! Under the cpu column, I didn't
> get any output, only load graph. I don't understand because it's working
> fine with previous version of the client (4.1.2p1). I'm looking at the
> hobbitclient-sunos.sh and find these lines :
> 
> # $TOP must be set, the install utility should do that for us if it
> exists.
> if test "$TOP" != ""
> then
>     if test -x "$TOP"
>     then
>         echo "[top]"
>         $TOP -b 20
>     fi
> fi
> 
> So, I'm opening the etc/hobbitclient.cfg and have this variable :
> 
> TOP="/usr/bin/prstat -can 20 1 1"
> 
> I'm launching this command from a console and it works perfectly as you
> can see :
> 
> root at psa129:/ # /usr/bin/prstat -can 20 1 1
>    PID USERNAME  SIZE   RSS STATE  PRI NICE      TIME  CPU PROCESS/NLWP
>  20555 root     4432K 4088K cpu0    39    0   0:00:00 0.4% prstat/1
>  16570 oraadm   7712K 2192K sleep   59    0   0:00:00 0.1% sshd/1
> [snip]
>    454 root     1808K  528K sleep   59    0   0:00:00 0.0% ttymon/1
>  NPROC USERNAME  SIZE   RSS MEMORY      TIME  CPU
>    101 root      563M  227M    47%   4:09:40 0.4%
>     77 oraadm    507M  189M    39%   0:05:18 0.2%
>      1 smmsp    4352K  840K   0.2%   0:00:31 0.0%
>     10 hobbit     11M 9336K   1.9%   0:00:23 0.0%
>      1 daemon   2696K 1592K   0.3%   0:00:23 0.0%
> Total: 221 processes, 363 lwps, load averages: 0.08, 0.14, 0.16
> 
> Under my cpu test on the hobbit display I just have this line : "System
> clock is 0 seconds off"
> Is it the new behaviour for this test or something is wrong on my
> configuration ? What does "System clock is 0 seconds off" mean ?
> 
> Once again, thanks for all your great work !
> 
> Best regards,
> 
> ThomaS
> 
> 
> 
> 
> 
> 
> 
> Ce message (et toutes ses pieces jointes eventuelles) est confidentiel et
> etabli a l'intention exclusive de ses destinataires.
> Toute utilisation de ce message non conforme a sa destination, toute diffusion
> ou toute publication, totale ou partielle, est
> interdite, sauf autorisation expresse.
> L'internet ne permettant pas d'assurer l'integrite de ce message, CNP
> Assurances et ses filiales declinent toute responsabilite
> au titre de ce message, s'il a ete altere, deforme ou falsifie.
> 
> *****
> 
> This message and any attachments (the "message") are confidential and intended
> solely for the addressees.
> Any unauthorised use or dissemination is prohibited.
> E-mails are susceptible to alteration.
> Neither CNP Assurances nor any of its subsidiaries or affiliates shall be
> liable for the message if altered, changed or falsified.
> 
> 
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe at hswn.dk
> 
> 




More information about the Xymon mailing list