ubuntu munin network traffic no data

shtzeng Posted in 系統設定
0

Since old Ubuntu LTS doesn’t update package anymore,
some patches need add by yourself,
like munin if_ error.

: plugins/node.d.linux/if_

    # iwlist first)
    if [[ -r /sys/class/net/$INTERFACE/speed ]]; then
            SPEED=$(cat /sys/class/net/$INTERFACE/speed 2>/dev/null)
-           if [[ "$SPEED" -gt 0 ]]; then
+           if [ -n "$SPEED" -a "$SPEED" -gt "0" ]; then
                echo $SPEED
                return
            fi

GCP computer engine ubuntu disk size increase

shtzeng Posted in 系統設定
0

Resize the persistent disk in the Google Cloud Platform Console:

1. Go to the Compute Engine page.
2. Click on “Disks” in the sidebar
3. Click the name of the disk that you want to resize.
4. At the top of the disk details page, click “Edit”.
5. In the “Size” field, enter the new size for your disk.
6. At the bottom of the disk details page, click “Save” to apply your changes to the disk.
7. Start server, sudo growpart /dev/sda 1 (if increase root disk)
8. sudo resize2fs /dev/sda1

Ref. https://stackoverflow.com/questions/22381686/how-can-size-of-the-root-disk-in-google-compute-engine-be-increased