This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
function wsse_header($username, $password) { | |
// Needed to change hashing, so not nounces with '/' inside will not be generated. | |
$nonce = sha1(uniqid(null, true) . uniqid()); | |
$created = new DateTime('now', new DateTimezone('UTC')); | |
$created = $created->format(DateTime::ISO8601); | |
$digest = sha1($nonce.$created.$password, true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
sudo apt-get install munin-plugins-extra | |
cd /etc/munin/plugins | |
sudo ln -snf /usr/share/munin/plugins/memcached_ memcached_bytes | |
sudo ln -snf /usr/share/munin/plugins/memcached_ memcached_counters | |
sudo ln -snf /usr/share/munin/plugins/memcached_ memcached_rates | |
sudo aptitude install libcache-memcached-perl | |
sudo /etc/init.d/munin-node restart | |
sudo tail -f /var/log/munin/munin-node.log |