TZ=Asia/Bangkok
2. Run command
#rtc -z Asia/Bangkok
#rtc -c
3. Reboot the system to effect the change
Thanks : blogs.sun.com
sudo apt-get install nagios-nrpe-serversudo ps -Al | grep nrpenetstat -an | grep 5666sudo nano /etc/nagios/nrpe.cfgallowed_hosts=127.0.0.1allowed_hosts=127.0.0.1,x.x.x.xsudo /etc/init.d/nagios-nrpe-server restart/usr/local/nagios/libexec/check_nrpe -H y.y.y.yr: The number of processes waiting for run time. b: The number of processes in uninterruptable sleep. w: The number of processes swapped out but otherwise runnable. This field is calculated, but Linux never desperation swaps.
swpd: the amount of virtual memory used (kB). free: the amount of idle memory (kB). buff: the amount of memory used as buffers (kB).
si: Amount of memory swapped in from disk (kB/s). so: Amount of memory swapped to disk (kB/s).
bi: Blocks sent to a block device (blocks/s). bo: Blocks received from a block device (blocks/s).
in: The number of interrupts per second, including the clock. cs: The number of context switches per second. These are percentages of total CPU time.us: user time sy: system time id: idle timeExample$ vmstat 1 5Example for add timestampCreate perl script$ vi timestamp.pl #!/usr/bin/perl while (<>) { print localtime() . ": $_"; }$ vmstat 1 5 | ./timestamp.plExample for monitor Memory and CPU$/usr/bin/watch -n 5 '/usr/bin/vmstat -s -S M | /bin/grep -E "memory|cpu"'Thanks : www.thegeekstuff.com