NSCA w/ secondary nagios machine monitoring separate network segment

Jonathan Angliss jon at netdork.net
Sun Oct 31 01:35:11 CEST 2010


On 10/30/10 13:12, Andy Graybeal wrote:
> I've read this http://nagios.sourceforge.net/docs/3_0/distributed.html a
> few times, but I'm having a hard time understanding it.  I will keep
> reading it until it makes sense.
>
> I'm running Ubuntu 10.04.  I've installed nagios and nsca with the
> package manager.
>
>
> I have most hosts/services on 192.168.2.x network, but there are a few
> on a 10.0.0.x network behind a gateway machine 192.168.2.200<->10.0.0.1.
>
> My nagios box is 192.168.2.201
>
> The nsca daemon is running fine.  I can do a send_nsca from
> 192.168.2.200 and get an Okay Packet sent.  In my syslog it says:
>
> Oct 30 14:04:36 nagios nsca[713]: Connection from 192.168.2.200 port 8853
> Oct 30 14:04:36 nagios nsca[713]: Handling the connection...
> Oct 30 14:04:37 nagios nsca[713]: SERVICE CHECK ->  Host Name: 'monarch',
> Service Description: 'TestMessage', Return Code: '0', Output: 'This is a
> test message'
> Oct 30 14:04:37 nagios nsca[713]: Command file
> '/var/lib/nagios3/rw/nagios.cmd' does not exist, attempting to use
> alternate dump file '/var/run/nagios/nsca.dump' for output
> Oct 30 14:04:37 nagios nsca[713]: Could not open alternate dump file
> '/var/run/nagios/nsca.dump' for appending
> Oct 30 14:04:37 nagios nsca[713]: End of connection...
>
> I wonder why nagios.cmd does not exist, if I touch this manually, the
> error goes away, but it happens again if I restart the nagios service.

Have you checked the nagios.cfg file and ensured the path for 
command_file is the same in both the nagios.cfg and nsca.cfg? Nagios 
should be creating the command file on start up.  If they are the same, 
check that nagios has write permissions to /var/lib/nagios3/rw.  Also, 
the command file is a pipe, not a simple file, so "touch" isn't good 
enough, you'll need to use mkfifo or mknod.

-- 
Jonathan Angliss


------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list