Mande o endereço de onde achou esse plugin, estou exatamente trabalhando
nos plugins do munin esses dias :)

Você tem no Debian para apache2 os caras:

apache_accesses - Munin plugin to monitor the number of accesses to
Apache servers. It handles a list of ports passed in from a plugin
configuration file.

apache_processes - Munin plugin to monitor the number of
apache-processes running on the machine.

apache_volume - Munin plugin to monitor the volume of data sent from Apache
servers.



2013/5/21 Helio Loureiro <[email protected]>

> Já pensou em contactar o autor?
>
> Já imagino até qual seja o erro, mas não acho que as listas da debian ou
> centos sejam o lugares certos pra fazer esse debug.
>
> Abs,
> Helio Loureiro
> http://helio.loureiro.eng.br
> http://br.linkedin.com/in/helioloureiro
> http://twitter.com/helioloureiro
> http://gplus.to/helioloureiro
> - sent via Android -
> Em 12/05/2013 16:59, "Leandro" <[email protected]> escreveu:
>
>> Pessoal estou tentando rodar um plugin obtido no git hub porem ele me da
>> erro de saida ao tentar obter os dados. esse é o script juntamento com o
>> erro abaixo.
>> parece que na expr.
>>
>>
>> 2013/05/12-19:56:07 [3193] Error output from apache_tmemmory:
>> 2013/05/12-19:56:07 [3193]      expr: syntax error
>>
>>
>>
>> #!/bin/sh
>> # -*- sh -*-
>>
>> : << =cut
>>
>> =head1 NAME
>>
>> apache_tmemmory -Indicate the total memory used by apache
>>
>> =head1 CONFIGURATION
>>
>> [apache_*]
>> env.binname apache_binary_name
>>
>> =head1 AUTHOR
>>
>> Ricardo Fraile <[email protected]>
>>
>> =head1 LICENSE
>>
>> GPLv2
>>
>> =head1 MAGICK MARKERS
>>
>>  #%# family=auto
>>  #%# capabilities=autoconf
>>
>> =cut
>>
>> . $MUNIN_LIBDIR/plugins/plugin.sh
>>
>>
>> USR=$apuser
>> PROCS=$binname
>>
>>
>> if [ "$1" = "autoconf" ]; then
>> echo yes
>>
>> exit 0
>> fi
>>
>> if [ "$1" = "config" ]; then
>>
>> echo 'graph_title Total memory used by apache'
>>  echo 'graph_args --base 1000 -l 0 '
>> echo 'graph_vlabel Mb'
>> echo 'graph_scale no'
>>  echo 'graph_category apache'
>> echo 'graph_info Indicate the total memory used by apache.'
>>
>>         echo "servers.label servers"
>>         echo "servers.type GAUGE"
>>         echo "servers.min 0"
>>
>> exit 0
>> fi
>>
>> VAL1=`ps auxf | grep ${PROCS} | grep -v grep | awk '{s+=$6} END {print
>> s}'`
>>
>> VAL2=`expr $VAL1 / 1024`
>>
>> echo "servers.value $VAL2"
>>
>>
>> --
>> Leandro Paulo
>>
>>

Responder a