NSCA checks
Kreig Dubose
KreigD at webex.com
Mon Mar 24 13:07:49 CET 2003
Ok.. I've been beating my head here. I can't figure out why I can't see any
report or record of this check anywhere. Hopefully this is enough to help.
TIA,
Kreig
****************************************************************************
**
Client:
RH Linux 2.4.7-10smp
NSCA Client 2.3
192.168.164.221
goclnx1
[nagios at goclnx1 libexec]$ pwd
/usr/local/nagios/libexec
[nagios at goclnx1 libexec]$ ./check_smtp -H localhost -w 2 -c 5
SMTP OK - 0 second response time
[nagios at goclnx1 libexec]$ ./check_smtp -H localhost -w 2 -c 5 | ./send_nsca
-H nagios -p 5667 -c /etc/send_nsca.cfg
0 data packet(s) sent to host successfully.
[nagios at goclnx1 libexec]$
[nagios at goclnx1 libexec]$ cat /etc/send_nsca.cfg
####################################################
# Sample NSCA Client Config File
# Written by: Ethan Galstad ( nagios at nagios.org <mailto:nagios at nagios.org> )
#
# Last Modified: 02-21-2002
####################################################
#password=
encryption_method=1
[nagios at goclnx1 libexec]$
Nagios Server:
RH Linux 2.4.18-14
NSCA - Nagios Service Check Acceptor
Copyright (c) 2000-2003 Ethan Galstad ( nagios at nagios.org
<mailto:nagios at nagios.org> )
Version: 2.3
192.168.164.226
nagios
[kreigd at nagios nagios]$ cat /etc/nsca.cfg
####################################################
# Sample NSCA Daemon Config File
# Written by: Ethan Galstad ( nagios at nagios.org <mailto:nagios at nagios.org> )
#
# Last Modified: 01-07-2002
####################################################
server_port=5667
allowed_hosts=127.0.0.1,192.168.164.221,192.168.164.222
nsca_user=nagios
nsca_group=nagios
debug=0
command_file=/usr/local/nagios/var/rw/nagios.cmd
alternate_dump_file=/usr/local/nagios/var/rw/nsca.dump
aggregate_writes=0
append_to_file=0
max_packet_age=30
#password=
decryption_method=1
[kreigd at nagios nagios]$ ps -ef | grep nsca
nagios 30705 1 0 01:12 ? 00:00:00 ./nsca -c /etc/nsca.cfg
--daemon
from checkcommands.cfg
# 'check_smtp' command definition
define command{
command_name check_smtp
command_line $USER1$/check_smtp -H $HOSTADDRESS$
}
prw-rw---- 1 nagios nagiocmd 0 Mar 24 04:32 nagios.cmd
drwxrws--- 2 nagios nagiocmd 4096 Mar 24 04:32 rw
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20030324/33ac66a9/attachment.html>
More information about the Users
mailing list