Announcement
Collapse
No announcement yet.
nagios avec config Oreon
Collapse
X
-
Well,
I have tried it and it works! Thanks a lot, spoon...
Un saludo,
Pablo
Leave a comment:
-
But I do not understand what is the relation of that with my init.d script...
Un saludo,
Pablo
Leave a comment:
-
Hi,
the following text is from this thread http://forum.oreon-project.org/archi...hp/t-3446.html and apparently solved the problem:
Code:Edit /oreon_path/www/include/configuration/configCGI/formCGI.ihtml look for: {if $nagios == 1} <tr class="list_one"><td class="FormRowField">{$form.nagios_check_command.label}</td><td class="FormRowValue">{$form.nagios_check_command.html}</td></tr> {/if} and replace the 3 lines by this one only: <tr class="list_one"><td class="FormRowField">{$form.nagios_check_command.label}</td><td class="FormRowValue">{$form.nagios_check_command.html}</td></tr> Then edit: /oreon_path/www/include/configuration/configCGI/formCGI.php look for: if ($oreon->user->get_version() == 1) an delete this line. restart apache /etc/init.d/apachexxx restart (adapt to your distro)
Leave a comment:
-
Same problem
Please,
I am having the same problem:
# /etc/init.d/nagios2 reload
Reloading nagios2 monitoring daemon configuration files: nagios2/etc/init.d/nagios2: line 60: /var/cache/nagios2/: is a directory
but I do not understand French, so I do not know if this thread has solved the problem. Somebody could help me?
Un saludo,
Pablo
Leave a comment:
-
pb config nagios-centreon
bonjour,
j'ai reinstallé Etch4.0 puis nagios/centreon ( avec la procedure du site wiki);
et la tout est OK;
Je pense que dans la procédure , il manque l'article concernant le password d'accès à Nagios;
Je vais reinstaller , sur l'autre machine qui me pose pb, on verra bien, car je ne comprends pas ce qui se passe sur celle-ci !!!!!
a+
Leave a comment:
-
pb config nagios/centreon
bonjour,
demarrage de nagios:
debian-dmz:/home/reseau# /etc/init.d/nagios2 start
Starting nagios2 monitoring daemon: nagios2/etc/init.d/nagios2: line 60: /var/cache/nagios2/status.dat: Aucun fichier ou répertoire de ce type
named pipe exists - removing.
voila pour le syslog:
debian-dmz:/home/reseau# tail -f /var/log/syslog
Oct 12 14:25:01 debian-dmz /USR/SBIN/CRON[1516]: (nagios) CMD (/usr/local/oreon/cron/parsing_log.pl >> /usr/local/oreon/log/ods_parsing_log 2>> /usr/local/oreon/log/ods_parsing_log)
Oct 12 14:25:01 debian-dmz /USR/SBIN/CRON[1517]: (nagios) CMD (/usr/local/oreon/cron/parsing_status.pl >> /usr/local/oreon/log/ods_parsing_status 2>> /usr/local/oreon/log/ods_parsing_status)
Oct 12 14:26:01 debian-dmz /USR/SBIN/CRON[1523]: (nagios) CMD (/usr/local/oreon/cron/parsing_log.pl >> /usr/local/oreon/log/ods_parsing_log 2>> /usr/local/oreon/log/ods_parsing_log)
Oct 12 14:26:01 debian-dmz /USR/SBIN/CRON[1524]: (nagios) CMD (/usr/local/oreon/cron/parsing_status.pl >> /usr/local/oreon/log/ods_parsing_status 2>> /usr/local/oreon/log/ods_parsing_status)
Oct 12 14:27:01 debian-dmz /USR/SBIN/CRON[1553]: (nagios) CMD (/usr/local/oreon/cron/parsing_log.pl >> /usr/local/oreon/log/ods_parsing_log 2>> /usr/local/oreon/log/ods_parsing_log)
Oct 12 14:27:01 debian-dmz /USR/SBIN/CRON[1554]: (nagios) CMD (/usr/local/oreon/cron/parsing_status.pl >> /usr/local/oreon/log/ods_parsing_status 2>> /usr/local/oreon/log/ods_parsing_status)
Oct 12 14:28:01 debian-dmz /USR/SBIN/CRON[1582]: (nagios) CMD (/usr/local/oreon/cron/parsing_log.pl >> /usr/local/oreon/log/ods_parsing_log 2>> /usr/local/oreon/log/ods_parsing_log)
Oct 12 14:28:01 debian-dmz /USR/SBIN/CRON[1584]: (nagios) CMD (/usr/local/oreon/cron/parsing_status.pl >> /usr/local/oreon/log/ods_parsing_status 2>> /usr/local/oreon/log/ods_parsing_status)
Oct 12 14:29:02 debian-dmz /USR/SBIN/CRON[1636]: (nagios) CMD (/usr/local/oreon/cron/parsing_log.pl >> /usr/local/oreon/log/ods_parsing_log 2>> /usr/local/oreon/log/ods_parsing_log)
Oct 12 14:29:02 debian-dmz /USR/SBIN/CRON[1638]: (nagios) CMD (/usr/local/oreon/cron/parsing_status.pl >> /usr/local/oreon/log/ods_parsing_status 2>> /usr/local/oreon/log/ods_parsing_status)
Oct 12 14:30:01 debian-dmz /USR/SBIN/CRON[1695]: (nagios) CMD (/usr/local/oreon/cron/parsing_log.pl >> /usr/local/oreon/log/ods_parsing_log 2>> /usr/local/oreon/log/ods_parsing_log)
Oct 12 14:30:01 debian-dmz /USR/SBIN/CRON[1697]: (nagios) CMD (/usr/local/oreon/cron/parsing_status.pl >> /usr/local/oreon/log/ods_parsing_status 2>> /usr/local/oreon/log/ods_parsing_status)
Oct 12 14:31:01 debian-dmz /USR/SBIN/CRON[1773]: (nagios) CMD (/usr/local/oreon/cron/parsing_log.pl >> /usr/local/oreon/log/ods_parsing_log 2>> /usr/local/oreon/log/ods_parsing_log)
Oct 12 14:31:01 debian-dmz /USR/SBIN/CRON[1775]: (nagios) CMD (/usr/local/oreon/cron/parsing_status.pl >> /usr/local/oreon/log/ods_parsing_status 2>> /usr/local/oreon/log/ods_parsing_status)
pour le message:
debian-dmz:/home/reseau# tail -f /var/log/messages
Oct 12 11:17:02 debian-dmz -- MARK --
Oct 12 11:37:03 debian-dmz -- MARK --
Oct 12 11:57:03 debian-dmz -- MARK --
Oct 12 12:17:03 debian-dmz -- MARK --
Oct 12 12:37:03 debian-dmz -- MARK --
Oct 12 12:57:04 debian-dmz -- MARK --
Oct 12 13:17:04 debian-dmz -- MARK --
Oct 12 13:37:04 debian-dmz -- MARK --
Oct 12 13:57:04 debian-dmz -- MARK --
Oct 12 14:17:05 debian-dmz -- MARK --
pour le nagios.log:
debian-dmz:/home/reseau# tail -f /var/log/nagios2/nagios.log
[1192192386] Warning: Attempting to execute the command "/usr/lib/nagios/plugins//check_cisco -H 192.168.0.100 -c -i -s" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
[1192192386] Warning: Attempting to execute the command "/usr/lib/nagios/plugins//check_cisco -H 192.168.0.100 -c -i -s" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
[1192192386] Warning: Attempting to execute the command "/usr/lib/nagios/plugins//check_cisco -H 192.168.0.100 -c -i -s" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
[1192192386] Warning: Attempting to execute the command "/usr/lib/nagios/plugins//check_cisco -H 192.168.0.100 -c -i -s" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
[1192192386] Warning: Attempting to execute the command "/usr/lib/nagios/plugins//check_cisco -H 192.168.0.100 -c -i -s" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
[1192192386] Warning: Attempting to execute the command "/usr/lib/nagios/plugins//check_cisco -H 192.168.0.100 -c -i -s" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
[1192192386] Warning: Attempting to execute the command "/usr/lib/nagios/plugins//check_cisco -H 192.168.0.100 -c -i -s" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
[1192192386] SERVICE ALERT: switch-dmz;switch-dmz;OK;HARD;1;PING OK - Paquets perdus = 0%, RTA = 1.44 ms
[1192192396] HOST ALERT: NAGIOS;UP;HARD;1;PING OK - Paquets perdus = 0%, RTA = 0.09 ms
[1192192406] SERVICE ALERT: Fedora;switch-dmz;OK;HARD;1;PING OK - Paquets perdus = 0%, RTA = 0.15 ms
[1192192426] HOST ALERT: IPCOP;UP;HARD;1;PING OK - Paquets perdus = 0%, RTA = 0.30 ms
[1192192426] Warning: Attempting to execute the command "/usr/lib/nagios/plugins//check_cisco -H 192.168.0.100 -c -i -s" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
[1192192426] Warning: Attempting to execute the command "/usr/lib/nagios/plugins//check_cisco -H 192.168.0.100 -c -i -s" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
[1192192427] Warning: Attempting to execute the command "/usr/lib/nagios/plugins//check_cisco -H 192.168.0.100 -c -i -s" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
[1192192427] Warning: Attempting to execute the command "/usr/lib/nagios/plugins//check_cisco -H 192.168.0.100 -c -i -s" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
[1192192427] Warning: Attempting to execute the command "/usr/lib/nagios/plugins//check_cisco -H 192.168.0.100 -c -i -s" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
[1192192427] Warning: Attempting to execute the command "/usr/lib/nagios/plugins//check_cisco -H 192.168.0.100 -c -i -s" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
[1192192427] Warning: Attempting to execute the command "/usr/lib/nagios/plugins//check_cisco -H 192.168.0.100 -c -i -s" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
[1192192427] Warning: Attempting to execute the command "/usr/lib/nagios/plugins//check_cisco -H 192.168.0.100 -c -i -s" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
[1192192427] Warning: Attempting to execute the command "/usr/lib/nagios/plugins//check_cisco -H 192.168.0.100 -c -i -s" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
[1192192427] Warning: Attempting to execute the command "/usr/lib/nagios/plugins//check_cisco -H 192.168.0.100 -c -i -s" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
"Attention , j'ai un pb de config check_snmp" .
voila.....
a+
Leave a comment:
-
Ok alors la honnetement je ne vois pas ton pb ...
On va faire un truc ...
Code:killall nagios2 rm /var/run/nagios2.pid mv /var/log/nagios2/nagios.log /var/log/nagios2/nagios.sav sur tty2 : tail -f /var/log/syslog sur tty3 : tail -f /var/log/messages sur tty4 : tail -f /var/log/nagios2/nagios.log /etc/init.d/nagios2 start
dsl ...
Merci
Leave a comment:
-
pb config nagios-centreon
bonjour,
voila pour la ligne 60
51 accept_passive_service_checks=1
52 enable_event_handlers=1
53 log_rotation_method=d
54 log_archive_path=/var/log/nagios2/archives/
55 check_external_commands=1
56 command_check_interval=1s
57 command_file=/var/lib/nagios2/rw/nagios.cmd
58 downtime_file=/var/lib/nagios2/downtime.dat
59 comment_file=/var/lib/nagios2/comments.dat
60 lock_file=/var/run/nagios2/nagios2.pid
61 retain_state_information=1
62 state_retention_file=/var/lib/nagios2/retention.dat
63 retention_update_interval=60
64 use_retained_program_state=1
65 use_syslog=0
66 log_notifications=1
67 log_service_retries=1
68 log_host_retries=1
69 log_event_handlers=1
70 log_initial_states=1
71 log_external_commands=1
72 sleep_time=1
73 service_interleave_factor=s
74 max_concurrent_checks=20
75 service_reaper_frequency=10
76 interval_length=60
77 use_agressive_host_checking=1
78 enable_flap_detection=0
79 low_service_flap_threshold=25.0
Par contre , je coche bien la case reload lorsque je fais export config!!!!
a+
Leave a comment:
-
La je seche un peu je t'avouearais !
Alors deja nagios2 a l'air de tourner, malgré l'erreur il est lance et fais bien les test demander (enfin je pense vu les check_ping).
Ensuite heu centreon je crois que tu as une case quand tu modifie les fichier de comf y'a marquer exporter et aussi redemarrer ou recharger. (restart, reload).
Donc si tu lui donne une de ses cases, oui il fais en somme un /etc/init.d/nagios2 reload ou restart.
Ensuite stp pourrais tu me coller un bloc de ligne centrer sur la 60 eme du fichier nagios.cfg stp.
Merci
Leave a comment:
-
pb config de nagios avec centreon
re,re et rebonjour,
juste une remarque qui est peut-être bête, comme mes modifs sont prises en compte maintenant après que je fasse /etc/init.d/nagios2 reload "malgré l'erreur => Reloading nagios2 monitoring daemon configuration files: nagios2/etc/init.d/nagios2: line 60: /var/cache/nagios2/status.dat: Aucun fichier ou répertoire de ce type"
Que fait le script ou Centreon sur Nagios ? effectue t-il la meme chose qu'avec un /etc/init.d/nagios2 reload?
merci
a+
Leave a comment:
-
conf nagios
re
juste un truc sur les deux fichiers " statut.dat et Nagios2.pid"
lorsque que je fais /etc/init.d/nagios2 stop
ces 2 fichiers disparaissent..
par contre lorsque Nagios est demarré ils reviennent mais je ne peux changer les droits de statut.dat.
et j'ai toujours la meme erreur
debian-dmz:/var/run/nagios2# /etc/init.d/nagios2 start
Starting nagios2 monitoring daemon: nagios2/etc/init.d/nagios2: line 60: /var/cache/nagios2/status.dat: Aucun fichier ou répertoire de ce type
ci-joint réponse du grep
debian-dmz:/var/cache/nagios2# ps aux | grep nagios2
root 10252 0.0 0.3 2772 504 pts/2 S+ 09:52 0:00 tail -f /var/log/nagios2/nagios.log
nagios 21570 0.0 1.1 21912 1516 ? SNsl 16:43 0:00 /usr/sbin/nagios2 -d /etc/nagios2/nagios.cfg
root 21937 0.0 0.5 2876 752 pts/0 R+ 16:56 0:00 grep nagios2
debian-dmz:/var/cache/nagios2#
a=+
Leave a comment:
-
conf nagios
re,
voila les droits sur staut.dat
debian-dmz:/var/cache/nagios2# ls -ail
total 44
2107456 drwxr-s--- 2 nagios www-data 4096 2007-10-05 09:52 .
1991046 drwxr-xr-x 14 root root 4096 2007-09-12 19:52 ..
2107488 -rw-r--r-- 1 nagios www-data 27089 2007-09-21 17:58 objects.cache.old
2008692 -rw-rw-r-- 1 nagios nagios 7095 2007-10-05 16:11 statut.dat
debian-dmz:/var/cache/nagios2#
voila dans un 1er temps.
merci
Leave a comment:
-
regarde aussi tres en detail au noiveau de ton nagios2.pid, car le probleme apparement vient de la.
Regarde les perimissions, regarde s'il tourne(ps aux), s'il tourne arretre le proprement, puis regarde ce qu'il en est de son fichier .pid, si tu est sur qu'il ne tourne pas renome ton .pid, et relance le avec la commande restart, si restart te jete essaye alors start.
mais penche toi de se coté je pense.
Leave a comment:
-
Salut alors je pense deja regarde du coté de
Code:/var/cache/nagios2/status.dat
Code:/etc/init.d/nagios2 start
Code:ps aux | grep nagios2 si cela ne renvoie rien regarde bien la liste voir si nagios2 tourne, car peut etre que mon grep n'est pas juste adapte un peu !
si nagios2 tourne tu le kill
Code:killall nagios2 ou kill -9 PID
Code:mv nagios2.pid nagios2.pid.sav /etc/init.d/nagios2 start
Code:touch status.dat chown nagios:nagios status.dat chmod 775 status.dat
Courage tjrs courage
Leave a comment:
Leave a comment: