Distributed notifications

Marc Powell marc at ena.com
Thu Feb 9 16:44:03 CET 2006



> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Brady Maxwell
> Sent: Wednesday, February 08, 2006 8:58 PM
> To: Nagios users
> Subject: [Nagios-users] Distributed notifications
> 
> I have three distributed servers that are using send_nsca to a central
> server. the central server is receiving the check results or at least
it
> appears to be. I have except passive host and service checks enabled
on
> the central server. However none of the cgis update the list all
> services and hosts as pending.
> In netstat I can see the connections from the distributed servers on
> both the central and distributed servers.
> 
> I have definded all hosts, check commands and service checks in the
> central servers config files.
> In the past I have had only post checks report in the cgis but now
hosts
> just show pending along with all service checks.
> 
> Also I have execute service checks disabled on the central server. I
am
> pretty certain that they should be disabled on the central server but
I
> enabled them for a bit and all service checks went critical so I
turned
> it back off.
> 
> In nsca.dump I see lots of host checks from only one of the
distributed
> servers. nagios.cmd does not appear to get data  written to it.
> 
> I run nsca and nagios as user nagios. I am wondering if there maybe a
> ownership or permissions issue keeping either the nsca deamon or
nagios
> from writing to or reading from the nagios.cmd file. I made both the
> nagios.cmd and nsca.dump rw by ug and o so I would this that would
have
> solved any potential read write permissions problems.

You'd have to show us directory listings and group associations
otherwise how would we know? You should not have to change permissions
on nagios.cmd as it will be created by nagios with the correct ownership
and permissions if you've followed the documentation at
http://nagios.sourceforge.net/docs/1_0/extcommands.html and
http://nagios.sourceforge.net/docs/1_0/commandfile.html. The named pipe
is also removed and re-created at each nagios restart so any changes you
made would be transient anyway.
 
> Anyone have any suggestions?

Turn on nsca debug and watch your messages file. Enable
'log_passive_service_checks' in nagios.cfg and watch for them in
nagios.log. Look for errors in nagios.log. Make sure you have
check_external_commands enabled with a reasonable
command_check_interval.


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
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