<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
I am trying to send a test job to my nagios server from a monitored client using send_nsca. I am running suse linux 10 on both client & nagios server.<br><br>Currently, everything is working correctly from within nagios using send_nsca as I am set up as distributed environment. I am now in the process of taking some in house built scripts & trying to send the results to nagios via send_nsca.<br><br>My issue is, if I do this from the command line :<br><br>/usr/local/nagios/bin/send_nsca -H NAGIOSSERVER -c /usr/local/nagios/etc/send_nsca.cfg < /tmp/test<br><br>I see the check come across to the nagios server ( granted it doesn't know what to do with it as the info is not set up in Nagios. The /tmp/test file is nothing more than a tab delimited file as this :<br><br>HOSTNAME TestMessage 0 This is a test message.<br><br>What I have been trying to do is run the same thing above, without the redirect to a discrete file. Every way I try it it fails and just shows me the help page for send_nsca.<br><br>Should I be able to do this some way like this ?<br><br>/usr/local/nagios/bin/send_nsca -H NAGIOSSERVER -c /usr/local/nagios/etc/send_nsca.cfg HOSTNAME TestMessage 0 This is a test message<br><br>It appears that the format of the message is incorrect. I am not getting any tab in between the parameters. I have tried using a \t and [tab] but still not working. Also tried doing an echo -e of the above with a xargs but not correct.<br><br>Blaming this actually on my scripting skills more than Nagios :)<br><br>Can anyone shed some light / point me in a direction what I am doing wrong here?<br><br>Thanks,<br><br>Steve<br> </body>
</html>