From: <Ric...@eq...> - 2005-03-17 15:19:10
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7036.0"> <TITLE>Why is it so convoluted?</TITLE> </HEAD> <BODY> <!-- Converted from text/rtf format --> <P><FONT SIZE=2 FACE="Arial">My question is to why perfparse is so convoluted? Here is the current flow of events, I may not have it configured right but here it is:</FONT></P> <UL> <LI><FONT SIZE=2 FACE="Arial">First you have to have perfparse daemon started to get any performance data into the database. I've seen the whole thing it crash, and the error was due to the database not responding properly. In order to get this going again, you have to first delete the pipe, then kill all perfparse_nagios_pipe_command processes that may be hanging around. Then restart perfparsed.</FONT></LI> <LI><FONT SIZE=2 FACE="Arial">Nagios fires off a separate process for perfparse_nagios_pipe_command.pl which writes to a pipe</FONT></LI> <LI><FONT SIZE=2 FACE="Arial">Perfparsed then reads the pipe and inserts the values into the database.</FONT></LI> <BR> </UL> <P><FONT SIZE=2 FACE="Arial">Why not cut a few of the steps out, get rid of the daemon, and have Nagios execute a command like this:</FONT> <BR><FONT SIZE=2 FACE="Arial">define command{</FONT> <BR><FONT SIZE=2 FACE="Arial"> command_name process-service-perfdata</FONT> <BR><FONT SIZE=2 FACE="Arial"> command_line /usr/bin/perfparse-db "$TIMET$" "$HOSTNAME$" "$SERVICEDESC$" "$OUTPUT$""$SERVICESTATE$" "$PERFDATA$"</FONT></P> <P><FONT SIZE=2 FACE="Arial">}</FONT> </P> <P><FONT SIZE=2 FACE="Arial">The program perfparse-db reads the perfparse.cfg file to determine the storage module, database, username, password etc. then connects to the database, and inserts directly the values passed to it into the database. </FONT></P> <P><FONT SIZE=2 FACE="Arial">Thanks, </FONT> </P> <P><FONT SIZE=2 FACE="Bitstream Vera Sans">Richard Masci<BR> (OSS/I&S/CAS)Network Facing Tools<BR> </FONT><A HREF="http://www.equant.com"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">http://www.equant.com</FONT></U></A> </P> </BODY> </HTML> |