NSCA w/ secondary nagios machine monitoring separate network segment

Andy Graybeal andy.graybeal at casanueva.com
Sat Oct 30 20:12:21 CEST 2010


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.

Does anyone have example config files of a distributed nagios where the 
only reason that it's distributed is because of network topology, not 
for redundancy.

I'm sorry I don't understand the documentation and need a little more 
hand holding.

-Andy

------------------------------------------------------------------------------
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