PDA

View Full Version : Probleme rechargement Nagios


Azarius
7th March 2007, 13:11
Bonjour,
J'utilise un Nagios 2.5 avec un Oreon 1.3 RC3 et une fedora core 6 et je ne comprend pas une chose:

comment ce fait t'il que quand je recharge nagios j'ai ceci:

""Nagios 2.5
Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org)
Last Modified: 07-13-2006
License: GPL

Reading configuration data...

Running pre-flight check on configuration data...

Checking services...
Checked 50 services.
Checking hosts...
Checked 12 hosts.
Checking host groups...
Checked 2 host groups.
Checking service groups...
Checked 1 service groups.
Checking contacts...
Checked 1 contacts.
Checking contact groups...
Checked 1 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 47 commands.
Checking time periods...
Checked 5 time periods.
Checking extended host info definitions...
Checked 12 extended host info definitions.
Checking extended service info definitions...
Checked 50 extended service info definitions.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check

cgi.cfg - déplacement OK
checkcommands.cfg - déplacement OK
contactgroups.cfg - déplacement OK
contacts.cfg - déplacement OK
dependencies.cfg - déplacement OK
escalations.cfg - déplacement OK
hostextinfo.cfg - déplacement OK
hostgroups.cfg - déplacement OK
hosts.cfg - déplacement OK
misccommands.cfg - déplacement OK
nagios.cfg - déplacement OK
resource.cfg - déplacement OK
serviceextinfo.cfg - déplacement OK
servicegroups.cfg - déplacement OK
services.cfg - déplacement OK
timeperiods.cfg - déplacement OK""

et que dans la partie manitoring j'ai dans mes Services 14Ok 14Attention et 22Critique !
sa n'est pas normal?
De plus mes critiques correspondent a un message disant : "No Output!".
Que cela signifie?
merci

xspoon
7th March 2007, 13:18
methode : teste les plugins en ligne de commande

Azarius
7th March 2007, 14:32
ok, mais je sais pas trop comment faire, j'ai bien trouvé ceci : http://nagios.sourceforge.net/docs/2_0/embeddedperl.html

mais j'ai un peu de mal avec ça, et sa ma l'air bcp trop compliquer pour juste tester des plugins, ya certainement un moyen plus court!

xspoon
7th March 2007, 14:52
tu vas lancer directement le plugin qui te mets "no output" depuis le repertoire des plugins nagios Ex /usr/local/nagios/libexec/check_snmp -H x.x.x.x -C public -o .1.2.3 en te connectant par ssh (putty)

Azarius
7th March 2007, 16:18
j'ai vérifier et les (output!) sont du aux check_graph_process, j'ai donc fai ceci:

[root@localhost libexec]# /usr/local/nagios/libexec/check_graph_process.pl -H 192.1.1.56 -C public
Can't locate Config/IniFiles.pm in @INC (@INC contains: /usr/local/nagios/libexec /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/local/nagios/libexec/oreon.pm line 27.
BEGIN failed--compilation aborted at /usr/local/nagios/libexec/oreon.pm line 27.
Compilation failed in require at /usr/local/nagios/libexec/check_graph_process.pl line 31.
BEGIN failed--compilation aborted at /usr/local/nagios/libexec/check_graph_process.pl line 31.

la ligne 27 de oreon.pm est ici :

if (eval "require Config::IniFiles" ) {
use Config::IniFiles; <== ICI
} else {
print "Unable to load Config::IniFiles\n";
exit $ERRORS{'UNKNOWN'};
}

la ligne 31 de check_graph_process.pl ici :

if (eval "require oreon" ) {
use oreon qw(get_parameters create_rrd update_rrd &is_valid_serviceid); <== ICI
use vars qw($VERSION %oreon);
%oreon=get_parameters();
} else {
print "Unable to load oreon perl module\n";
exit $ERRORS{'UNKNOWN'};
}

donc sa doit etre une histoire de paramètres.

xspoon
7th March 2007, 16:53
Can't locate Config/IniFiles.pm in @INC

c'est un module perl a reinstaller

à voir dans le forum car ça a été déja traité je pense.

xsp

Azarius
9th March 2007, 10:25
voilà donc j'ai installer le module perl manquant, et d'ailleurs il en manquais un deuxieme, que j'ai installé aussi.
cependant, maintenant j'ai toujours mon probleme du départ (rechargment bizzare comparé au statut reel)

et quand je refait ma commande:

/usr/local/nagios/libexec/check_graph_process.pl -H 192.1.1.56 -C public
Process CRITICAL - not in 'running' state

et depuis ce matin, j'ai 31 statuts "UNKNOW" et qui m'indique soit :

-UNKNOWN: No response from remote host '192.1.1.29'.
-NSClient - ERROR:Wrong password

evidemment je voit parfaitement a quoi sa correspond, et si en ligne de commade je test les services
par exemple l'espace disque d'un de mes postes qui affichais un mauvais password NSClient:

[root@localhost ~]# /usr/local/nagios/libexec/check_nt -H 192.1.1.56 -v USEDDISKSPACE -l c -w 75 -c 90 -s "public"
NSClient - ERROR:Wrong password

, bon apparemment sa vien de plus loin que l'interface, en regardant dans le registre de mon hôte, je retrouve mes 3 donnée:

-le mot de passe "None"
-le port "1248"
-et une autre ou il y a rien du nom "(par défaut)" et sans valeurs (non défini)

il faut évidemment que je retrouve les mêmes port et mot de passe das mon fichier

Je fait donc ceci:
/usr/local/nagios/libexec/check_nt -H 192.1.1.56 -v USEDDISKSPACE -l c -w 75 -c 90 -s "public" -p "None"
Server port an integer (seconds)
Type 'check_nt -h' for additional help

focemment....

[root@localhost ~]# /usr/local/nagios/libexec/check_nt -H 192.1.1.56 -v USEDDISKSPACE -l c -w 75 -c 90 -s "None"
c: - total: 3.42 Gb - used: 2.94 Gb (86%) - free 0.48 Gb (14%)

il faut donc que je remodifie tout ça dans mon checkcommands.cfg

Azarius
9th March 2007, 12:07
donc j'ai bien tout modifier dans mon check commands, mais sa ne change rien dans l'interface d'oreon!!!


par contre, a l'installation de mon oreon, je n'ai pas pu accéder accéder a mon interface web, et en visionnant les log d'apache, je me suis rendu compte que le http://localhost/oreon pointait sur /var/www/html/oreon, or mes fichier de l'interface (index.php et tout...) ce situais dans le /usr/local/oreon/www.

et comme je ne trouvais pas l'endroit ou modifier le chemin d'accès au sources site , et bien j'ai créé un répertoire oreon dans /var/www/html/ et j'ai copier coller les sources qui était dans /usr/local/oreon/www.

je voudrais savoir si j'ai fait une bétise en fesant ça et si sa pouvais avoir un rapport avec mon probleme aujourd'hui.

merci

xspoon
9th March 2007, 12:31
il faut donc que je remodifie tout ça dans mon checkcommands.cfg.

c'est à travers d'oreon que tu fait ça

Configuration > Commandes > Commandes de Vérifcations

tu doit créer une définition de commande en te calquant sur les autres exemples

Azarius
9th March 2007, 13:12
et bien c'est ce que j'ai fait:

avant yavai ça==> $USER1$/check_nt -H $HOSTADDRESS$ -v USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$ -s "public"

et j'ai mis ça==> $USER1$/usr/local/nagios/libexec/check_nt -H $HOSTADDRESS$ -v USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$ -s "None"

mais sa ne change rien, j'ai toujours l'erreur NSClient, wrong password.
y aurai t'il pas un soucis avec le $USER1$?

xspoon
9th March 2007, 15:55
ça ressemble à un pb de guillemets, essaye sans les guillemets ou bien en échapement: \"

Azarius
9th March 2007, 16:05
j'essaille sans les guillemets, par contre les échapement c'est quoi?

et sa ne marche toujours pas, je peu les tester en ligne de commande?
parce que là, c'est pas pareille que ce que j'ai testé dernierement.

Azarius
9th March 2007, 16:18
et si j'enlève le $USER1$?

Azarius
9th March 2007, 17:15
serieu j'ai vraiment un soucis, c'est tro le bordel dans mes services, il me mettent tro d'erreurs;

déja il ne trouve pas tout mes hotes en réseau et il me met des erreurs de mot de passe NSClient, sur 50 services, j'en ai 33 en unknow soit a cause du mot de passe soit a cause de la non-disponibilitée, svp aider moi!

Azarius
9th March 2007, 17:52
pour ma part je suis sur que c'est a cause de $USER1$ mais je ne sais pas a quoi sa correspond:



[root@localhost ~]# /usr/local/nagios/libexec/check_nt -H 192.1.1.56 -p 1248 -v USEDDISKSPACE -l c -w $ARG2$ -c $ARG3$ -s None
c: - total: 3.42 Gb - used: 2.94 Gb (86%) - free 0.48 Gb (14%)
[root@localhost ~]# /usr/local/nagios/libexec/check_nt -H 192.1.1.56 -p 1248 -v USEDDISKSPACE -l c -w $ARG2$ -c $ARG3$ -s "None"
c: - total: 3.42 Gb - used: 2.94 Gb (86%) - free 0.48 Gb (14%)
[root@localhost ~]# /usr/local/nagios/libexec/check_nt -H 192.1.1.56 -p 1248 -v USEDDISKSPACE -l c -w $ARG2$ -c $ARG3$ -s /None
NSClient - ERROR:Wrong password

j'ai bien l'impression que $USER1$ représente l'utilisateur root ci-dessus, mais ou défini t'on ces $user$?

MaEsTrO
9th March 2007, 18:03
MDR

lis la doc Nagios pour commencer

et regarde du coté de resource.cfg

Azarius
9th March 2007, 18:07
ouai donc le $USER1$ est un lien vers /usr/local/nagios/libexec/ donc il es préférable de le laisser, et donc sa ne résoud pas mon problême

Azarius
9th March 2007, 18:41
j'éssaillerai bien de changer mes clients, parce que j'utilise pas les client NSClient de derniere version, j'utilise les NSClient 2.01 alors qu'il y a les NSClient ++ de sorti, mais je ne sais pas si sa changera quelque chose.


de plus, il y a une chose qui me trouble, je viens de suprimer un host que je ne voulai plus monitorer, et il es toujours dans la partie monitoring!!! alors que sa fait bien 2h qu'il est supprimé et que j'ai fait un check forcé!!!
et de plus mon monitoring indique des erreurs, et quand je fait un restart:

Nagios 2.5
Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org)
Last Modified: 07-13-2006
License: GPL

Reading configuration data...

Running pre-flight check on configuration data...

Checking services...
Checked 45 services.
Checking hosts...
Checked 11 hosts.
Checking host groups...
Checked 2 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 1 contacts.
Checking contact groups...
Checked 1 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 47 commands.
Checking time periods...
Checked 5 time periods.
Checking extended host info definitions...
Checked 11 extended host info definitions.
Checking extended service info definitions...
Checked 45 extended service info definitions.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check

miracle! tout fonctionne correctement!

Je vaut bien dire que je suis un noob, mais là ya vraiment un truc qui cloche. et je ne comprend pas quoi

Azarius
26th March 2007, 15:27
up!

je ne voit pas ce que veux dire maestro!
j'ai bien relu ma doc, mais je ne voi pas ou es le probleme, dsl a tous si je vous sort des grosses anneries mais je demande juste une main qui me montre la voie!

Merci encore de votre patience.

DonKiShoot
26th March 2007, 15:44
Assure toi de n'avoir qu'un daemon nagios de lancer à la fois.
Méfie toi si tu utilises "ps" pour vérifier, car nagios se fork.

kill tout tes process nagios et n'en démarre qu'un et regarde si les choses s'améliorent au bout d'une vingtaine de minute.

Azarius
26th March 2007, 16:01
ok, Maestro me disais de regarder a mon resource.cfg, qui ne contient que ceci:

$USER1$=/usr/local/nagios/libexec/

il n'y a que cette ligne, bon pour les process nagios; je ne sais pas trop comment les killer, je vais evidemment faire apel a mon ami google pour apprendre.
mais avant tout sous fédora core 6, quand je fait système=>Administration=>Services j'ai un processus nagios qui est listé, sur ce processus, un commentaire est indiqué "No lock file found in /usr/local/nagios/var/nagios.lock" , j'arrete donc ce processus comme tu me l'a dit.

je redémmarre nagios en faisant généré, redémmaré en déplaçant les fichier et tou, je vais attendre le temps kil faut pour lui laisser le temps de réagir.
En attendant je vais fouillé pour savoir comment lister et killer des processus.

Azarius
26th March 2007, 16:22
donc j'ai fait comme tu ma dit, mais je ne trouve pas d'autres nagios:

[root@localhost ~]# ps -edf
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 09:28 ? 00:00:01 init [5]
root 2 1 0 09:28 ? 00:00:00 [migration/0]
root 3 1 0 09:28 ? 00:00:00 [ksoftirqd/0]
root 4 1 0 09:28 ? 00:00:00 [watchdog/0]
root 5 1 0 09:28 ? 00:00:00 [events/0]
root 6 1 0 09:28 ? 00:00:00 [khelper]
root 7 1 0 09:28 ? 00:00:00 [kthread]
root 10 7 0 09:28 ? 00:00:00 [kblockd/0]
root 11 7 0 09:28 ? 00:00:00 [kacpid]
root 79 7 0 09:28 ? 00:00:00 [cqueue/0]
root 82 7 0 09:28 ? 00:00:00 [khubd]
root 84 7 0 09:28 ? 00:00:00 [kseriod]
root 136 7 0 09:28 ? 00:00:00 [pdflush]
root 137 7 0 09:28 ? 00:00:00 [pdflush]
root 138 7 0 09:28 ? 00:00:03 [kswapd0]
root 139 7 0 09:28 ? 00:00:00 [aio/0]
root 295 7 0 09:28 ? 00:00:00 [kpsmoused]
root 316 7 0 09:28 ? 00:00:00 [kmirrord]
root 323 7 0 09:28 ? 00:00:01 [kjournald]
root 344 7 0 09:28 ? 00:00:00 [kauditd]
root 371 1 0 09:28 ? 00:00:00 /sbin/udevd -d
root 1220 7 0 09:29 ? 00:00:00 [kmpathd/0]
root 1243 7 0 09:29 ? 00:00:00 [kjournald]
root 1650 1 0 09:29 ? 00:00:00 /sbin/dhclient -1 -q -lf /var/li
root 1732 1 0 09:29 ? 00:00:00 syslogd -m 0
root 1735 1 0 09:29 ? 00:00:00 klogd -x
rpc 1763 1 0 09:29 ? 00:00:00 portmap
root 1782 1 0 09:29 ? 00:00:00 rpc.statd
root 1811 1 0 09:29 ? 00:00:00 rpc.idmapd
dbus 1825 1 0 09:29 ? 00:00:15 dbus-daemon --system
root 1834 1 0 09:29 ? 00:00:00 hcid: processing events
root 1845 1 0 09:29 ? 00:00:00 /usr/sbin/sdpd
root 1858 1 0 09:29 ? 00:00:00 [krfcommd]
root 1893 1 0 09:29 ? 00:00:01 pcscd
root 1910 1 0 09:29 ? 00:00:00 /usr/bin/hidd --server
root 1928 1 0 09:29 ? 00:00:00 automount
root 1945 1 0 09:29 ? 00:00:00 /usr/sbin/acpid
root 1954 1 0 09:29 ? 00:00:00 ./hpiod
root 1959 1 0 09:29 ? 00:00:00 python ./hpssd.py
root 1970 1 0 09:29 ? 00:00:00 /usr/sbin/snmpd -Lsd -Lf /dev/nu
root 1979 1 0 09:29 ? 00:00:00 cupsd
root 1988 1 0 09:29 ? 00:00:00 /usr/sbin/sshd
root 2049 1 0 09:29 ? 00:00:00 /bin/sh /usr/bin/mysqld_safe --d
mysql 2085 2049 0 09:29 ? 00:00:34 /usr/libexec/mysqld --defaults-f
postgres 2155 1 0 09:29 ? 00:00:00 /usr/bin/postmaster -p 5432 -D /
postgres 2157 2155 0 09:29 ? 00:00:00 postgres: logger process
postgres 2167 2155 0 09:29 ? 00:00:00 postgres: writer process
postgres 2168 2155 0 09:29 ? 00:00:00 postgres: stats buffer process
postgres 2169 2168 0 09:29 ? 00:00:00 postgres: stats collector proces
root 2181 1 0 09:29 ? 00:00:00 sendmail: accepting connections
smmsp 2189 1 0 09:29 ? 00:00:00 sendmail: Queue runner@01:00:00
root 2199 1 0 09:29 ? 00:00:00 gpm -m /dev/input/mice -t exps2
root 2209 1 0 09:29 ? 00:00:00 /usr/sbin/httpd
root 2218 1 0 09:29 ? 00:00:00 crond
apache 2238 2209 0 09:29 ? 00:00:12 /usr/sbin/httpd
apache 2239 2209 0 09:29 ? 00:00:18 /usr/sbin/httpd
apache 2240 2209 0 09:29 ? 00:00:15 /usr/sbin/httpd
apache 2241 2209 0 09:29 ? 00:00:11 /usr/sbin/httpd
apache 2242 2209 0 09:29 ? 00:00:12 /usr/sbin/httpd
apache 2243 2209 0 09:29 ? 00:00:12 /usr/sbin/httpd
apache 2244 2209 0 09:29 ? 00:00:13 /usr/sbin/httpd
apache 2245 2209 0 09:29 ? 00:00:09 /usr/sbin/httpd
xfs 2257 1 0 09:29 ? 00:00:00 xfs -droppriv -daemon
root 2282 1 0 09:29 ? 00:00:00 /usr/sbin/atd
root 2296 1 69 09:29 ? 03:59:17 /usr/bin/python /usr/sbin/yum-up
avahi 2306 1 0 09:29 ? 00:00:00 avahi-daemon: running [localhost
avahi 2307 2306 0 09:29 ? 00:00:00 avahi-daemon: chroot helper proc
68 2316 1 0 09:29 ? 00:00:06 hald
root 2317 2316 0 09:29 ? 00:00:00 hald-runner
68 2323 2317 0 09:29 ? 00:00:00 hald-addon-acpi: listening on ac
68 2330 2317 0 09:29 ? 00:00:00 hald-addon-keyboard: listening o
root 2340 2317 0 09:29 ? 00:00:01 hald-addon-storage: polling /dev
root 2414 1 0 09:29 ? 00:00:00 /usr/sbin/smartd -q never
root 2419 1 0 09:29 ? 00:00:00 login -- root
root 2420 1 0 09:29 tty2 00:00:00 /sbin/mingetty tty2
root 2421 1 0 09:29 tty3 00:00:00 /sbin/mingetty tty3
root 2422 1 0 09:29 tty4 00:00:00 /sbin/mingetty tty4
root 2423 1 0 09:29 tty5 00:00:00 /sbin/mingetty tty5
root 2424 1 0 09:29 tty6 00:00:00 /sbin/mingetty tty6
root 2425 1 0 09:29 ? 00:00:00 /bin/sh /etc/X11/prefdm -nodaemo
root 2488 2425 0 09:29 ? 00:00:00 /usr/sbin/gdm-binary -nodaemon
root 2515 2488 0 09:29 ? 00:00:00 /usr/sbin/gdm-binary -nodaemon
root 2519 1 0 09:29 ? 00:00:00 /usr/sbin/gdm-binary -nodaemon
root 2522 2515 7 09:29 tty7 00:25:43 /usr/bin/Xorg :0 -audit 0 -auth
root 2556 2419 0 09:30 tty1 00:00:00 -bash
root 2608 2515 0 09:31 ? 00:00:00 /usr/bin/gnome-session
root 2660 2608 0 09:31 ? 00:00:00 /usr/bin/ssh-agent /usr/bin/dbus
root 2663 1 0 09:31 ? 00:00:00 /usr/bin/dbus-launch --exit-with
root 2664 1 0 09:31 ? 00:00:07 /bin/dbus-daemon --fork --print-
root 2670 1 0 09:31 ? 00:00:02 /usr/libexec/gconfd-2 5
root 2673 1 0 09:31 ? 00:00:00 /usr/bin/gnome-keyring-daemon
root 2675 1 0 09:31 ? 00:00:10 /usr/libexec/gnome-settings-daem
root 2692 1 0 09:31 ? 00:00:00 /usr/libexec/gnome-user-share
root 2694 1 0 09:31 ? 00:00:00 /usr/libexec/bonobo-activation-s
root 2699 1 0 09:31 ? 00:00:05 gnome-power-manager
root 2703 1 0 09:31 ? 00:01:26 metacity --sm-client-id=default1
root 2705 1 0 09:31 ? 00:00:00 /usr/libexec/vino-server --oaf-a
root 2709 1 0 09:31 ? 00:00:18 gnome-panel --sm-client-id defau
root 2711 1 0 09:31 ? 00:00:27 nautilus --no-default-window --s
root 2717 1 0 09:31 ? 00:00:00 eggcups --sm-client-id default4
root 2721 1 0 09:31 ? 00:00:00 bluez-pin --dbus
root 2728 1 0 09:31 ? 00:00:00 /usr/libexec/gnome-vfs-daemon
root 2730 1 0 09:31 ? 00:00:00 /usr/bin/python -tt /usr/bin/pup
root 2745 1 0 09:31 ? 00:00:00 /usr/libexec/gweather-applet-2 -
root 2748 1 0 09:31 ? 00:01:14 /usr/libexec/wnck-applet --oaf-a
root 2749 1 0 09:31 ? 00:00:08 /usr/libexec/stickynotes_applet
root 2751 1 0 09:31 ? 00:00:00 /usr/libexec/trashapplet --oaf-a
root 2753 1 0 09:31 ? 00:00:00 python /usr/libexec/invest-apple
root 2757 1 0 09:31 ? 00:00:09 beagled /usr/lib/beagle/BeagleDa
root 2760 1 0 09:31 ? 00:00:00 nm-applet --sm-disable
root 2761 1 0 09:31 ? 00:00:00 ./escd --key_Inserted="/usr/bin/
root 2762 2761 0 09:31 ? 00:00:00 [netstat] <defunct>
root 2768 1 0 09:31 ? 00:00:00 pam-panel-icon --sm-client-id de
root 2775 2768 0 09:31 ? 00:00:00 /sbin/pam_timestamp_check -d roo
root 2787 1 0 09:31 ? 00:00:00 /usr/libexec/mapping-daemon
root 2796 1 0 09:31 ? 00:00:00 /usr/libexec/gam_server
root 2803 1 0 09:31 ? 00:00:00 /usr/libexec/notification-area-a
root 2805 1 0 09:31 ? 00:00:00 /usr/libexec/clock-applet --oaf-
root 2807 1 0 09:31 ? 00:00:01 /usr/libexec/mixer_applet2 --oaf
root 2824 1 0 09:32 ? 00:00:14 gnome-screensaver
root 2843 1 0 09:33 ? 00:00:00 /usr/libexec/evolution-data-serv
root 2872 1 0 09:34 ? 00:00:00 /bin/sh /usr/lib/firefox-1.5.0.7
root 2882 2872 0 09:34 ? 00:00:00 /bin/sh /usr/lib/firefox-1.5.0.7
root 2887 2882 19 09:34 ? 01:07:46 /usr/lib/firefox-1.5.0.7/firefox
root 3644 1 0 10:47 ? 00:00:16 gedit file:///usr/local/nagios/e
root 4037 1 0 11:26 ? 00:00:04 file-roller /root/Desktop/nagios
root 5157 1 1 13:45 ? 00:00:56 gaim
root 5891 1 0 14:52 ? 00:00:00 /usr/bin/system-config-services
root 5892 5891 0 14:52 ? 00:00:00 /usr/sbin/userhelper -w system-c
root 5895 5892 0 14:52 ? 00:00:03 /usr/bin/python /usr/sbin/system
root 6113 1 0 15:05 ? 00:00:04 gnome-terminal
root 6116 6113 0 15:05 ? 00:00:00 gnome-pty-helper
root 6117 6113 0 15:05 pts/1 00:00:00 bash
root 6243 6117 0 15:16 pts/1 00:00:00 ps -edf


par contre les 5 process postmaster et les 9 httpd m'intrigue, est ce normal?
Est ce que je peu les supprimer en toute sécurité? et comment?

Azarius
26th March 2007, 17:01
bon j'ai essaillé de killer mes process httpd et de les relancer :

[root@localhost ~]# killall -e httpd

et je les ai relancer via mon gestionnaire de service fedora dont je parlais précédemment
mais il en lance toujours (8 au lieu de 9 précédemment)
Qu'en pensser vous? mauvaise piste?

apache 7293 7277 0 15:58 ? 00:00:00 /usr/sbin/httpd
apache 7294 7277 0 15:58 ? 00:00:00 /usr/sbin/httpd
apache 7295 7277 0 15:58 ? 00:00:00 /usr/sbin/httpd
apache 7296 7277 0 15:58 ? 00:00:00 /usr/sbin/httpd
apache 7297 7277 0 15:58 ? 00:00:00 /usr/sbin/httpd
apache 7298 7277 0 15:58 ? 00:00:00 /usr/sbin/httpd
apache 7299 7277 0 15:58 ? 00:00:00 /usr/sbin/httpd
apache 7300 7277 0 15:58 ? 00:00:00 /usr/sbin/httpd
root 7304 6117 0 15:58 pts/1 00:00:00 ps -edf

Azarius
26th March 2007, 17:15
bon je suis peut etre sur une piste, j'ai remarquer l'absence de process nagios, et comme dans mon gestionnaire de service sur le service nagios on me dit:

No lock file found in /usr/local/nagios/var/nagios.lock

j'ai donc chercher a retrouver le nagios.lock:

[root@localhost ~]# locate nagios.lock
/root/Desktop/Oreon-Nagios/Fichiers d'installations/Nagios/var/nagios.lock
/usr/local/nagios/var/nagios.lock <==ICI

donc il faudrai juste que je sache si le nagios.lock est là pour savoir le statut du process ou bien pour LANCER le processus! ce qui m'expliquerai qu'il n'y a pas de process nagios...

de plus , il n'y a aucun fichier /usr/local/nagios/var/nagios.lock comme l'indique le gestionnaire de service (cela voudrai dire que la commande locate ce trompe????)

ceci revien a un problême d'une autre personne cf: http://www.mail-archive.com/nagios-french@lists.unixtech.be/msg00179.html

j'ai donc une illumination!!!
LES DROITS!!
je reverifie les droit sur le dossier /usr/local/nagios/var et j'autorise donc l'accés

je redémmarre le service dans mon gestionnaire et il me met:

PID TTY TIME CMD
8534 ? 00:00:00 nagios

genial!!

en vérifiant a l'aide de la commande ps -edf:
nagios 8534 1 0 16:57 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg


bon merveilleux! j'arrive a voir mes hosts et services dans l'acceuil et le monitoring.

MaEsTrO
26th March 2007, 17:51
Le fichier /machin/truc/foo/bar/nagios.lock contient le PID du process nagios, ce fichier est utilisé lors de l'invocation du script /etc/init.d/nagios par exemple ou par toute autre application cherchant à "killer" Nagios proprement. Quand Nagios démarre, son PID est stocké dans ce fichier, quand Nagios s'arrete, ce fichier est lu pour récupérer le PID et killer le process

peut-etre devrais tu taper

# killall nagios
# /etc/init.d/nagios start

Azarius
26th March 2007, 18:09
[root@localhost ~]# killall nagios
[root@localhost ~]# /etc/init.d/nagios start
Starting network monitor: nagios
This account is currently not available.

MaEsTrO
26th March 2007, 18:34
Un probleme d'utilisateur sans doute, regarde du coté de nagios.cfg (via oreon) sous quel user et quel groupe tourne nagios.

Azarius
27th March 2007, 10:07
Un probleme d'utilisateur sans doute, regarde du coté de nagios.cfg (via oreon) sous quel user et quel groupe tourne nagios.

l'utilisateur est nagios et le groupe nagios, je le modifie en root root pour test.

donc:

[root@localhost ~]# killall nagios
You have new mail in /var/spool/mail/root
[root@localhost ~]# killall nagios
nagios: aucun processus tué
[root@localhost ~]# /etc/init.d/nagios start
Starting network monitor: nagios
This account is currently not available.


un mail m'a été envoyé???
je vérifie et tombe la dessus:

################### Logwatch 7.3 (03/24/06) ####################
Processing Initiated: Tue Mar 27 04:02:14 2007
Date Range Processed: yesterday
( 2007-Mar-26 )
Period is day.
Detail Level of Output: 0
Type of Output: unformatted
Logfiles for Host: localhost.localdomain
################################################## ################

--------------------- Selinux Audit Begin ------------------------

**Unmatched Entries**
audit(1174894124.692:2): selinux=0 auid=4294967295

---------------------- Selinux Audit End -------------------------


--------------------- Automount Begin ------------------------


**Unmatched Entries**
lookup_read_master: lookup(nisplus): couldn't locat nis+ table auto.master: 1 Time(s)

---------------------- Automount End -------------------------


--------------------- httpd Begin ------------------------


Requests with error response codes
404 Not Found
/oreon/Themes//Images/footer/button-donate.gif: 22 Time(s)
/oreon/Themes//Images/footer/button-gpl.gif: 22 Time(s)
/oreon/Themes//Images/footer/button-php.gif: 22 Time(s)
/oreon/Themes//Images/footer/colophon_css.png: 22 Time(s)
/oreon/Themes//Images/logo_oreon.gif: 22 Time(s)
/oreon/Themes//color1.css: 1 Time(s)
/oreon/Themes//color5.css: 6 Time(s)
/oreon/Themes//color6.css: 14 Time(s)
/oreon/Themes//configuration_form.css: 21 Time(s)
/oreon/Themes//login.css: 2 Time(s)
/oreon/Themes//menu.css: 21 Time(s)
/oreon/Themes//style.css: 21 Time(s)

---------------------- httpd End -------------------------


--------------------- pam_unix Begin ------------------------

login:
Authentication Failures:
nagios (): 1 Time(s)

runuser:
Unknown Entries:
session closed for user beaglidx: 2 Time(s)
session opened for user beaglidx by (uid=0): 2 Time(s)

runuser-l:
Unknown Entries:
session closed for user postgres: 2 Time(s)
session opened for user postgres by (uid=0): 2 Time(s)

su-l:
Unknown Entries:
session closed for user nagios: 3 Time(s)
session opened for user nagios by root(uid=0): 2 Time(s)
session opened for user nagios by (uid=0): 1 Time(s)


---------------------- pam_unix End -------------------------


--------------------- Connections (secure-log) Begin ------------------------


Failed logins:
User nagios:
(null): 1 Time(s)

Root logins on tty's: 1 Time(s).

Userhelper executed applications:
root -> system-config-services as root: 2 Time(s)

---------------------- Connections (secure-log) End -------------------------


--------------------- SSHD Begin ------------------------


SSHD Killed: 1 Time(s)

SSHD Started: 1 Time(s)

---------------------- SSHD End -------------------------


--------------------- Disk Space Begin ------------------------

Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
18G 3.5G 14G 21% /
/dev/hda1 99M 11M 84M 12% /boot


---------------------- Disk Space End -------------------------


###################### Logwatch End #########################



je ne sais pas si c'est utile mais au cas ou vous vérriez quelques chose de flagrant! moi en tout cas j'ai rien vu.... a part qu'il manque la table nis+ et quelques images... et aussi qu'il a éssaillé de ce loguer en root mais n'a pas réussi.

par contre j'ai mes stat dans le monitoring mais pas dans la page d'acceuil

Azarius
27th March 2007, 16:28
par contre je n'ai toujours pas de réponse a ma question principale:

Comment ce fait-il que j'ai dans la génération de Oreon (quand je fait configurer nagios redémmarré) je n'ai pas la même chose que dans mes statut du monitoring?

Je m'explique:

-Dans le montiroring, j'ai donc dans les hotes: 9 OK et 2 en DOWN ;
et dans mes services, j'ai: 18 OK , 7 CRITIQUE et 20 INCONNU.

-Pourtant quand je génère ma configuration, j'ai ceci:

Checking services...
Checked 45 services.
Checking hosts...
Checked 11 hosts.
Checking host groups...
Checked 2 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 1 contacts.
Checking contact groups...
Checked 1 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 47 commands.
Checking time periods...
Checked 5 time periods.
Checking extended host info definitions...
Checked 11 extended host info definitions.
Checking extended service info definitions...
Checked 45 extended service info definitions.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 0


Comment sa ce fait????

DonKiShoot
27th March 2007, 20:55
il est ou le problème ? lol

julien60
28th March 2007, 09:22
pas compris non plus on voit bien 11 hosts et 45 services la ^^

dimp
28th March 2007, 09:38
bonjour, j'ai installé nagios 2.7 avec oreon 1.3.3 tou sa marche bien mais je n'arrive pas a configuré perfparse. J'ai installé nagios a partir d'un RPM. Est-ce possible et comment faire?

Azarius
28th March 2007, 10:28
ouvré les yeux!!

"Total Warnings: 0
Total Errors: 0"

alors que j'ai trop d'erreurs dans monitoring!

ma question : Comment ce fait-il que j'ai dans la génération de Oreon (quand je fait configurer nagios redémmarré) je n'ai pas la même chose que dans mes statut du monitoring?


au passage dimp, tu es sur un post ! pas le forum! ^^

julien60
28th March 2007, 10:34
ça n'a rien n'a voir...
Lorsque tu recharge nagios il t'indique si des erreurs existent au niveau de la configuration, il ne te renseigne pas l'état de tes hosts et services.
En gros au niveau de ta configuration ça fonctionne, bien que tes plugins soient peut être mal configurés. Essaies de taper tes commandes à la main pour voir ce qu'elle te renvoient.

DonKiShoot
28th March 2007, 10:45
ouvré les yeux!!

"Total Warnings: 0
Total Errors: 0"

alors que j'ai trop d'erreurs dans monitoring!


PTDR !!!!!!

On ne me l'avait pas encore fait celle là !

Azarius
28th March 2007, 10:45
dsl! sur l'ancien oreon sa l'indiquais pas??? il me semble pourtant.... c pour ça que j'ai trouver sa louche.

julien60
28th March 2007, 10:47
c'est pas gentil de se moquer lol 8-)

Azarius
28th March 2007, 16:41
je suis sincèrement désolé! bon mon problême est donc résolu, enfin celui là en tout cas, je réouvre un autre sujet pour un soucis d'autant plus grave....