That was the answer...thank you very much...<BR><BR><B><I>frank <ratty@they.org></I></B> wrote:  <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">I'm not absolutely positive, but I think you just need to change your <BR>"test" file so it says "syslog-ng" instead of "nmbd". It's possible to <BR>send passive checks (via nsca or whatever other methods one may employ) <BR>for _any_ host or service you can imagine, but Nagios will log and ignore <BR>every one of them unless they're properly defined in your Nagios config <BR>files.<BR><BR><BR>From http://nagios.sourceforge.net/docs/2_0/passivechecks.html<BR><BR>Note that in order to submit service checks to Nagios, a service must have <BR>already been defined in the object configuration file! Nagios will ignore <BR>all check results for services that had not been configured before it was <BR>last (re)started.<BR><BR><BR>-f<BR><BR>On Tue, 21 Nov 2006, Mike Carpenter
 wrote:<BR><BR>> Probably not...<BR>><BR>> I have been reading some documentation on both syslog and nsca that talk (at the same time) about distributed systems and logging. This is a test script that I took from one to the pieces of documentation and appears that I messed up at midnight.<BR>><BR>> With that said...how can I can I test this in this manner?<BR>><BR>> Thanks<BR>><BR>> frank <RATTY@THEY.ORG>wrote:<BR>><BR>> Sorry for top-posting but my point would get lost in the mix.<BR>><BR>> Pardon me if I'm wrong here, but it looks like you have a service defined<BR>> for syslog-ng, yet the status that you're sending thru nsca is for _nmbd_.<BR>> nmbd != syslog-ng, therefore no change to nagios display.<BR>><BR>> Did I miss something?<BR>><BR>> -f<BR>><BR>><BR>> On Tue, 21 Nov 2006, Mike Carpenter wrote:<BR>><BR>>> Date: Tue, 21 Nov 2006 09:20:21 -0800 (PST)<BR>>> From: Mike
 Carpenter<BR>>> To: nagios-users@lists.sourceforge.net<BR>>> Subject: [Nagios-users] nsca/services issue<BR>>><BR>>> I have a question about nsca and service checks. I am running nsca 2.6 and Nagios 2.5. I have just trying to send a simple test service check to Nagios to see if I can get the state to change…and it isn’t working…<BR>>><BR>>> Here is what I am trying to do…<BR>>><BR>>> From the remote machine:<BR>>> /usr/bin/send_nsca –H ian -d “;” –c /etc/send_nagios.cfg < test<BR>>><BR>>> The file test contains:<BR>>> mike;nmbd;2;’ok-just one test’<BR>>><BR>>> I have configured nsca on the Nagios server and the config file contains:<BR>>><BR>>> server_port=5667<BR>>> server_address=192.168.1.10<BR>>> nsca_user=nagios<BR>>> nsca_group=nagios<BR>>> debug=0<BR>>> command_file=/usr/local/nagios/var/rw/nagios.cmd<BR>>>
 alternate_dump_file=/usr/local/nagios/var/rw/nsca.dump<BR>>> aggregate_writes=0<BR>>> append_to_file=0<BR>>> max_packet_age=30<BR>>> password=password<BR>>> decryption_method=10<BR>>><BR>>> The send_nagios.cfg contains:<BR>>> password=password<BR>>> encryption_method=10<BR>>><BR>>> My service check is:<BR>>><BR>>> define service{<BR>>> host_name mike<BR>>> service_description syslog-ng<BR>>> active_checks_enabled 0<BR>>> passive_checks_enabled 1<BR>>> check_freshness 0<BR>>> is_volatile 1<BR>>> max_check_attempts 1<BR>>> normal_check_interval 1<BR>>> retry_check_interval 1<BR>>> check_period none<BR>>> contact_groups nagios-admins<BR>>> check_command check_dummy!2!Critical<BR>>> notification_options w,c,u<BR>>> notification_period 24x7<BR>>> notification_interval 120<BR>>> }<BR>>><BR>>> The
 /var/log/messages file shows the following:<BR>>><BR>>> Nov 21 00:09:00 ian nsca[12202]: SERVICE CHECK -> Host Name: 'mike', Service Description: 'nmbd', Return Code: '2', Output: ''ok-just one test''<BR>>><BR>>> Nov 21 00:09:47 ian nagios: EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;mike;nmbd;2;'ok-just one test'<BR>>><BR>>> It appears that the external command file is getting the check…but the host page just sits there saying that the host hasn’t been checked. I have tried several different states and still the same result. I understand that an active check isnt being performed but I would think that because of the above "PROCESS_SERVICE_CHECK_RESULT" line that the nagios.cmd file got the message and the page should be updated with a critical message.<BR>>><BR>>> I read in the docs that the check needs to have the date in front of it …but when I tried that I couldn’t get nsca to expand the variable…I have checked
 permissions, etc.<BR>>><BR>>> So…where have I messed up? LOL.<BR>>><BR>>> Any help is greatly appreciated.<BR>>><BR>>><BR>>> ---------------------------------<BR>>> Sponsored Link<BR>>><BR>>> Mortgage rates as low as 4.625% - $150,000 loan for $579 a month. Intro-*Terms<BR>><BR>><BR>> ---------------------------------<BR>> Sponsored Link<BR>><BR>> Degrees for employed people - in as fast as 1 year. A.S. / Bachelors / Masters</BLOCKQUOTE><BR><p>

<font color="666666"><font size="2"><hr size=1>Sponsored Link</font></font><br><br>Rates near 39yr lows. $510,000 Loan for $1698/mo -   
<a href="http://www.lowermybills.com/lre/index.jsp?sourceid=lmb-9137-16419&moid=4119">Calculate new house payment</a>