Bonjour à tous J'ai installé le mrtg hier sur une de mes woody. Et bien sur vous vous en doutez ça ne fonctionne pas. J'utilise trois scripts perl pour faire fonctionner le tout (pas de snmp & co). Les logs du mrtg sont pleins de zeros. Au début j'ai cru que c'était un problème d'exection des scripts. Après vérification les scripts marchent manuellement avec n'importe quel utilisateur.
Si quelqu'un à une idée, merci d'avance. Apparament le problmème vient d'autre chose, je join le fichier de configuration et un extrait du log... Merci d'avance ########### FICHIER DE CONF ###################################################################### # Multi Router Traffic Grapher -- Sample Configuration File ###################################################################### # This file is for use with mrtg-2.5.4c # Global configuration WorkDir: /var/www/mrtg WriteExpires: Yes Title[^]: Traffic Analysis for Crusader - # Surveillance Carte Ethernet : eth0 Target[eth0]: '/root/scripts/netstat eth0 eth0' Options[eth0]: nopercent,growright,noinfo, nobanner MaxBytes[eth0]: 12500000 Kilo[eth0]:1024 Ylegend[eth0]: octets/s ShortLegend[eth0]: o/s Legend1[eth0]: Ethernet - Entree Legend2[eth0]: Ethernet - Sortie LegendI[eth0]: Entree: LegendO[eth0]: Sortie: Title[eth0]: Traffic reseau local PageTop[eth0]: <H1>Traffic reseau local/H1> WithPeak[eth0]: wmy # Nombre de Processus Target[procs]: '/root/scripts/stat procs' Options[procs]: nopercent,growright,gauge,noinfo, nobanner, noi Title[procs]: Process MaxBytes[procs]: 1000000 YLegend[procs]: Process ShortLegend[procs]: procs LegendO[procs]: Procs: Legend2[procs]: Nombre de processus PageTop[procs]: <H1>Processus</H1> WithPeak[procs]:wmy Legend4[procs]: Nombre max de processus # Nombre de Fichiers Ouverts Target[files]: '/root/scripts/files' Options[files]: gauge,noinfo, nopercent, growright, nobanner, noi Title[files]: Fichiers MaxBytes[files]: 1000000 AbsMax[files]: 1000000 YLegend[files]: Fichiers ShortLegend[files]: Fichiers LegendO[files]: Fichiers: Legend2[files]: Nombre de fichiers ouverts PageTop[files]: <H1>Nombre de fichiers ouverts</H1> WithPeak[files]: wmy Legend4[files]: Nombre max de fichiers ouverts # Nombre de Connections TCP Target[tcpopen]: '/root/scripts/stat tcpopen' Options[tcpopen]: nopercent,growright,gauge,noinfo, nobanner, noi Title[tcpopen]: Connections TCP MaxBytes[tcpopen]: 1000000 YLegend[tcpopen]: TCP ShortLegend[tcpopen]: tcpopen PageTop[tcpopen]: <H1>Connections</H1> Legend4[tcpopen]: Nombre max de processus # Nombre d'utilisateurs Target[users]: '/root/scripts/stat users' Options[users]: nopercent,growright,gauge,noinfo, nobanner, noi Title[users]: Nombre d'Utilisateurs MaxBytes[users]: 1000000 ShortLegend[users]: Utilisateurs PageTop[users]: <H1>Utilisateurs</H1> Legend4[users]: Nombre max d'utilisateurs # Charge Ordinateur Target[load]: '/root/scripts/stat load' Options[load]: nopercent,growright,gauge,noinfo, nobanner, noi Title[load]: Charge de l'ordinateur MaxBytes[load]: 1000000 ShortLegend[load]: Charge PageTop[load]: <H1>Charge</H1> Legend4[load]: Charge Maximum ############### FICHIER LOG [snip] time: 1032602133.Rateup WARNING: /usr/bin/rateup could not read the primary log file for procs Rateup ERROR: /usr/bin/rateup found procs's log file was corrupt or not in sorted order: time: 1032602133.Rateup WARNING: /usr/bin/rateup The backup log file for procs was invalid as well WARNING: rateup died from Signal 0 with Exit Value 1 when doing router 'procs' Signal was 0, Returncode was 1 Rateup ERROR: /usr/bin/rateup found tcpopen's log file was corrupt or not in sorted order: time: 1032602138.Rateup WARNING: /usr/bin/rateup could not read the primary log file for tcpopen Rateup ERROR: /usr/bin/rateup found tcpopen's log file was corrupt or not in sorted order: time: 1032602138.Rateup WARNING: /usr/bin/rateup The backup log file for tcpopen was invalid as well WARNING: rateup died from Signal 0 with Exit Value 1 when doing router 'tcpopen' Signal was 0, Returncode was 1 Rateup ERROR: /usr/bin/rateup found users's log file was corrupt or not in sorted order: time: 1032602140.Rateup WARNING: /usr/bin/rateup could not read the primary log file for users Rateup ERROR: /usr/bin/rateup found users's log file was corrupt or not in sorted order: time: 1032602140.Rateup WARNING: /usr/bin/rateup The backup log file for users was invalid as well WARNING: rateup died from Signal 0 with Exit Value 1 when doing router 'users' Signal was 0, Returncode was 1 Rateup ERROR: /usr/bin/rateup found load's log file was corrupt or not in sorted order: time: 1032602142.Rateup WARNING: /usr/bin/rateup could not read the primary log file for load Rateup ERROR: /usr/bin/rateup found load's log file was corrupt or not in sorted order: time: 1032602142.Rateup WARNING: /usr/bin/rateup The backup log file for load was invalid as well WARNING: rateup died from Signal 0 with Exit Value 1 when doing router 'load' Signal was 0, Returncode was 1 Rateup ERROR: /usr/bin/rateup found eth0's log file was corrupt or not in sorted order: time: 1032602130.Rateup WARNING: /usr/bin/rateup could not read the primary log file for eth0 Rateup ERROR: /usr/bin/rateup found eth0's log file was corrupt or not in sorted order: time: 1032602130.Rateup WARNING: /usr/bin/rateup The backup log file for eth0 was invalid as well WARNING: rateup died from Signal 0 with Exit Value 1 when doing router 'eth0' Signal was 0, Returncode was 1 Rateup ERROR: /usr/bin/rateup found procs's log file was corrupt or not in sorted order: time: 1032602133.Rateup WARNING: /usr/bin/rateup could not read the primary log file for procs Rateup ERROR: /usr/bin/rateup found procs's log file was corrupt or not in sorted order: time: 1032602133.Rateup WARNING: /usr/bin/rateup The backup log file for procs was invalid as well WARNING: rateup died from Signal 0 with Exit Value 1 when doing router 'procs' Signal was 0, Returncode was 1 Rateup ERROR: /usr/bin/rateup found tcpopen's log file was corrupt or not in sorted order: time: 1032602138.Rateup WARNING: /usr/bin/rateup could not read the primary log file for tcpopen Rateup ERROR: /usr/bin/rateup found tcpopen's log file was corrupt or not in sorted order: time: 1032602138.Rateup WARNING: /usr/bin/rateup The backup log file for tcpopen was invalid as well WARNING: rateup died from Signal 0 with Exit Value 1 when doing router 'tcpopen' Signal was 0, Returncode was 1 Rateup ERROR: /usr/bin/rateup found users's log file was corrupt or not in sorted order: time: 1032602140.Rateup WARNING: /usr/bin/rateup could not read the primary log file for users Rateup ERROR: /usr/bin/rateup found users's log file was corrupt or not in sorted order: time: 1032602140.Rateup WARNING: /usr/bin/rateup The backup log file for users was invalid as well WARNING: rateup died from Signal 0 with Exit Value 1 when doing router 'users' Signal was 0, Returncode was 1 Rateup ERROR: /usr/bin/rateup found load's log file was corrupt or not in sorted order: time: 1032602142.Rateup WARNING: /usr/bin/rateup could not read the primary log file for load Rateup ERROR: /usr/bin/rateup found load's log file was corrupt or not in sorted order: time: 1032602142.Rateup WARNING: /usr/bin/rateup The backup log file for load was invalid as well WARNING: rateup died from Signal 0 with Exit Value 1 when doing router 'load' Signal was 0, Returncode was 1