Re: Nagios nsca
Megvan a hiba. A debug szintet -1-re állítottam és a logban látszódott, hogy csak a send_nsca.cfg konfig fájl jogosultsága rossz volt (rw---). Beállítottam és szuperul megy. :) G. _ linux lista - linux@mlf.linux.rulez.org http://mlf2.linux.rulez.org/mailman/listinfo/linux
Re: Nagios nsca
Sziasztok! Egy kicsit elkanyarodva az adott kerdestol, de javaslonam a check_mk nevezetu kivalo frontendet, alkalmazast, amely a Nagiosra epul viszont a klinese megjelenese illetve a funkcionalitasa sokkal jobb. -szerintem- A hagyomanyos nagios pluginok is hozzailleszthetok csak itt mrpe a neve nem nrpe. _ linux lista - linux@mlf.linux.rulez.org http://mlf2.linux.rulez.org/mailman/listinfo/linux
Re: Nagios nsca
Hi! Már működni látszik a dolog, egy dolgot kivéve. Automatikusan nem küldi el a client nsca a master szervernek a check eredményét. Ha kézzel futtatom a submit_service_check.sh scriptet, akkor megérkezik. A konfig: # /etc/nagios/nagios.cfg # SLAVE obsess_over_services=1 ocsp_command=submit_service_check ocsp_timeout=5 # MASTER accept_passive_service_checks=1 passive_checks_enabled=1 # SLAVE # /etc/nagios/conf.d/commands.cfg define command { command_namesubmit_service_check command_line $USER1$/submit_service_check.sh $HOSTNAME$ '$SERVICEDESC$' $SERVICESTATEID$ '$SERVICEOUTPUT$' } A submit_service_check.sh script: #!/bin/bash /usr/bin/printf %s\t%s\t%s\t%s\n $1 $2 $3 $4 | /usr/sbin/send_nsca -H 10.10.10.116 -c /etc/nagios/send_nsca.cfg A ocsp_command=submit_service_check beállítás ellenére mintha mégsem futna le automatikusan minden check után a küldés. A logban nem látni semmit, ami a send_nsca-ra vonatkozna. Mi maradhatott ki? _ linux lista - linux@mlf.linux.rulez.org http://mlf2.linux.rulez.org/mailman/listinfo/linux
Re: Nagios nsca
mak...@freestart.hu writes: A ocsp_command=submit_service_check beállítás ellenére mintha mégsem futna le automatikusan minden check után a küldés. A logban nem látni semmit, ami a send_nsca-ra vonatkozna. Mi maradhatott ki? This command is only executed if the obsess_over_services option is enabled globally and if the obsess_over_service directive in the service definition is enabled. Esetleg az obsess_over_service? -- Feri. _ linux lista - linux@mlf.linux.rulez.org http://mlf2.linux.rulez.org/mailman/listinfo/linux
Re: Nagios nsca
Wagner Ferenc: This command is only executed if the obsess_over_services option is enabled globally and if the obsess_over_service directive in the service definition is enabled. Esetleg az obsess_over_service? A slave-en: # /etc/nagios/nagios.cfg: obsess_over_services=1 ocsp_command=submit_service_check # Generic service definition template define service{ name generic-service2; active_checks_enabled 1 ; passive_checks_enabled 1 ; parallelize_check 1 ; obsess_over_service 1 ; check_freshness 0 ; notifications_enabled 0 ; event_handler_enabled 1 ; flap_detection_enabled 1 ; process_perf_data 1 ; register 0 ; } # Service definition for http define service{ usegeneric-service2; host_name www.mysite.hu; service_description HTTP; is_volatile0; check_period24x7; max_check_attempts 3; normal_check_interval 1; retry_check_interval 5; # contact_groups admins,webmaster; notification_options w,u,c,r; notification_interval 960; notification_period 24x7; check_commandcheck_http; } define host { use linux-server; host_name www.mysite.hu; address www.mysite.hu; } # ** Szerintem be van állítva. G. _ linux lista - linux@mlf.linux.rulez.org http://mlf2.linux.rulez.org/mailman/listinfo/linux
Nagios nsca
Hi! A nagios-ban szeretném kipróbálni az nsca-t. Az nrpe-t kipróbáltam, szépen működött. Az nsca-val a távoli gépen szkriptekkel lehet check-elni? Vagy a távoli szerveren is lehet nagios? Pontosan hogyan is működik ez az nsca? G. _ linux lista - linux@mlf.linux.rulez.org http://mlf2.linux.rulez.org/mailman/listinfo/linux
Re: Nagios nsca
On Fri, Jan 18, 2013 at 06:48:17PM +0100, Makó Gábor wrote: Pontosan hogyan is működik ez az nsca? Egy leirast talalhatsz ebben a magazinban, a tobbi kerdest utana, ha ezt elolvastad :) http://www.flosszine.org/aktualis_lapszam/FLOSSzine-II_evf_03.pdf -- Udvozlettel Zsiga _ linux lista - linux@mlf.linux.rulez.org http://mlf2.linux.rulez.org/mailman/listinfo/linux