Re: Nagios nsca

2013-01-21 bef zés makgab

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

[lk] tavoli alkalmazas bind-olasa

2013-01-21 bef zés Istvan Kovacs
Sziasztok!

Adott egy gep amelynek 80as porton levo tartalmat ssh tunnellel el tudom erni 
localhoston keresztül:
Tavoli gep:80---localhost:80
#lynx http://localhost  --OK
Az megoldhato hogy a betunnelezett szolgaltatas ne csak localhoston legyen 
elerheto, hanem a belso halozatnak is szolgaltassam?

iptables Prerouting illetve xinetd -es megoldas nem segitett.
Magyaran lehet szolgaltatast tavoli ethernetre bind-oln?

Koszonettel:

Kovacs Istvan
_
linux lista  -  linux@mlf.linux.rulez.org
http://mlf2.linux.rulez.org/mailman/listinfo/linux

Re: Nagios nsca

2013-01-21 bef zés Ferenc Wagner
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: [lk] tavoli alkalmazas bind-olasa

2013-01-21 bef zés Medovarszky Zoltan
ssh -L0.0.0.0:80:celip:80 user@host

On 2013.01.21., at 16:24, Istvan Kovacs poi...@freemail.hu wrote:

 Az megoldhato hogy a betunnelezett szolgaltatas ne csak localhoston legyen 
 elerheto, hanem a belso halozatnak is szolgaltassam?

_
linux lista  -  linux@mlf.linux.rulez.org
http://mlf2.linux.rulez.org/mailman/listinfo/linux


Re: [lk] tavoli alkalmazas bind-olasa

2013-01-21 bef zés Kiss Gabor

On 01/21/2013 04:28 PM, Medovarszky Zoltan wrote:

 ssh -L0.0.0.0:80:celip:80 user@host

És alighanem
-o GatewayPorts=yes
is kell neki. Ld. ssh(1) sshd_config(5)

g
-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
_
linux lista  -  linux@mlf.linux.rulez.org
http://mlf2.linux.rulez.org/mailman/listinfo/linux


Re: [lk] tavoli alkalmazas bind-olasa

2013-01-21 bef zés Kovács Attila
2013.01.21. 16:24 keltezéssel, Istvan Kovacs írta:
 Az megoldhato hogy a betunnelezett szolgaltatas ne csak localhoston legyen 
 elerheto, hanem a belso halozatnak is szolgaltassam?

Jó öreg rinetd?

-- 
k-atti-
_
linux lista  -  linux@mlf.linux.rulez.org
http://mlf2.linux.rulez.org/mailman/listinfo/linux

Re: Nagios nsca

2013-01-21 bef zés makgab
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