<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
that was exactly it, I echoed a line with the exact format and it
worked sending 1 packet. Thanks!<br>
<br>
now the question is how to do this check_mailq and get the thing to
send. I guess a simple bash script will take case of this...<br>
<br>
-h<br>
<pre class="moz-signature" cols="72">Hari Sekhon
</pre>
<br>
<br>
Hari Sekhon wrote:
<blockquote cite="mid456C8E84.3000709@googlemail.com" type="cite">
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
hmm, the plugin is the check_mailq plugin, which outputs the following:<br>
<br>
<br>
/usr/nagios/libexec/check_mailq -M postfix -w 500 -c 1000 <br>
OK: mailq (33) is below threshold (500/1000)|unsent=33;500;1000;0<br>
<br>
Thanks, after pulling my hair out trying to understand this I feel like
I have a lead again... (I also tried echo and got the same thinking
it's a general fault in not sending)<br>
<br>
-h<br>
<pre class="moz-signature" cols="72">Hari Sekhon
</pre>
<br>
<br>
Owen Berry wrote:
<blockquote
cite="mid763ca2a0611281128h31db3aeblcc817be1af1c7a61@mail.gmail.com"
type="cite">
<pre wrap="">Can we assume that check_test does actually output the check result in
the correct format. I can echo "" to send_nsca and it also says:
0 data packet(s) sent to host successfully.
Owen
On 11/28/06, Hari Sekhon <a class="moz-txt-link-rfc2396E"
href="mailto:hpsekhon@googlemail.com"><hpsekhon@googlemail.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I'm trying to implement ncsa which seems simple enough... except it's
not working.
I have made the passwords for both the client and server the same. The
ports are default. I am using the client as follows
check_test | send_nsca -H server -c /etc/nagios/send_nsca.cfg
0 data packet(s) sent to host successfully.
At first I thought it might be passwords so I've tried 3 different ones
on both sides, matched them exactly and eventually reduced then to 8
chars to be safe.
Then I put encryption=0 on both sides to try to see if even this would
work, but it didn't, same result.
So I netcatted the port on the server and got the following junk back:
# nc server 5667
¶DEwu
b àä0Ø»£ß¿á àSE±�ÌCø¥[aà¥åWZb#:FS÷ñÁÙû¢-@SÇ
ffèx
ÍÏ('2Lay�t{�f=qaß�¢3e¯�qµ�×�O(RPzQ�ÜË<PFÔ·�Ecã¼�Il-º!Ê'>Oáf¡El�k^[[?1;2c
# telnet server 5667
Trying 192.168.1.89...
Connected to server.mydomain.com
Escape character is '^]'.
3Æòp¨�ðK!γ�g?¶ÈI�5tf%U§¬#ZAW
4X�T,DKNþÖfÊ._idÓÏ�)w6MÑx¥ò¬ý�ý¯EIþXHÔl(r)ë6ÝK
ApÊHç�¹y;«%8.&6ÞlÝÄDz1u�gRx_Q_`çÙ#ÄEl�÷
]^]
telnet> quit
Connection closed.
What on earth is going on with NSCA?
I thought encryption=0 would send cleartext?
Any ideas?
Thanks
-h
--
Hari Sekhon
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
<a class="moz-txt-link-freetext"
href="http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV">http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV</a>
_______________________________________________
Nagios-users mailing list
<a class="moz-txt-link-abbreviated"
href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext"
href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
</pre>
</blockquote>
<pre wrap=""><!---->
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
<a class="moz-txt-link-freetext"
href="http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV">http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV</a>
_______________________________________________
Nagios-users mailing list
<a class="moz-txt-link-abbreviated"
href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext"
href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
</pre>
</blockquote>
</blockquote>
</body>
</html>