installed the plugins into an new installed v 3.0 gitorious but the plugins are
not working
found this /etc/gitorious.conf after the installation:
GITORIOUS_HOME=/var/www/gitorious
RAILS_ENV=production
PATH=/opt/ruby-enterprise/bin:$PATH
export GITORIOUS_HOME
export RAILS_ENV
obviously not made for v 3.0, so changed to:
GITORIOUS_HOME=/var/www/gitorious/app/
RAILS_ENV=production
PATH=/opt/rubies/ruby-1.9.3-p484/bin:$PATH
export GITORIOUS_HOME
export RAILS_ENV
munin-run gitorious_clones config
is working as expected, but munin-run gitorious_clones:
/opt/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/gitorious-munin-plugins-0.10.0/lib/gitorious-munin-plugins/config.rb:22:in
`database_yaml': uninitialized constant
GitoriousMuninPlugins::Config::NotFound (NameError)
from
/opt/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/gitorious-munin-plugins-0.10.0/lib/gitorious-munin-plugins/database.rb:12:in
`load_database_configuration'
...
/var/www/gitorious/app/config/database.yml is configured (else gitorious would
not run...)
Similar error messages for:
gitorious_disk_usage, gitorious_projects, gitorious_repositories,
gitorious_ssh_keys, gitorious_users,
No output for:
gitorious_poller_usage, gitorious_sphinx
munin-run git_proxy
/var/www/gitorious/run/git-proxy-1.pid not found
find /var/www/gitorious/ -name "*.pid"
/var/www/gitorious/app/log/git-daemons.pid
/var/www/gitorious/app/log/production.sphinx.pid
/var/www/gitorious/app/tmp/pids/resque-worker1.pid
/var/www/gitorious/app/tmp/pids/unicorn.pid
So i wrote this simple shell-script-plugin:
#!/bin/bash
## run as root / setup
## echo '[gitorious-munin-status]' >> /etc/munin/plugin-conf.d/munin-node
## echo 'user root' >> /etc/munin/plugin-conf.d/munin-node
checks=('Unicorn' 'Resque' 'Nginx' 'Git-daemons' 'Sphinx' 'Memcached'
'SSH-daemon' 'Mysqld')
case $1 in
config)
echo "graph_title Gitorious health-check"
# echo "graph_vlabel"
echo "graph_category gitorious"
echo "graph_info 1 = running/ok"
echo "gitorious_unicorn.label gitorious_unicorn"
echo "gitorious_unicorn.critical 0.5:"
for check in "${checks[@]}" ; do
echo "$check.label $check"
echo "$check.critical 0.5:"
done
exit 0;;
esac
## gitorious_unicorn:
gitorious_unicorn=`/etc/init.d/gitorious-unicorn status`
if echo "$gitorious_unicorn" | grep "OK" 1>/dev/null ; then
echo "gitorious_unicorn.value 1"
else
echo "gitorious_unicorn.value 0"
fi
## gitorious_status
gitorious_status=`/usr/bin/gitorious_status`
for check in "${checks[@]}" ; do
if echo "$gitorious_status" | grep "$check" | grep "UP" 1>/dev/null ; then
echo "$check.value 1"
else
echo "$check.value 0"
fi
done
exit 0
--
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
---
You received this message because you are subscribed to the Google Groups
"Gitorious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.