You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1234567891011121314 |
- #!/bin/bash
-
- source ./commun.sh
-
- ctime=$(date +'%s')
- value=$(cut -d ' ' -f 1 /proc/loadavg)
-
- # display and write value to a file
- echo ${ctime} ${value} | tee -a bar.dat
-
- # inject value in the rrdb file
- rrdtool update $RRDB ${ctime}:${value}
-
|