[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

munin: invalid DS type



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

bonjour à tous,

je fais tourner un munin-node sous etch: pas de problème...les plugins
de base fonctionnent.
j'ai créé un (crade) plugin qui affiche les alertes snort triées par
priorité.
le plugin fonctionne et renvoie les données sur l'interface standard. Le
"machin" est ci-dessous:
# --------------- début plugin--------------
#!/bin/sh
#
#snort_alert_2: plugin to monitor the number of snort alerts by priority
#%# capabilities=config
if [ "$1" = "config" ]; then
	echo 'graph_title Snort alerts'
	echo 'graph_category network'
	echo 'graph_args --base 1000 -l 0'
	echo 'high.label High'
	echo 'high.type gauge'
	echo 'high.min 0'
	echo 'medium.label Medium'
	echo 'medium.type gauge'
	echo 'medium.min 0'
	echo 'low.label Low'
	echo 'low.type gauge'
	echo 'low.min 0'
	exit 0
fi
cat /var/log/snort/alert | grep -c "Priority: 3" | awk "{ print
\"low.value \" \$1 }"
cat /var/log/snort/alert | grep -c "Priority: 2" | awk "{ print
\"medium.value \" \$1 }"
cat /var/log/snort/alert | grep -c "Priority: 1" | awk "{ print
\"high.value \" \$1 }"
# ------------------- fin plugin -----------------

Mais:
- - munin ne m'affiche jamais le graphe kivabien
- - et munin-update loggue à chacune de ses relances cron:
jui 09 06:35:20 [12539] - creating rrd-file for alert->high.label
jui 09 06:35:20 [12539] - Unable to create
"/var/lib/munin/localdomain/localhost.localdomain-alert-high-g.rrd":
Invalid DS type

Rien trouvé sur google...
Quelqu'un aurait-il une idée?

Merci de votre aide.


*******************************************************************
Linux-User # 414422 with the Linux Counter, http://counter.li.org
- -------------------------------------------------------------------
Ma clé GPG est disponible sur http://www.keyserver.net (0xD99B1A80)
      1587 B350 1371 C812 39B6 24C1 1BCA 4435 D99B 1A80
- -------------------------------------------------------------------


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEsQbAG8pENdmbGoARAmIQAKDiQUNmwN9JEmDDQiBM5csiYXFPJgCgyQUj
ZJZM58Q+ksIOArVQNZWG45c=
=Vyna
-----END PGP SIGNATURE-----



Reply to: