Nagios from traces.

Marcel Mitsuto Fucatu Sugano msugano at uolinc.com
Fri Sep 22 21:36:35 CEST 2006


On Fri, 2006-09-22 at 12:26 -0700, Andrew Tjang wrote:
> Hello Everyone,
> 
> I am trying to get Nagios to read from traces. I'm having difficulty on
> figuring out where to begin. 
> 
> I want to do this because I don't have direct access to the machines
> i'll be monitoring. I need to periodically ship the monitored data from
> the hosts to the nagios machine, parse the files and then update nagios.
> The parsing part I think i can do fine. It's the part that involves
> modifying Nagios to read from file rather than query hosts that I need
> help with. 

If I understood you correctly, I think the best solution for you is to
write the contents of the file with monitored data to nagios.cmd pipe.
Once you have parsed the file you can figure out how to properly write
the service check result to be processed by nagios via command pipe.

> I'd like to keep the same config file format, but just modify the
> monitoring sections to read from file based on those configs. Is there
> any place you could recommend that I start looking?

You won't even bother this. You should look for external commands
documentation: (if you're using nagios 2.x)

http://nagios.sourceforge.net/docs/2_0/extcommands.html

> Thank you in advance for your assistance,
> -Andrew

HTH,

Marcel


AVISO: A informação contida neste e-mail, bem como em qualquer de seus anexos, é CONFIDENCIAL e destinada ao uso exclusivo do(s) destinatário(s) acima referido(s), podendo conter informações sigilosas e/ou legalmente protegidas. Caso você não seja o destinatário desta mensagem, informamos que qualquer divulgação, distribuição ou cópia deste e-mail e/ou de qualquer de seus anexos é absolutamente proibida. Solicitamos que o remetente seja comunicado imediatamente, respondendo esta mensagem, e que o original desta mensagem e de seus anexos, bem como toda e qualquer cópia e/ou impressão realizada a partir destes, sejam permanentemente apagados e/ou destruídos. Informações adicionais sobre nossa empresa podem ser obtidas no site http://sobre.uol.com.br/.

NOTICE: The information contained in this e-mail and any attachments thereto is CONFIDENTIAL and is intended only for use by the recipient named herein and may contain legally privileged and/or secret information. If you are not the e-mail´s intended recipient, you are hereby notified that any dissemination, distribution or copy of this e-mail, and/or any attachments thereto, is strictly prohibited. Please immediately notify the sender replying to the above mentioned e-mail address, and permanently delete and/or destroy the original and any copy of this e-mail and/or its attachments, as well as any printout thereof. Additional information about our company may be obtained through the site http://www.uol.com.br/ir/.

-------------------------------------------------------------------------
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




More information about the Developers mailing list