[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nagios-users
Subject:    [Nagios-users] ? on Distributed Server Config
From:       steve f <a31modela () hotmail ! com>
Date:       2010-07-21 20:38:12
Message-ID: BLU105-W16DD05F48D6C5FEB46AED5A2A10 () phx ! gbl
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I was hoping to find some more detailed info on setting up nsca for distributed \
server config.  Anyone know of some documentation besides whats in the Nagios 3.x \
docs, either on line or book ?  I just seem to be missing the connection between the \
send_nsca plugin and the actual plugin running on the box I want to monitor from the \
central server.

Here is my issue:

I have my central server set up ( call it nagios1), 1 dist server with bare bones \
nagios set up & running on it ( call it nagiosdist1).  I have been able to send an \
nsca message to central server by running the following from a script :

#!/bin/bash
CFG="//usr/local/nagios/etc/send_nsca.cfg"
CMD="nagiosdist1;named;3;UNKNOWN - just an NSCA test"

/bin/echo $CMD | /usr/local/nagios/bin/send_nsca -H nagios1 -d ';' -c $CFG

So now that I have nsca communication, what I want to be able to do is this

using nsca from nagiosdist1, send check results from a linux pc to the central \
server.  I have all of the plugins on the linux pc and have successfully run the \
following from the command line from the nagiosdist1 server ( before I configured it \
as a nsca server)

     ./check_by_ssh -H IP_OF_LINUX_PC -C '/usr/local/nagios/libexec/check_load -w 5.0 \
-c 10.0' -q

I assume I should be able to run this with an nsca wrapper & get it up to the central \
server would t be as simple as this in the services.cfg on the dist server?


define service {

  use                             generic-service           

  host_name                  LINUX_PC

  service_description             Current Load via ssh

 check_command                   submit_check_result!check_ssh_load!5.0,4.0,3.
0!10.0,6.0,4.0

}


Thanks,

Steve



 




 		 	   		  
_________________________________________________________________
The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail.
http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4



[Attachment #5 (text/html)]

<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
I was hoping to find some more detailed info on setting up nsca for distributed \
server config.&nbsp; Anyone know of some documentation besides whats in the Nagios \
3.x docs, either on line or book ?&nbsp; I just seem to be missing the connection \
between the send_nsca plugin and the actual plugin running on the box I want to \
monitor from the central server.<br><br>Here is my issue:<br><br>I have my central \
server set up ( call it nagios1), 1 dist server with bare bones nagios set up &amp; \
running on it ( call it nagiosdist1).&nbsp; I have been able to send an nsca message \
to central server by running the following from a script \
:<br><br>#!/bin/bash<br>CFG="//usr/local/nagios/etc/send_nsca.cfg"<br>CMD="nagiosdist1;named;3;UNKNOWN \
- just an NSCA test"<br><br>/bin/echo $CMD | /usr/local/nagios/bin/send_nsca -H \
nagios1 -d ';' -c $CFG<br><br>So now that I have nsca communication, what I want to \
be able to do is this<br><br>using nsca from nagiosdist1, send check results from a \
linux pc to the central server.&nbsp; I have all of the plugins on the linux pc and \
have successfully run the following from the command line from the nagiosdist1 server \
( before I configured it as a nsca server)<br><br>&nbsp;&nbsp;&nbsp;&nbsp; \
./check_by_ssh -H IP_OF_LINUX_PC -C '/usr/local/nagios/libexec/check_load -w 5.0 -c \
10.0' -q<br><br>I assume I should be able to run this with an nsca wrapper &amp; get \
it up to the central server would t be as simple as this in the services.cfg on the \
dist server?<br><br><br>define service {<br><br>&nbsp; \
use&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp \
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
generic-service&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
<br><br>&nbsp; host_name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
LINUX_PC<br><br>&nbsp; \
service_description&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
Current Load via ssh<br><br>&nbsp;check_command&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
submit_check_result!check_ssh_load!5.0,4.0,3.<br>0!10.0,6.0,4.0<br><br>}<br><br><br>Thanks,<br><br>Steve<br><br><br><br>&nbsp;<br><br><br><br><br> \
<br /><hr />The New Busy is not the too busy. Combine all your e-mail accounts with \
Hotmail. <a href='http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4' \
target='_new'>Get busy.</a></body> </html>



------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first

_______________________________________________
Nagios-users mailing list
Nagios-users@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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic