#!/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
Tag Archives: Solaris
Xymon on Solaris 10 containers & see minimum one second step error
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 – Shutdown zone
<cmsys1:2388># zoneadm -z ${zonename} halt
Solaris – Reboot a zone
<cmsys1:2388># zoneadm -z ${zonename} reboot
Solaris – Log into zone
<cmsys1:2388># zlogin -C nagios
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
Solaris does not come with rsync. Install it
401 wget http://rsync.samba.org/ftp/rsync/rsync-3.0.7.tar.gz 402 gunzip ./rsync-3.0.7.tar.gz 403 ls 404 tar -xvf rsync-3.0.7.tar 405 cd rsync-3.0.7 406 ./configure 407 echo $PATH 408 id 409 make 410 ls /usr/ccs/bin 411 export PATH=$PATH:/usr/ccs/bin 412 make install 413 which rsync