PDA

View Full Version : [RESOLU] expected 1 data source


Urania
7th May 2006, 17:50
J'utilise le plugin : check_graph_nt avec comme arguments: !USEDDISKSPACE!d!75!90
Au bout du deuxieme update, j'ai l'erreur suivante :

unable to update '/usr/local/oreon/rrd/1.rrd' : expected 1 data source readings (got 3) from 1147012874:134.36:15.11:119.24:...

Une idee ?
Merci

inconnuflo
7th May 2006, 21:15
il n'a pas générer correctement ton graph
un conseil
supprime le
remdemarre nagios
recréé-le

wistof
7th May 2006, 23:34
etrange, tu as d'autres services graphiques ?

c'est comme si tu avais déjà un service qui a généré le 1.rrd (avec 1 DS), et que ton nouveau service veut mettre à jour ce meme fichier, mais avec plusieurs DS.

efface ton fichier 1.rrd ?

Urania
8th May 2006, 08:29
je vais faire ...
par contre, avec la commande notification check, j'ai un peu "bidouille" la commande "check_graph_nt" :

$USER1$/check_graph_nt.pl -H $HOSTADDRESS$ -v $ARG1$ -l $ARG2$ -w $ARG3$ -c $ARG4$ -t $ARG5$ -g -S $ARG6$

Comme arg j'ai mis: !USEDDISKSPACE!75!90!d!None

Il y a peut etre une erreur quelque part ...

Merci

DonKiShoot
8th May 2006, 09:54
$USER1$/check_graph_nt.pl -H $HOSTADDRESS$ -v $ARG1$ -l $ARG2$ -w $ARG3$ -c $ARG4$ -t $ARG5$ -g -S $ARG6$

Comme arg j'ai mis: !USEDDISKSPACE!75!90!d!None

Faut pas sortir de St Cyr !

Ca donne ça : $USER1$/check_graph_nt.pl -H $HOSTADDRESS$ -v USEDDISKSPACE -l 75 -w 90 -c d -t none -g -S

Perso ca me semble pas top du tout

Urania
8th May 2006, 11:10
Ca donne ça : $USER1$/check_graph_nt.pl -H $HOSTADDRESS$ -v USEDDISKSPACE -l 75 -w 90 -c d -t none -g -S

Sauf que je pense que c'est plutot: -l d -w 75 -c 90 ...

En ligne de commande, cela fonctionne:

$USER1$/check_graph_nt.pl -H $HOSTADDRESS$ -v USEDDISKSPACE -l d -s None

Ce qui me donne comme resultat :

d: - total: 134.36 Gb - used: 15.22 Gb (11%) - free 119.14 Gb (89%)

Cette ligne de commande marche aussi:

check_graph_nt.pl -H 192.168.X.X -v USEDDISKSPACE -p 1248 -w 75 -c 90 -l d -d None -s None

Les trois seules templates qui ont des erreurs utilisent ce plugin.
D'ou ma question, n'y a t'il pas eu une erreur lorsque j'ai remagne le pugin ?

wistof
8th May 2006, 12:05
as tu regarder ici ?

http://wiki.oreon-project.org/wakka.php?wiki=CheckGraphNtFR#16

Urania
8th May 2006, 12:21
Ha ben voila .... qu'il est bien ce wistof ... ;)
Tout fonctionne ... Pb resolu.
Merci a tous.