xymon client init.d script

#!/sbin/sh
#
case "$1" in
start)
        [ -f /opt/cmtools/xymon/client/runclient.sh ] || exit 0
        su - cmuser  -c "/opt/cmtools/xymon/client/runclient.sh start --hostname=cmssbea10.my.domain"
        ;;
stop)
        su - cmuser -c "/opt/cmtools/xymon/client/runclient.sh stop --hostname=cmssbea10.my.domain"
        ;;
*)
        echo "Usage: $0 { start | stop }"
        exit 1
        ;;
esac
exit 0

Xymon on Solaris 10 containers & see minimum one second step error

Source

You are running Xymon in Solaris 10 containers & see the following logs:

2010-08-27 15:19:30 RRD error updating /opt/csw/xymon/data/rrd/buildbox1/ifstat.mac.rrd from 169.169.169.169: /opt/csw/xymon/data/rrd/cmsys2/ifstat.mac.rrd: illegal attempt to update using time 1282947570 when last update time is 1282947570 (minimum one second step)
2010-08-27 15:19:30 RRD error updating /opt/csw/xymon/data/rrd/buildbox1/ifstat.mac.rrd from 169.169.169.169: /opt/csw/xymon/data/rrd/cmsys2/ifstat.mac.rrd: illegal attempt to update using time 1282947570 when last update time is 1282947570 (minimum one second step)

The problem is Xymon client can send 2 pairs of data at the same timestamp.

Find the line in your xymon file

/usr/bin/kstat -p -s '[or]bytes64'

Change it to:

/usr/bin/kstat -p -s '[or]bytes64' | egrep -v 'wrsmd|mac' | sort

Solaris – List zones / status in a container

Include only running zones:

<cmsys1:114># zoneadm list -v
  ID NAME             STATUS     PATH                           BRAND    IP
   0 global           running    /                              native   shared
   1 sirls            running    /data/zones/sirls              native   shared

Include halted zones:

<cmsys1:2392># zoneadm list -vi
  ID NAME             STATUS     PATH                           BRAND    IP
   0 global           running    /                              native   shared
   7 sasvn            running    /data/zones/sasvn              native   shared
   8 saldp            running    /data/zones/saldp              native   shared
   9 nagios           running    /data/zones/nagios             native   shared
  10 garls            running    /data/zones/garls              native   shared
  11 dvrls            running    /data/zones/dvrls              native   shared
  12 sirls            running    /data/zones/sirls              native   shared
  13 qarls            running    /data/zones/qarls              native   shared
   - saweb            installed  /data/zones/saweb              native   shared
   - sacvs            installed  /data/zones/sacvs              native   shared

Is Solaris 32 or 64 bit?

<cmsys8:457># isainfo -v
64-bit amd64 applications
        amd_lzcnt popcnt amd_sse4a tscp cx16 mon sse3 sse2 sse fxsr amd_3dnowx
        amd_3dnow amd_mmx mmx cmov amd_sysc cx8 tsc fpu
32-bit i386 applications
        amd_lzcnt popcnt amd_sse4a tscp cx16 mon sse3 sse2 sse fxsr amd_3dnowx
        amd_3dnow amd_mmx mmx cmov amd_sysc cx8 tsc fpu

<cmsys8:858># isainfo -kv
64-bit amd64 kernel modules