Quelques notes sur les optimisations faites à Montréal.

Verrouillage de protection pour munin-graph

Quand les graphiques prennent plus de 5 minutes à être générés (intervalle entre les cron), les munin-graph s'entrechoquent…

Voici une modification apportée à /usr/bin/munin-cron pour éviter ce problème :

# The result of munin-html is needed for munin-graph.
# It is a noop if graph_strategy is "cgi"
GRAPHLOCKFILE=/var/run/munin/munin-graph.lock
# check for lock file validity
if [ -f "$GRAPHLOCKFILE" ] ; then
  if ! ps `cat "$GRAPHLOCKFILE"` > /dev/null 2>&1 ; then
    rm -f "$GRAPHLOCKFILE"
  fi
fi
if [ ! -f "$GRAPHLOCKFILE" ] ; then
  nice /usr/share/munin/munin-graph --cron $@ || exit 1
fi

ZA/Montréal/Supervision/MuninOptimisations (dernière édition le 2014-12-19 19:53:07 par JeanChristopheAndré)