Editing Monitoring openvz resources using rrdtool
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
[[Category: Monitoring]] | [[Category: Monitoring]] | ||
− | In this setup | + | In this setup there is a central rrd server that collects data from several openvz hardware nodes |
=== Setting up rrd server === | === Setting up rrd server === | ||
Line 23: | Line 23: | ||
} | } | ||
− | Add | + | Add service in /etc/services |
rrdsrv 13900/tcp | rrdsrv 13900/tcp | ||
Line 29: | Line 29: | ||
=== Collect script === | === Collect script === | ||
− | Put the following script on the openvz hardware nodes | + | Put the following script on the openvz hardware nodes: |
#!/bin/sh | #!/bin/sh | ||
Line 65: | Line 65: | ||
done | done | ||
− | VPSIDS=$(vzlist | + | VPSIDS=$(vzlist | awk ' BEGIN { ORS=" "; getline } { print $1 }') |
PARAMS=$(cat /proc/bc/0/resources | awk '{ print $1 }'| sort -u | xargs) | PARAMS=$(cat /proc/bc/0/resources | awk '{ print $1 }'| sort -u | xargs) | ||
Line 123: | Line 123: | ||
fi | fi | ||
done | done | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |