nsca problem
Marko Riedel <[email protected]>
| Newsgroups | gmane.network.netsaint.user |
|---|---|
| Message-ID | <[email protected]> |
Hello there,
we have a script that checks whether wget works and reports to
netsaint if it does (MSGHOSTNAME is set by the caller):
--------------------------------------------------------------------------------
#! /bin/sh
#
logfile="/var/log/checkwget"
msg="$MSGHOSTNAME\tWGET\t0\t$MSGHOSTNAME wget okay"
# wget output ignored.
/usr/bin/wget -O /dev/null http://www.spiegel.de
RES1=$?
/usr/bin/wget -O /dev/null http://www.neuearbeit.de
RES2=$?
if [ $RES1 -eq 0 -o $RES2 -eq 0 ]
then
echo sending
echo -e $msg | /usr/local/bin/send_nsca 172.16.1.17 -c /etc/send_nsca.cfg
else
echo fail
fi
--------------------------------------------------------------------------------
We run nsca via inetd and hosts.allow contains the line
nsca: 172.16.0.0/255.255.0.0
This works for the internal LAN. There are some machines (ISDN/DSL)
that are connected through a tunnel and a firewall. The script works
on one of them but not on the others.
It always says
sending
1 data packet(s) sent to host successfully.
The syslog on the netsaint machine contains the entries:
Oct 16 16:20:19 *** nsca[18305]: Handling the connection...
Oct 16 16:20:19 *** nsca[18305]: End of connection or could not read request from client...
The log for the machine that submits successfully is
Oct 16 16:20:01 *** nsca[18294]: Handling the connection...
Oct 16 16:20:03 *** nsca[18298]: Host Name: 'tdslgw', Service Description: 'WGET', Return Code: '0', Output: 'tdslgw
Oct 16 16:20:02 *** nsca[18294]: End of connection or could not read request from client...
Does anyone know what is happening here?
Best regards,
--
+------------------------------------------------------------+
| Marko Riedel, EDV Neue Arbeit gGmbH, [email protected] |
| http://www.geocities.com/markoriedelde/index.html |
+------------------------------------------------------------+
-------------------------------------------------------
This sf.net email is sponsored by: viaVerio will pay you up to
$1,000 for every account that you consolidate with us.
http://ad.doubleclick.net/clk;4749864;7604308;v?
http://www.viaverio.com/consolidator/osdn.cfm