NCSA not working, garbage when telnettting {Spam?}

Marc Powell marc at ena.com
Tue Nov 28 20:38:40 CET 2006


The example submit_check_result script in Distributed Monitoring documentation (and the documentation itself) will help you a lot. You do need to munge the plugin output before sending.

--
Marc

> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Hari Sekhon
> Sent: Tuesday, November 28, 2006 1:31 PM
> To: Nagios Users mailinglist
> Subject: Re: [Nagios-users] NCSA not working, garbage when telnettting
> {Spam?}
> 
> hmm, the plugin is the check_mailq plugin, which outputs the following:
> 
> 
> /usr/nagios/libexec/check_mailq -M postfix -w 500 -c 1000
> OK: mailq (33) is below threshold (500/1000)|unsent=33;500;1000;0
> 
> 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)
> 
> -h
> 
> Hari Sekhon
> 
> 
> 
> Owen Berry wrote:
> > 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 <hpsekhon at googlemail.com> wrote:
> >
> >> 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÷ñÁÙû¢- at 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
> >>
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >> _______________________________________________
> >> 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
> >>
> >
> > ------------------------------------------------------------------------
> -
> > 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
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________
> > 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
> >
> >
-------------------------------------------------------------------------
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
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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