PDA

View Full Version : Problème de graph dans "vues oreon"


julie@63
18th February 2008, 11:53
Bonjour à tous,

Voilà ça fait bien plus d'une semaine que je lis et relis des tutos des forums et je ne trouve pas de réponse à mon problème. En effet, je ne peux choisir aucun hôte à grapher dans la liste déroulante de la vue d'oren. J'ai installé nagios 2.1 et centreon 1.4.2.3. J'ai également aucun .rrd qui se génère et je ne comprend pas pourquoi.

Voila j'ai vraiment besoin d'un bon coup de main.

Merci d'avance..

Guigui2607
18th February 2008, 12:50
Bonjour,

Pour ma part, je me suis basé sur deux tutos dispos sur le Wiki:

http://wiki.oreon-project.org/index.php/Graphs
http://wiki.oreon-project.org/index.php/Documentation_FR#Configuration_de_Nagios_et_d.E2.8 0.99Oreon_pour_l.E2.80.99obtention_de_graphiques..

julie@63
18th February 2008, 14:13
J'ai suivi c'est tuto é j'arrive toujours pas à y faire marché...

Guigui2607
18th February 2008, 14:29
Dans un premier temps, est-ce que le fichier perfdata se crée et est-ce qu'il se remplit bien ?

julie@63
18th February 2008, 14:33
Oui j'ai bien un service-perfdata et quand je l'execute en ligne de commande il rajoute une ligne 1 2 3 4 5 6 . Est-ce normal?!?

Guigui2607
18th February 2008, 14:54
:-| Bizarre... 1 2 3 4 5 6 :shock:

Je vais essayé d'expliquer un peu les manips a faire:

Dans le répertoire où sont stockés tes plugins (nagios/libexec/)
il faut que tu crées un fichier qui se nomme process-service-perfdata comme le montre le lien ci-dessous.
http://wiki.centreon.com/index.php/Graphs#Perfdata_activation_in_Nagios

L'emplacement de ton fichier perfdata sera définit par la ligne suivante:
PERFFILE="/usr/local/nagios/var/service-perfdata"

Ensuite dans Centreon, il faut créer la commande qui traitera le fichier perfdata:

Dans le menu Configuration > Commandes > fais Ajouter

Nommes ta commande process-service-perfdata (par exemple)
et entres-lui la ligne de commande suivante:
$USER1$/process-service-perfdata "$LASTSERVICECHECK$" "$HOSTNAME$" "$SERVICEDESC$" "$SERVICEOUTPUT$" "$SERVICESTATE$" "$SERVICEPERFDATA$"
Puis sauvegarde-la.

Ensuite, il faut modifier certains paramètres de ton fichier nagios.cfg:
>> Configuration > Nagios > Nagios CFG
Dans le dernier tiers de la page,
A l'option "Performance Data Processing Option" il faut mettre Oui
Et à l'option "Service Performance Data Processing Command:" process-service-perfdata

Enregistres les modifications et exportes ta config vers Nagios.

Après quelques instants, le fichier service-perfdata devrait apparaître dans le répertoire /usr/local/nagios/var/.

:arrow: La première vérification consiste à voir si le fichier service-perfdata se créé dans le répertoire /usr/local/nagios/var/.

Enfin, si le fichier ci-dessus se crée bien, dans >> Options > Oreon > Options Générales > CentreonDataStorage
Dans le champs "Fichier des données de performances" il faut lui indiquer le chemin du fichier perfdata: /usr/local/nagios/var/service-perfdata

julie@63
18th February 2008, 15:04
Le souci c'est que je l'ai deja fais tous ça :-|

mon fichier process-service-perfdata ressemble à :

#!/bin/sh
# some parameters passed on command line
TIMET=$1
HOSTNAME=$2
SERVICEDESC=$3
OUTPUT=$4
SERVICESTATE=$5
PERFDATA=$6
PERFFILE=/usr/local/nagios/var/service-perfdata

/usr/bin/printf "%b" "$TIMET\t$HOSTNAME\t$SERVICEDESC\t$OUTPUT\t$SERVICE STATE\t$PERFDATA\n" >> $PERFFILE


et j'ai bien service-perfdata de créé et il reprensente 1 2 3 4 5 6....

quand à l'interface de centreon c'est configuré comme vous me l'avez dit..

mais toujours rien!

Guigui2607
18th February 2008, 15:20
Bon, ce qu'il me chagrine, c'est le contenu du fichier: 1 2 3 4 5 6... :roll:
Dans Centreon, la commande créée dans Configuration > Commandes > a t'elle le bon format ?

$USER1$/process-service-perfdata "$LASTSERVICECHECK$" "$HOSTNAME$" "$SERVICEDESC$" "$SERVICEOUTPUT$" "$SERVICESTATE$" "$SERVICEPERFDATA$"

Normalement à la place des 1 2 3 4 5 6 tu dois avoir le contenu de chaque variable de la commande ci-dessus...

julie@63
18th February 2008, 15:26
comment ça à tel le bon format?!?

plemoal
18th February 2008, 15:29
quel est le contenu de ta commande process-service-perfdata dans ta console web de centreon sous configuration>>commandes

julie@63
18th February 2008, 15:31
voila le contenu de ma commande :

$USER1$/process-service-perfdata "$LASTSERVICECHECK$" "$HOSTNAME$" "$SERVICEDESC$" "$SERVICEOUTPUT$" "$SERVICESTATE$" "$SERVICEPERFDATA$"

Guigui2607
18th February 2008, 15:42
Bon, la syntaxe est bonne.

Maintenant, est-ce que le fichier /usr/local/nagios/var/service-perfdata se crée tout seul ?

plemoal
18th February 2008, 15:46
il me semble que julie@63 a installé nagios par l'intermédiaire de yum sur une fedora 8.

Nagios ne serait pas installé dans le répertoire /usr/lib/nagios par hasard ??

le répertoire des plugins nagios ne serait pas /usr/lib/nagios/plugins ??

julie@63
18th February 2008, 15:50
Service-perfdata se créé bien tous seul dans : cd /usr/local/nagios/var/

Sinon j'ai fait des liens symboliques pour que tous soit dans usr/local/nagios :

# mkdir /usr/local/nagios
# mkdir /usr/local/nagios/bin
# mkdir /var/run/nagios
# chown nagios:nagios /var/run/nagios
# ln -s /usr/share/nagios/html /usr/local/nagios/share
# ln -s /var /usr/local/nagios/var
# ln -s /etc/nagios /usr/local/nagios/etc
# ln -s /usr/lib/nagios/plugins /usr/local/nagios/libexec
# ln -s /usr/sbin/nagios /usr/local/nagios/bin/nagios
# chown -R apache:nagios /etc/nagios/
# chmod -R 775 /etc/nagios/
# chown -R apache:nagios /usr/lib/nagios/plugins
# chmod -R 775 /usr/lib/nagios/plugins


ps : merci beaucoup pour votre aide..

julie@63
18th February 2008, 16:12
comment on exécute service-perfdata deja?!?

Guigui2607
18th February 2008, 16:44
En fait, c'est Nagios qui va exécuter lui même le process-service-perfdata.

L'éxécution de ce script va créé le fichier de perfdata (service-perfdata) en y inclut les données remontées par les plugins.

Ensuite Centreon, via le service ODS, va lire le contenu de ce fichier et générer les fichiers rrd correspondants.

julie@63
18th February 2008, 16:52
Et qu'est-ce qui bloque pour mon cas ?!? :confused:

plemoal
18th February 2008, 16:54
je penserai plutôt à des problèmes de droits .

julie@63
18th February 2008, 17:08
Sur quel fichier ou repertoire je pourrai avoir des problèmes de droit???

Guigui2607
18th February 2008, 17:10
Sans rien faire: Est-ce que Nagios créé le fichier service-perfdata tout seul ?

Quels sont les droits sur le scripts process-service-perfdata du répertoire libexec de nagios (où sont stockés les plugins) ?

julie@63
18th February 2008, 17:19
Nagios créé bien service-perfdata tous seul..

Pour libexec :

[root@panaka var]# ls -lh /usr/local/nagios/libexec/
total 1,9M
-rwxr-xr-x 1 apache apache 1,6K fév 18 11:15 centreon.conf
-rwxr-xr-x 1 root root 5,9K fév 6 12:57 centreon.pm
-rwxr-xr-x 1 root root 568 fév 6 12:57 CHANGELOG
-rwxr-xr-x 1 root root 29K oct 26 16:34 check_apt
-rwxr-xr-x 1 root root 2,3K oct 26 16:33 check_breeze
-rwxr-xr-x 1 root root 33K oct 26 16:34 check_by_ssh
-rwxr-xr-x 1 root root 2,4K fév 6 12:57 check_centreon_dummy
-rwxr-xr-x 1 root root 7,7K fév 6 12:57 check_centreon_MS_multiple_services
-rwxr-xr-x 1 root root 13K fév 6 12:57 check_centreon_nt
-rwxr-xr-x 1 root root 6,0K fév 6 12:57 check_centreon_ping
-rwxr-xr-x 1 root root 5,7K fév 6 12:57 check_centreon_snmp_cpu
-rwxr-xr-x 1 root root 6,3K fév 6 12:57 check_centreon_snmp_loadaverage
-rwxr-xr-x 1 root root 7,6K fév 6 12:57 check_centreon_snmp_multiple_process
-rwxr-xr-x 1 root root 7,2K fév 6 12:57 check_centreon_snmp_packetErrors
-rwxr-xr-x 1 root root 6,9K fév 6 12:57 check_centreon_snmp_process
-rwxr-xr-x 1 root root 21K fév 6 12:57 check_centreon_snmp_process_detailed
-rwxr-xr-x 1 root root 11K fév 6 12:57 check_centreon_snmp_remote_storage
-rwxr-xr-x 1 root root 4,3K fév 6 12:57 check_centreon_snmp_TcpConn
-rwxr-xr-x 1 root root 15K fév 6 12:57 check_centreon_snmp_traffic
-rwxr-xr-x 1 root root 4,8K fév 6 12:57 check_centreon_snmp_uptime
-rwxr-xr-x 1 root root 6,5K fév 6 12:57 check_centreon_snmp_value
lrwxrwxrwx 1 apache nagios 9 fév 6 09:46 check_clamd -> check_tcp
-rwsr-x--- 1 root nagios 31K oct 26 16:34 check_dhcp
-rwxr-xr-x 1 root root 29K oct 26 16:34 check_dig
-rwxr-xr-x 1 root root 40K oct 26 16:34 check_disk
-rwxr-xr-x 1 root root 8,0K oct 26 16:33 check_disk_smb
-rwxr-xr-x 1 apache nagios 33K oct 26 16:34 check_dns
-rwxr-xr-x 1 root root 17K oct 26 16:34 check_dummy
-rwxr-xr-x 1 root root 3,2K oct 26 16:33 check_file_age
-rwxr-xr-x 1 root root 6,3K oct 26 16:33 check_flexlm
-rwxr-xr-x 1 root root 31K oct 26 16:34 check_fping
lrwxrwxrwx 1 apache nagios 9 fév 6 09:46 check_ftp -> check_tcp
-rwxr-xr-x 1 root root 25K oct 26 16:34 check_game
-rwxr-xr-x 1 root root 29K oct 26 16:34 check_hpjd
-rwxr-xr-x 1 apache nagios 77K oct 26 16:34 check_http
-rwsr-xr-x 1 root root 38K oct 26 16:34 check_icmp
-rwsr-xr-x 1 root root 22K oct 26 16:34 check_ide_smart
-rwxr-xr-x 1 root root 15K oct 26 16:33 check_ifoperstatus
-rwxr-xr-x 1 root root 13K oct 26 16:33 check_ifstatus
lrwxrwxrwx 1 apache nagios 9 fév 6 09:46 check_imap -> check_tcp
-rwxr-xr-x 1 root root 7,3K oct 26 16:33 check_ircd
lrwxrwxrwx 1 apache nagios 9 fév 6 09:46 check_jabber -> check_tcp
-rwxr-xr-x 1 apache nagios 26K oct 26 16:34 check_ldap
-rwxr-xr-x 1 root root 3,1K oct 26 16:33 check_linux_raid
-rwxr-xr-x 1 root root 24K oct 26 16:34 check_load
-rwxr-xr-x 1 root root 6,0K oct 26 16:33 check_log
-rwxr-xr-x 1 root root 20K oct 26 16:33 check_mailq
-rwxr-xr-x 1 root root 16K fév 6 12:57 check_meta_service
-rwxr-xr-x 1 root root 24K oct 26 16:34 check_mrtg
-rwxr-xr-x 1 root root 22K oct 26 16:34 check_mrtgtraf
-rwxr-xr-x 1 apache nagios 27K oct 26 16:34 check_mysql
-rwxr-xr-x 1 apache nagios 25K oct 26 16:34 check_mysql_query
-rwxr-xr-x 1 root root 25K oct 26 16:34 check_nagios
lrwxrwxrwx 1 apache nagios 9 fév 6 09:46 check_nntp -> check_tcp
lrwxrwxrwx 1 apache nagios 9 fév 6 09:46 check_nntps -> check_tcp
-rwxr-xr-x 1 root root 22K fév 23 2007 check_nrpe
-rwxr-xr-x 1 root root 37K oct 26 16:34 check_nt
-rwxr-xr-x 1 root root 32K oct 26 16:34 check_ntp
-rwxr-xr-x 1 root root 52K oct 26 16:34 check_nwstat
-rwxr-xr-x 1 root root 8,2K oct 26 16:33 check_oracle
-rwxr-xr-x 1 root root 31K oct 26 16:34 check_overcr
-rwxr-xr-x 1 apache nagios 27K oct 26 16:34 check_pgsql
-rwxr-xr-x 1 apache nagios 37K oct 26 16:34 check_ping
lrwxrwxrwx 1 apache nagios 9 fév 6 09:46 check_pop -> check_tcp
-rwxr-xr-x 1 root root 36K oct 26 16:34 check_procs
-rwxr-xr-x 1 root root 26K oct 26 16:34 check_radius
-rwxr-xr-x 1 root root 26K oct 26 16:34 check_real
-rwxr-xr-x 1 root root 9,5K oct 26 16:33 check_rpc
-rwxr-xr-x 1 root root 1,2K oct 26 16:33 check_sensors
lrwxrwxrwx 1 apache nagios 9 fév 6 09:46 check_simap -> check_tcp
-rwxr-xr-x 1 apache nagios 44K oct 26 16:34 check_smtp
-rwxr-xr-x 1 root root 72K oct 26 16:34 check_snmp
-rwxr-xr-x 1 root root 16K fév 6 12:57 check_snmp_cpfw.pl
-rwxr-xr-x 1 root root 12K déc 6 2006 check_snmp_disk
-rwxr-xr-x 1 root root 18K fév 6 12:57 check_snmp_load.pl
-rwxr-xr-x 1 root root 17K fév 6 12:57 check_snmp_mem.pl
-rwxr-xr-x 1 root root 12K déc 6 2006 check_snmp_proc
-rwxr-xr-x 1 root root 20K fév 6 12:57 check_snmp_process.pl
-rwxr-xr-x 1 root root 5,8K fév 6 12:57 check_snmp_processus_loaded.pl
-rwxr-xr-x 1 root root 6,2K fév 6 12:57 check_snmp_script_result.pl
-rwxr-xr-x 1 root root 23K fév 6 12:57 check_snmp_storage.pl
-rwxr-xr-x 1 root root 12K fév 6 12:57 check_snmp_win.pl
lrwxrwxrwx 1 apache nagios 9 fév 6 09:46 check_spop -> check_tcp
-rwxr-xr-x 1 root root 24K oct 26 16:34 check_ssh
lrwxrwxrwx 1 apache nagios 9 fév 6 09:46 check_ssmtp -> check_tcp
-rwxr-xr-x 1 root root 27K oct 26 16:34 check_swap
-rwxr-xr-x 1 apache nagios 36K oct 26 16:34 check_tcp
-rwxr-xr-x 1 root root 26K oct 26 16:34 check_time
lrwxrwxrwx 1 apache nagios 9 fév 6 09:46 check_udp -> check_tcp
-rwxr-xr-x 1 root root 31K oct 26 16:34 check_ups
-rwxr-xr-x 1 root root 23K oct 26 16:34 check_users
-rwxr-xr-x 1 root root 3,0K oct 26 16:33 check_wave
-rwxr-xr-x 1 root root 0 fév 6 12:57 d2utmp0sqMgO
-rwxr-xr-x 1 root root 0 fév 6 12:57 d2utmphewCCG
-rwxr-xr-x 1 root root 0 fév 6 12:57 d2utmpjwmUc6
-rwxr-xr-x 1 root root 0 fév 6 12:57 d2utmpNlocG6
-rwxr-xr-x 1 root root 0 fév 6 12:57 d2utmpqAGQcG
-rwxr-xr-x 1 root root 0 fév 6 12:57 d2utmpu5KsIt
-rwxr-xr-x 1 root root 0 fév 6 12:57 d2utmpxAqsnB
-rwxr-xr-x 1 root root 0 fév 6 12:57 d2utmpyGhEBE
drwxr-xr-x 2 apache nagios 4,0K nov 29 18:07 eventhandlers
-rwxr-xr-x 1 root root 191 fév 6 12:57 INSTALL
-rwxr-xr-x 1 root root 6,3K fév 6 12:57 install.sh
-rwxr-xr-x 1 apache nagios 24K oct 26 16:34 negate
-rwxrwxr-x 1 root root 1,3K fév 14 16:30 process-service-perfdata
-rwxr-xr-x 1 root root 393 fév 6 12:57 REQUIREMENT
-rwxr-xr-x 1 root root 1,9K fév 6 12:57 submit_host_check_result
-rwxr-xr-x 1 root root 2,0K fév 6 12:57 submit_service_check_result
drwxr-xr-x 2 root root 4,0K fév 6 12:57 traps
-rwxr-xr-x 1 apache nagios 23K oct 26 16:34 urlize
-rw-r--r-- 1 root root 2,1K oct 26 16:33 utils.pm
-rwxr-xr-x 1 apache nagios 860 oct 26 16:33 utils.sh

Guigui2607
18th February 2008, 17:28
Dans mon répertoire de plugins (nagios/libexec), mes plugins sont en 775 mais avec apache:nagios...
Par contre, je ne comprends pas pourquoi le fichier service-perfdata se remplit de 1 2 3 4 5 6 :roll:

plemoal
18th February 2008, 18:07
dans un premier temps il faudrait peut-être remettre à plat tous les droits des répertoires nagios.

chown -R nagios:nagios /usr/local/nagios
chown -R apache:nagios /usr/local/nagios/etc
chown -R apache:nagios /usr/local/nagios/libexec
chmod -R 775 /usr/local/nagios

après il faudra aussi certainement voir les droits sur /usr/local/centreon ou /usr/local/oreon

julie@63
18th February 2008, 18:11
C'est chose faite Plemoal

plemoal
18th February 2008, 18:12
que donne :
ls -l /usr/local/nagios/var/service-perfdata*.*

plemoal
18th February 2008, 18:13
et aussi un :
cat /usr/local/nagios/libexec/process-service-perfdata

julie@63
18th February 2008, 18:16
[root@panaka var]# cat /usr/local/nagios/libexec/process-service-perfdata
################################################## #################
# Oreon is developped with GPL Licence 2.0
#
# GPL License: http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
#
# Developped by : Julien Mathis - Romain Le Merlus
# Christophe Coraboeuf - Sugumaran Mathavarajan
#
################################################## #################
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# For information : contact@merethis.com
################################################## ##################
#
# Script init
#

#!/bin/sh
# some parameters passed on command line
TIMET=$1
HOSTNAME=$2
SERVICEDESC=$3
OUTPUT=$4
SERVICESTATE=$5
PERFDATA=$6
PERFFILE=/usr/local/nagios/var/service-perfdata

/usr/bin/printf "%b" "$TIMET\t$HOSTNAME\t$SERVICEDESC\t$OUTPUT\t$SERVICE STATE\t$PERFDATA\n" >> $PERFFILE
[root@panaka var]#



[root@panaka var]# ls -l /usr/local/nagios/var/service-perfdata*.*
ls: ne peut accéder /usr/local/nagios/var/service-perfdata*.*: Aucun fichier ou répertoire de ce type


root@panaka var]# ls -l /usr/local/nagios/var/service-perfdata*
-rw-r--r-- 1 root root 66 fév 14 16:30 /usr/local/nagios/var/service-perfdata
[root@panaka var]#

plemoal
18th February 2008, 18:20
on a toujours pas les bon propriétaire sur les répertoires sinon ton fichier /usr/local/nagios/var/service-perfdata ne serait pas à root:root

fait un :
ls -l /usr/local/nagios/

julie@63
18th February 2008, 21:05
Rendez-vous demain 8h30.. La j'ai plus la machine sous la main..

Merci à tous ;)

plemoal
19th February 2008, 09:12
ok à demain alors

julie@63
19th February 2008, 09:31
Bonjour à tous..

On est reparti pour une journée de recherche!! :rolleyes:

[root@panaka ~]# ls -l /usr/local/nagios/
total 4
drwxrwxr-x 2 nagios nagios 4096 fév 6 10:45 bin
lrwxrwxrwx 1 apache nagios 11 fév 6 10:45 etc -> /etc/nagios
lrwxrwxrwx 1 apache nagios 23 fév 6 10:45 libexec -> /usr/lib/nagios/plugins
lrwxrwxrwx 1 nagios nagios 22 fév 6 12:42 share -> /usr/share/nagios/html
lrwxrwxrwx 1 nagios nagios 4 fév 6 12:48 var -> /var


Est-ce qu'il faut que je mette apache:nagios sur /usr/local/nagios/var ?!?

Merci

julie@63
19th February 2008, 10:10
C'est encore moi, j'ai une petite question qui me turlupine :confused:

Est-ce qu'il faut avoir un répertoire "rw" dans /usr/local/nagios/var/.

Merci.

plemoal
19th February 2008, 10:21
voilà ce que j'ai :

[root@s90-nagios var]# ll
total 76976
drwxrwxr-x 2 nagios nagios 12288 fév 19 00:00 archives
-rw-rw-r-- 1 nagios nagios 238 aoû 3 2007 comment.log
-rwxrwxr-x 1 nagios nagios 238 aoû 3 2007 comments.dat
-rwxrwxr-x 1 nagios nagios 239 aoû 3 2007 downtime.dat
-rw-rw-r-- 1 nagios nagios 239 aoû 3 2007 downtime.log
-rw-r--r-- 1 nagios nagios 5 fév 5 12:45 nagios.lock
-rw-r--r-- 1 nagios nagios 557456 fév 19 09:28 nagios.log
-rw-r--r-- 1 nagios nagios 291497 fév 17 04:55 nagios.log.1
-rw-rw-r-- 1 nagios nagios 266705 fév 10 04:55 nagios.log.2
-rw-r--r-- 1 nagios nagios 296753 fév 3 04:55 nagios.log.3
-rw-r--r-- 1 nagios nagios 287532 jan 27 04:55 nagios.log.4
-rwxrwxr-x 1 nagios nagios 173758 fév 18 17:43 objects.cache
-rw------- 1 nagios nagios 7635 fév 5 12:45 retention.dat
drwxrwsr-x 2 nagios nagcmd 4096 fév 5 12:45 rw
-rwxrwxrwx 1 nagios nagios 76343522 fév 19 09:28 service-perfdata.tmp
-rw-rw-r-- 1 nagios nagios 207556 fév 19 09:28 status.log
-rw------- 1 nagios nagios 216229 fév 19 08:43 status.sav
[root@s90-nagios var]#

julie@63
19th February 2008, 10:32
Je t'esplique, en fait moi j'ai fait dans usr/local/nagios/var un lien symbolique de var (je ne sais pas si c'est bien utile...) ducoup j'ai :

[root@panaka var]# pwd
/usr/local/nagios/var
[root@panaka var]# ls
account empty lib log net-snmp preserve spool yp
cache games local lost+found nis run tmp
db gdm lock mail opt service-perfdata www
[root@panaka var]#

pour aller voir ce que tu m'a donné il faut que je fasse /usr/local/nagios/log/nagios :

[root@panaka var]# cd log/nagios/
[root@panaka nagios]# ls -lh
total 404K
drwxr-xr-x 2 nagios nagios 4,0K fév 19 00:00 archives
-rw-rw-r-- 1 nagios nagios 239 fév 7 06:54 comment.dat
-rw-rw-r-- 1 nagios nagios 239 fév 10 07:25 comment.log
-rw-rw-r-- 1 nagios nagios 239 fév 6 09:49 comments.dat
-rw-rw-r-- 1 nagios nagios 240 fév 6 09:49 downtime.dat
-rw-rw-r-- 1 nagios nagios 240 fév 6 13:56 downtime.log
-rw-rw-r-- 1 nagios nagios 301K fév 19 09:39 nagios.log
-rw-r--r-- 1 nagios nagios 31K fév 19 09:15 objects.cache
-rw------- 1 nagios nagios 7,5K fév 19 09:15 retention.dat
-rw-rw-r-- 1 nagios nagios 29K fév 19 09:39 status.log


pourquoi toi tu as :
- drwxrwsr-x 2 nagios nagcmd 4096 fév 5 12:45 rw
il faut que je le créé tu à quoi dedans nagios.cmd?!?

-rwxrwxrwx 1 nagios nagios 76343522 fév 19 09:28 service-perfdata.tmp
pourquoi c'est un .tmp et pas service-perfdata tous court?!?

Est-ce qu'il faut que je supprime mon lien symbolique?!?

plemoal
19th February 2008, 10:41
nagcmd est group.

service-perfdata.tmp car ods concatène le contenu de service-perfdata dans service-perfdata.tmp et supprime service-perfdata après.

je pense qu'il aurait peut-être mieux valu que tu installe nagios via le rpm fourni sur le site de nagios et non pas via yum.

Ainsi la totalité de nagios aurait été dans /usr/local/nagios et non pas éparpillé un peu partout.

julie@63
19th February 2008, 10:43
trop tard pour refaire l'install...

Je vais supprimé le lien symbolik et revoir la conf sous centreon..

Guigui2607
19th February 2008, 10:43
Je pense que tu peux enlever ton lien symbolique.

Le répertoire rw est utile, il me semble que Nagios vérifie son existence lorsqu'il démarre. Ce répertoire peut être vide.

julie@63
19th February 2008, 10:48
Tu me conseil de le créé toi alors et est-ce qu'il faut que je mette nagios.cmd dedans?!?

plemoal
19th February 2008, 10:59
Je ne sais pas ce que en pense Guigui, mais je serais assez partisan de désinstaller le nagios actuel :

yum remove nagios.i386

puis procéder à la réinstall de nagios via le tar.gz du site en version 2.10 via le site officiel de nagios http://www.nagios.org

puis suivre le paragraphe 3.3.1 de http://buller.freesurf.fr/Document/Doc_Nagios_Oreon.pdf

Guigui2607
19th February 2008, 11:00
tu peux le créé avec les bons droits dessus:
drwxrwsr-x 2 nagios nagios 4096 Jan 24 16:18 rw/

plemoal
19th February 2008, 11:01
Tu me conseil de le créé toi alors et est-ce qu'il faut que je mette nagios.cmd dedans?!?

je n'ai pas de nagios.cmd mais nagioscmd qui est un group et qui contient les users apache et nagios

Guigui2607
19th February 2008, 11:01
C'est sûr qu'une réinstallation serait plus "propre"...

julie@63
19th February 2008, 11:03
Peut-être plus propre mais moi mon stage s'arrête jeudi soir 18H!! Et j'ai pas envi que rien ne marche..

plemoal
19th February 2008, 11:03
la doc pdf fournie est celle que j'ai suivi pour mon install initiale.

julie@63
19th February 2008, 11:10
J'ai fais les modifs et toujours rien. Est-ce que je créé le rep "rw"?!?

mkdir /usr/local/nagios/var/rw
chown 755 /usr/local/nagios/var/rw
chown nagios:nagios /usr/local/nagios/var/rw

Est-ce que "Chemin d'accès aux bases RRD de stockage" = "/usr/local/centreon/OreonDataStorage/" est bon (ou mettre var/lib/ods/database)

julie@63
19th February 2008, 11:17
Voila mon repertoire /usr/local/nagios/var

[root@panaka var]# ls -lh
total 468K
drwxr-xr-x 2 nagios nagios 4,0K fév 19 00:00 archives
-rw-rw-r-- 1 nagios nagios 239 fév 7 06:54 comment.dat
-rw-rw-r-- 1 nagios nagios 239 fév 10 07:25 comment.log
-rw-rw-r-- 1 nagios nagios 239 fév 6 09:49 comments.dat
-rw-rw-r-- 1 nagios nagios 240 fév 6 09:49 downtime.dat
-rw-rw-r-- 1 nagios nagios 240 fév 6 13:56 downtime.log
-rw-rw-r-- 1 nagios nagios 314K fév 19 10:20 nagios.log
-rw-r--r-- 1 nagios nagios 31K fév 19 10:15 objects.cache
-rw------- 1 nagios nagios 7,5K fév 19 10:15 retention.dat
-rw-rw-r-- 1 nagios nagios 9,9K fév 19 10:20 service-perfdata
-rw-rw-r-- 1 nagios nagios 145 fév 19 09:58 service-perfdata_read
-rw-r--r-- 1 nagios nagios 253 fév 19 09:58 service-perfdata.tmp
-rw-rw-r-- 1 nagios nagios 29K fév 19 10:20 status.log
-rw------- 1 nagios nagios 30K fév 19 10:15 status.sav

- pourquoi j'ai encor service-perfdata?!?
- pourquoi j'ai encor service-perfdata_read?!?
- pourquoi toi tu as mis ton nagios.lock à cette endroit?!?



Peux-tu me dire ce que tu as dans ton repertoire 'rw'?

Merci

julie@63
19th February 2008, 11:23
Je sais que je vous charge d'info tous en même temps mais j'arrive pas à m'en empécher :D ...


voila ce que j'ai dans service-perfdata :

[root@panaka var]# vi service-perfdata
1203411470 traffic_palpatine.nat.fr traffic_palpatine.nat.fr ERROR: Description Table : No response from remote host 192.168.0.24. UNKNOWN
1203411571 CPU_palpatine.nat.fr CPU_palpatine.nat.fr Connection refused CRITICAL
1203411571 POP_amidala.nat.fr service_POP POP OK - 0.020 second response time on port 110 [+OK Hello there.] OK time=0.019860s;0.000000;0.000000;0.000000;10.00000 0
1203411571 test_palpatine.nat.fr test_palpatine.nat.fr DISK WARNING - free space: / 3399 MB (90% inode=99%): /var 9056 MB (96% inode=99%): /usr 1723 MB (45% inode=90%): /dev/shm 505 MB (100% inode=99%): WARNING /=361MB;3956;3966;0;3966 /var=347MB;9906;9916;0;9916 /usr=2038MB;3956;3966;0;3966 /dev/shm=0MB;495;505;0;505
1203411571 SMTP_amidala.nat.fr service_SMTP SMTP OK - 0.010 sec. response time OK time=0.010477s;;;0.000000
1203411571 SMTP_nettoyeur.nat.fr service_SMTP SMTP OK - 0.021 sec. response time OK time=0.021312s;;;0.000000
1203411571 HTTP_andros service_HTTP HTTP OK HTTP/1.1 200 OK - 3106 bytes in 0.031 seconds OK time=0.030613s;;;0.000000 size=3106B;;;0
1203411571 SMTP_palpatine.nat.fr service_SMTP SMTP OK - 0.025 sec. response time OK time=0.025213s;;;0.000000
1203411571 SMTP_windu.nat.fr service_SMTP SMTP OK - 0.013 sec. response time OK time=0.013326s;;;0.000000
1203411571 SMTP_yoda.nat.fr service_SMTP SMTP OK - 0.015 sec. response time OK time=0.015059s;;;0.000000
1203411571 HTTP_ville-de-clermont service_HTTP HTTP OK HTTP/1.1 200 OK - 67993 bytes in 0.068 seconds OK time=0.067511s;;;0.000000 size=67993B;;;0
1203411624 ping_palpatine.nat.fr ping_palpatine.nat.fr GPING OK - rtt min/avg/max/mdev = 0.297/0.364/0.467/0.073 ms OK time=0.364ms;20;40;; ok=1
1203411624 SMTP_clermont5.ncf.neyrial.nht service_SMTP CRITICAL - Socket timeout after 10 seconds CRITICAL
1203411624 traffic_palpatine.nat.fr traffic_palpatine.nat.fr ERROR: Description Table : No response from remote host 192.168.0.24. UNKNOWN
1203411777 CPU_palpatine.nat.fr CPU_palpatine.nat.fr Connection refused CRITICAL
1203411777 POP_amidala.nat.fr service_POP POP OK - 0.020 second response time on port 110 [+OK Hello there.] OK time=0.019613s;0.000000;0.000000;0.000000;10.00000 0
1203411777 test_palpatine.nat.fr test_palpatine.nat.fr DISK WARNING - free space: / 3399 MB (90% inode=99%): /var 9056 MB (96% inode=99%): /usr 1723 MB (45% inode=90%): /dev/shm 505 MB (100% inode=99%): WARNING /=361MB;3956;3966;0;3966 /var=347MB;9906;9916;0;9916 /usr=2038MB;3956;3966;0;3966 /dev/shm=0MB;495;505;0;505
1203411777 SMTP_amidala.nat.fr service_SMTP SMTP OK - 0.020 sec. response time OK time=0.019959s;;;0.000000
1203411777 SMTP_nettoyeur.nat.fr service_SMTP SMTP OK - 0.018 sec. response time OK time=0.017958s;;;0.000000
1203411777 HTTP_andros service_HTTP HTTP OK HTTP/1.1 200 OK - 3106 bytes in 0.042 seconds OK time=0.042326s;;;0.000000 size=3106B;;;0
1203411777 SMTP_palpatine.nat.fr service_SMTP SMTP OK - 0.020 sec. response time OK time=0.020181s;;;0.000000
1203411777 SMTP_windu.nat.fr service_SMTP SMTP OK - 0.016 sec. response time OK time=0.016098s;;;0.000000
1203411777 SMTP_yoda.nat.fr service_SMTP SMTP OK - 0.012 sec. response time OK time=0.011728s;;;0.000000
1203411777 HTTP_ville-de-clermont service_HTTP HTTP OK HTTP/1.1 200 OK - 67993 bytes in 0.079 seconds OK time=0.079394s;;;0.000000 size=67993B;;;0
1203411878 ping_palpatine.nat.fr ping_palpatine.nat.fr GPING OK - rtt min/avg/max/mdev = 0.293/0.384/0.555/0.121 ms OK time=0.384ms;20;40;; ok=1
1203411878 SMTP_clermont5.ncf.neyrial.nht service_SMTP CRITICAL - Socket timeout after 10 seconds CRITICAL
1203411878 traffic_palpatine.nat.fr traffic_palpatine.nat.fr ERROR: Description Table : No response from remote host 192.168.0.24. UNKNOWN
1203412031 CPU_palpatine.nat.fr CPU_palpatine.nat.fr Connection refused CRITICAL
1203412031 POP_amidala.nat.fr service_POP POP OK - 0.031 second response time on port 110 [+OK Hello there.] OK time=0.031197s;0.000000;0.000000;0.000000;10.00000 0


Ne pas faire attention au erreur c'est des test...

plemoal
19th February 2008, 11:23
peux tu me mettre le résulta d'un
cat /usr/local/nagios/service-perfdata.tmp

si mes souvenirs sont bons, tu ne l'avais pas auparavant

plemoal
19th February 2008, 11:24
en tout cas on est déjà un peu mieux

julie@63
19th February 2008, 11:26
excellent souvenir.. :p

[root@panaka var]# cat /usr/local/nagios/var/service-perfdata.tmp
1203411370 SMTP_clermont5.ncf.neyrial.nht service_SMTP CRITICAL - Socket timeout after 10 seconds CRITICAL
1203411470 ping_palpatine.nat.fr ping_palpatine.nat.fr GPING OK - rtt min/avg/max/mdev = 0.299/0.315/0.326/0.011 ms OK time=0.315ms;20;40;; ok=1

C'est normal que ça me revoit que ça?!?

julie@63
19th February 2008, 11:30
C'est normal que j'ai encore service-perfdata moi?!?

Je fais quoi pour le rep "rw"?

plemoal
19th February 2008, 11:32
excellent souvenir.. :p

[root@panaka var]# cat /usr/local/nagios/var/service-perfdata.tmp
1203411370 SMTP_clermont5.ncf.neyrial.nht service_SMTP CRITICAL - Socket timeout after 10 seconds CRITICAL
1203411470 ping_palpatine.nat.fr ping_palpatine.nat.fr GPING OK - rtt min/avg/max/mdev = 0.299/0.315/0.326/0.011 ms OK time=0.315ms;20;40;; ok=1

C'est normal que ça me revoit que ça?!?

oui c'est normal après tu devrais les retrouver dans service-perfdata.tmp.

Que donne tes graphs maintenant.

julie@63
19th February 2008, 11:34
oui c'est normal après tu devrais les retrouver dans service-perfdata.tmp.

Que donne tes graphs maintenant.



On est dans service.perfdata.tmp..

Sinon mes graph toujours pareil... c'est à dire rien..

plemoal
19th February 2008, 11:38
que donne :

ls -l /usr/local/centreon/OreonDataStorage

julie@63
19th February 2008, 11:39
[root@panaka var]# ls -l /usr/local/centreon/OreonDataStorage
total 4
drwxrwxr-x 2 nagios nagios 4096 fév 15 11:02 backup


Pas de .rrd en vu... :-|

plemoal
19th February 2008, 11:41
fait un

chown -R apache:nagios /usr/local/centreon/OreonDataStorage

PikaRaph
19th February 2008, 11:42
C'est pas plutot /usr/local/centreon/ODS ?

j'ai ça dedans :

etc
ods
lib
var

comme user:group , j'ai apache:apache partout

plemoal
19th February 2008, 11:42
puis fait un :

service ods restart

Guigui2607
19th February 2008, 11:51
Je reponds un peu tard, je m'intercale un peu du coup...

C'est normal, tu as un service-perfdata.tmp car tu as dû cocher la case "Déplacer les données après lecture" dans le menu >> Options > Oreon > Options Générales > CentreonDataStorage.

Le fait que tu ais un fichier service-perfdata.tmp indique bien qu'ODS vient lire le fichier service-perfdata et qu'il copie le contenu dans le service-perfdata.tmp.

As tu des erreurs dans le fichier ods.log ?

Sinon maintenant qu'on sait qu'ODS fonctionne, dans Centreon, dans le menu >> Options > Oreon > Options Générales > Debug, tu peux activer le debug de RRDTool en allant le consulter dans le répertoire indiqué dans le champ juste au dessus de l'option (Répertoire des logs).
Ça peux aussi voir si c'est rrdtool qui coince... :roll:

julie@63
19th February 2008, 11:51
OUAAAAAAAAAAAAAAA
je sais pas ce que je te fairé si tu étais devant mois plemoal mais.....


TROP BIEN CA MARCHE MERCI


(hihi je ss trop contente)

plemoal
19th February 2008, 11:56
bon ben voilà une bonne chose de faite.

Nous avions bien dès le départ des problèmes de droits et de répertoires nagios un peu bizarre.

@julie@63: tu n'as pas besoin de faire quoi que se soit, te t'avoir dépanné est une récompense en soi.

julie@63
19th February 2008, 12:00
T'inquiete j'allais rien te faire lol

Bon petite question pourquoi ça me graph rien lol

plemoal
19th February 2008, 12:00
@julie@63 :

rassure moi, tu as bien les .rrd qui sont générés et les graphs sont bien visibles dans centreon ?????

julie@63
19th February 2008, 12:03
Oui c'est bien la première chose que j'ai regardé 8-)


J'ai des tableaux mais aucune courbe en faite...

plemoal
19th February 2008, 12:05
je me doutais bien que tu avais ce soucis de graph qui n'apparaît pas.

un patch existe il faut que je le retrouve.

peux tu déjà me renvoyer :

rrdtool info /usr/local/centreon/OreonDataStorage/001.rrd

julie@63
19th February 2008, 12:07
je me doutais bien que tu avais ce soucis de graph qui n'apparaît pas.

un patch existe il faut que je le retrouve.

peux tu déjà me renvoyer :

rrdtool info /usr/local/centreon/OreonDataStorage/001.rrd

[root@panaka centreon]# rrdtool info /usr/local/centreon/OreonDataStorage/001.rrd
ERROR: opening '/usr/local/centreon/OreonDataStorage/001.rrd': No such file or directory

julie@63
19th February 2008, 12:10
je crois que je n'est pas de 001.RRD......

julie@63
19th February 2008, 12:15
j'ai un repertoir usr/local/centreon/rdd mais rien dedans...

julie@63
19th February 2008, 12:28
Plus d'idée Plemoal?!?

PikaRaph
19th February 2008, 12:29
Merci à tous, moi aussi j'ai enfin les graphes c'était bien les droits sur les fichiers.
maintenant, comme Julie, je n'ai rien quii se graphe, j'ai bien le repère, mais rien dedans...

plemoal
19th February 2008, 12:34
qu'as tu dans /usr/local/centreon/OreonDataStorage

julie@63
19th February 2008, 12:37
qu'as tu dans /usr/local/centreon/OreonDataStorage

[root@panaka etc]# ls -lh /usr/local/centreon/OreonDataStorage/
total 193M
-rw-r--r-- 1 nagios nagios 13M fév 19 11:46 10.rrd
-rw-r--r-- 1 nagios nagios 13M fév 19 11:46 11.rrd
-rw-r--r-- 1 nagios nagios 13M fév 19 11:46 12.rrd
-rw-r--r-- 1 nagios nagios 13M fév 19 11:46 13.rrd
-rw-r--r-- 1 nagios nagios 13M fév 19 11:46 14.rrd
-rw-r--r-- 1 nagios nagios 13M fév 19 11:46 15.rrd
-rw-r--r-- 1 nagios nagios 13M fév 19 11:46 16.rrd
-rw-r--r-- 1 nagios nagios 13M fév 19 11:46 1.rrd
-rw-r--r-- 1 nagios nagios 13M fév 19 11:46 2.rrd
-rw-r--r-- 1 nagios nagios 13M fév 19 11:46 3.rrd
-rw-r--r-- 1 nagios nagios 13M fév 19 11:46 4.rrd
-rw-r--r-- 1 nagios nagios 13M fév 19 11:46 5.rrd
-rw-r--r-- 1 nagios nagios 13M fév 19 11:46 6.rrd
-rw-r--r-- 1 nagios nagios 13M fév 19 11:46 7.rrd
-rw-r--r-- 1 nagios nagios 13M fév 19 11:46 8.rrd
-rw-r--r-- 1 nagios nagios 13M fév 19 11:46 9.rrd
drwxrwxr-x 2 apache nagios 4,0K fév 15 11:02 backup

plemoal
19th February 2008, 12:42
maintenant fait :

rrdtool info /usr/local/centreon/OrenDataStorage/1.rrd

julie@63
19th February 2008, 12:44
maintenant fait :

rrdtool info /usr/local/centreon/OrenDataStorage/1.rrd

[root@panaka etc]# rrdtool info /usr/local/centreon/OrenDataStorage/1.rrd
ERROR: opening '/usr/local/centreon/OrenDataStorage/1.rrd': No such file or directory

Bizare!

plemoal
19th February 2008, 12:46
normal j'ai oublié une lettre dans la commande

rrdtool info /usr/local/centreon/OreonDataStorage/1.rrd

julie@63
19th February 2008, 12:48
normal j'ai oublié une lettre dans la commande

rrdtool info /usr/local/centreon/OreonDataStorage/1.rrd

[root@panaka etc]# rrdtool info /usr/local/centreon/OreonDataStorage/1.rrd
filename = "/usr/local/centreon/OreonDataStorage/1.rrd"
rrd_version = "0003"
step = 60
last_update = 1203418608
ds[time].type = "GAUGE"
ds[time].minimal_heartbeat = 120
ds[time].min = NaN
ds[time].max = NaN
ds[time].last_ds = "8.748000e-03"
ds[time].value = NaN
ds[time].unknown_sec = 48
rra[0].cf = "AVERAGE"
rra[0].rows = 525600
rra[0].pdp_per_row = 1
rra[0].xff = 5.0000000000e-01
rra[0].cdp_prep[0].value = NaN
rra[0].cdp_prep[0].unknown_datapoints = 0
rra[1].cf = "MIN"
rra[1].rows = 525600
rra[1].pdp_per_row = 12
rra[1].xff = 5.0000000000e-01
rra[1].cdp_prep[0].value = NaN
rra[1].cdp_prep[0].unknown_datapoints = 8
rra[2].cf = "MAX"
rra[2].rows = 525600
rra[2].pdp_per_row = 12
rra[2].xff = 5.0000000000e-01
rra[2].cdp_prep[0].value = NaN
rra[2].cdp_prep[0].unknown_datapoints = 8

plemoal
19th February 2008, 12:51
je suppose que tu fais un check des services toutes les 120 secondes (2 minutes)

julie@63
19th February 2008, 12:51
Je reviens dans pas longtemps je vais faire une pause casse-croute.... :p

julie@63
19th February 2008, 12:53
je suppose que tu fais un check des services toutes les 120 secondes (2 minutes)

Non toute les minutes... (Ordonnancement régulier et irrégulier = 1)

julie@63
19th February 2008, 13:16
Je suis de retour et opérationnel...

plemoal
19th February 2008, 13:33
donc les patchs ont été appliqués dans la version 1.4.2.3

julie@63
19th February 2008, 13:46
comment ça mes patch ont été appliqués?!? :confused:

plemoal
19th February 2008, 13:47
lance les commandes suivantes :

chown -R apache:nagios /usr/local/centreon/OreonDataStorage

puis

chmod -R 775 /usr/local/centreon/OreonDataStorage

plemoal
19th February 2008, 13:49
dans les infos rrd tu as :

ds[time].minimal_heartbeat = 120

Si les paths n'avaient pas été appliqués tu aurait eu
ds[time].minimal_heartbeat = 60

plemoal
19th February 2008, 13:51
après ce que tu peux faire c'est dans l'interface web d'oreon :

Options->> CentreonDataStorage

Cocher tous les graphs et dans le menu déroulant se trouvant en haut de la page sélectionner 'Régénérer la base RRD"

Ensuite tu attends 2/3 minutes et regarde si tes graphs graphent bien

julie@63
19th February 2008, 14:06
dans les infos rrd tu as :

ds[time].minimal_heartbeat = 120

Si les paths n'avaient pas été appliqués tu aurait eu
ds[time].minimal_heartbeat = 60

Bon ben j'ai fais ce que tu m'as dis mais toujours rien malheureusement...

L'histoire des paths j'ai pas trop saisi, tu entend quoi quand tu dis paths

plemoal
19th February 2008, 14:11
faute de frappe je voulait dir patchs

plemoal
19th February 2008, 14:13
peux tu me dire tout ce que tuas dans

Options >> Options Générales ->> CentreonDataStorage

julie@63
19th February 2008, 14:20
peux tu me dire tout ce que tuas dans

Options >> Options Générales ->> CentreonDataStorage

Chemin d'accès aux bases RRD de stockage /usr/local/centreon/OreonDataStorage/
Durée de Rétention des données de RRDTool 365 jours
Durée de Rétention des données de MySQL 260 jours
Auto-Suppression des bases RRD (pas coché)
Sleep Time 10 (en secondes - Doit être supérieur à 10)
Interval de vérification des purges 60 (en secondes - Doit être supérieur à 2)
Type de Stockage RRDTool RRDTool & MySQL
Fichier des données de performances
Déplacer les données après lecture (coché)
Fichier de drop des données /usr/local/nagios/var/service-perfdata.tmp

Archiver les logs de Nagios (coché)
Durée de rétention des logs 31 jours
Fichier de log de Nagios à parser /usr/local/nagios/var/nagios.log

Lecture rapide des Status (pas coché)

plemoal
19th February 2008, 14:26
Ajoute dans Options >> Options Générales >> OreonDataStorage

sur la ligne 'Fichier des données de performances' met '/usr/local/nagios/var/service-perfdata'

PikaRaph
19th February 2008, 14:31
plemoal : je n'ai pas le fameux fichier /usr/local/centreon/OreonDataStorage et malgré tout j'ai bien mes graphes, j'ai changé la periode d'échantillonnage pour avoir une échelle plus restreinte et j'ai bien l'évolution du temps de réponse du ping sur mon serveur.

julie@63
19th February 2008, 14:35
Ajoute dans Options >> Options Générales >> OreonDataStorage

sur la ligne 'Fichier des données de performances' met '/usr/local/nagios/var/service-perfdata'

Alors là chapeau bas tu es trop fort!!!

Dis-moi tu aurais pas installé NRPE par hasard?!? :cool:


Grand merci en tout cas!!

plemoal
19th February 2008, 15:46
@julie : Dois-je comprendre que ça fonctionne maintenant

@PikaRaph : les fichier rrd doivent être dans un autre répertoire genre /usr/local/centreon/rrd. Tout dépend comment tu as configuré les options générales de CentreonDataStorage

plemoal
19th February 2008, 15:48
@julie: j'ai aussi installé NRPE sur un serveur Crosoft

julie@63
19th February 2008, 15:53
@julie: j'ai aussi installé NRPE sur un serveur Crosoft



oui mes graph march du moin j'ai un soupcon de courbe.. Sinon je ne comprend pas tous avec NRPE...

Est-ce qu'il faut qu'il y est les commandes dans nrpe.cfg (sur la machine que l'on surveille..)pour pouvoir la superviser. Si c'est ça il faut en rajouter des commandes dans ce fichier et on les prends à partir de quoi c'est commande?!?

j'ai également un souci pour comprendre ce qu'il faut mettre comme argument concernant la commande dans Centreon..

Merci

PikaRaph
19th February 2008, 15:57
Oui j'ai bien les fichiers rrd, j'ai trouvé où ils se cachaient !
rrdtool info /var/lib/ods/database/1.rrd

et ca marche !

plemoal
19th February 2008, 16:41
va là c'est une bonne documentation sur NRPE
http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf

plemoal
19th February 2008, 16:46
sur les machine que tu surveilles tu dois avoir un fichier nrpe.cfg

Ce fichier contient les plugins de check exécutables via NRPE
Ces plugins tu peux les trouver sur http://www.nagiosexchange.org

julie@63
19th February 2008, 16:59
sur les machine que tu surveilles tu dois avoir un fichier nrpe.cfg

Ce fichier contient les plugins de check exécutables via NRPE
Ces plugins tu peux les trouver sur http://www.nagiosexchange.org

Merci..

Moi en faite mon install est ok le deamon nrpe renvoit bien a Nagios ce qui m'enquiquine c'est les argument qu'il faut précisé pour centreon..

plemoal
20th February 2008, 12:59
les arguments à passer tu les trouves en faisant :

./check_nrpe -h

Tu dois avoir un plugin check_nrpe auquel tu passe comme argument le plugin à interroger sur la machine superviser

ex: $USER1$/check_nrpe -H $HOSTNAME$ -n -c check_disk

sur ta machine à superviser, dans le nrpe.cfg tu dois avoir une ligne :

command[check_disk]=chemin_absolu_plugin/check_disk -w xx -c yy

plemoal
20th February 2008, 13:03
voici le contenu de l'aide de check_nrpe :

Ligne de Commande /usr/local/nagios/libexec/check_nrpe --help
Sortie
NRPE Plugin for Nagios
Copyright (c) 1999-2007 Ethan Galstad (nagios@nagios.org)
Version: 2.7
Last Modified: 02-19-2007
License: GPL v2 with exemptions (-l for more info)
SSL/TLS Available: Anonymous DH Mode, OpenSSL 0.9.6 or higher required

Usage: check_nrpe -H [-n] [-u] [-p ] [-t ] [-c ] [-a ]

Options:
-n = Do no use SSL
-u = Make socket timeouts return an UNKNOWN state instead of CRITICAL
= The address of the host running the NRPE daemon
[port] = The port on which the daemon is running (default=5666)
[timeout] = Number of seconds before connection times out (default=10)
[command] = The name of the command that the remote daemon should run
[arglist] = Optional arguments that should be passed to the command. Multiple
arguments should be separated by a space. If provided, this must be
the last option supplied on the command line.

Note:
This plugin requires that you have the NRPE daemon running on the remote host.
You must also have configured the daemon to associate a specific plugin command
with the [command] option you are specifying here. Upon receipt of the
[command] argument, the NRPE daemon will run the appropriate plugin command and
send the plugin output and return code back to *this* plugin. This allows you
to execute plugins on remote hosts and 'fake' the results to make Nagios think
the plugin is being run locally.

julie@63
20th February 2008, 15:33
Merci.


La j'ai un petit peu oublié NRPE et je suis revenu sur les graph..
En effet, il me graph un peu n'importe quoi (un point par ci un point par là...) :confused:

julie@63
20th February 2008, 17:50
j'ai encore une question mais cette fois concernant NRPE. Sous centreon comment on dit que l'on veut faire un chech_load par exemple mais grace à un check_nrpe?!?

plemoal
20th February 2008, 18:52
sous centreon tu crées une commande check_nrpe_load qui lancera le plugin suivant :

$USER1$/check_nrpe -H $HOSTNAME$ -n -c check_load

sur ta machine à superviser, dans le nrpe.cfg tu dois avoir une ligne :

command[check_load]=chemin_absolu_plugin/check_load -w xx -c yy

julie@63
21st February 2008, 10:24
sous centreon tu crées une commande check_nrpe_load qui lancera le plugin suivant :

$USER1$/check_nrpe -H $HOSTNAME$ -n -c check_load

sur ta machine à superviser, dans le nrpe.cfg tu dois avoir une ligne :

command[check_load]=chemin_absolu_plugin/check_load -w xx -c yy

Merci beaucoup...

J'ai un autre problème quand je veux redémarrer Nagios par centreon il ne redémarre pas contraire à ce que m'indique le fichier ...


Running configuration check...done
Stopping nagios: .done.
Starting nagios: done.

julie@63
21st February 2008, 10:27
Pour : command[check_load]=chemin_absolu_plugin/check_load -w xx -c yy

Qu'est-ce qu'il faut que je mette à la place de XX et YY

julie@63
21st February 2008, 10:30
Pour : command[check_load]=chemin_absolu_plugin/check_load -w xx -c yy

Qu'est-ce qu'il faut que je mette à la place de XX et YY

C'est bon pour ça j'avais mal lu ce que tu m'avais dis...

julie@63
21st February 2008, 10:40
J'ai fais ce que tu m'a dis avec Check-nrpe-load

et centreon me renvoit :

CPU_palpatine.nat.fr CPU_palpatine.nat.fr CPU_palpatine.nat.fr UNKNOWN 21/02/08 09:44:39 2m 20s 1 Invalid host name 'CPU_palpatine.nat.fr'


comme argument j'ai mit !5!20

Comment je peux faire pour corriger cette erreur.. :confused:

julie@63
21st February 2008, 12:47
J'ai fais ce que tu m'a dis avec Check-nrpe-load

et centreon me renvoit :

CPU_palpatine.nat.fr CPU_palpatine.nat.fr CPU_palpatine.nat.fr UNKNOWN 21/02/08 09:44:39 2m 20s 1 Invalid host name 'CPU_palpatine.nat.fr'


comme argument j'ai mit !5!20

Comment je peux faire pour corriger cette erreur.. :confused:

Personne a une idée?!?

Guigui2607
21st February 2008, 13:02
D'après l'erreur, il ne connaît pas le hostname 'CPU_palpatine.nat.fr'... :roll:
Il est bien déclaré dans tes hosts ?

julie@63
21st February 2008, 14:25
D'après l'erreur, il ne connaît pas le hostname 'CPU_palpatine.nat.fr'... :roll:
Il est bien déclaré dans tes hosts ?

oui c'est pour ça que je ne comprend pas!!

Guigui2607
21st February 2008, 14:30
Dans la configuration de tes hosts, tu utilises le nom du host ou son adresse IP
(dans le champ 'adresse') ?

julie@63
21st February 2008, 14:33
Dans la configuration de tes hosts, tu utilises le nom du host ou son adresse IP
(dans le champ 'adresse') ?

son IP!! c'est pour ça je ne comprend pas pourquoi il ne le trouve pas! :confused:

Guigui2607
21st February 2008, 15:20
Effectivement bizarre...
T'as bien un host qui se nomme CPU_palpatine.nat.fr ?

julie@63
21st February 2008, 15:22
Effectivement bizarre...
T'as bien un host qui se nomme CPU_palpatine.nat.fr ?

Oui, jai bien un hote CPu_palpatine

Guigui2607
22nd February 2008, 10:36
Le lancement de la requête en ligne de commande fonctionne-t-elle ?
Si oui, y'a t-il des erreurs qui s'affichent ?

pti-kwi
18th April 2008, 15:14
Alors là chapeau bas tu es trop fort!!!

Dis-moi tu aurais pas installé NRPE par hasard?!? :cool:


Grand merci en tout cas!!


J'ai le même problème que toi, j'ai suivi votre discussion, j'ai fait les changements mais rien!

comment à tu réussi a avoir tes graphe stp ! mon pseudo sur le forum c'est pti-kwi