<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<title>More than one command defined </title>
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Mangal;
        panose-1:0 0 4 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=WordSection1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I’m looking at the same issue and our thoughts are to use
NDO utils or possibly custom NEB to grab perf data that way, but then still let
pnp4nagios run the ‘normal’ way.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><br>
Dan<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Deborah Martin
[mailto:Deborah.Martin@Kognitio.com] <br>
<b>Sent:</b> Thursday, November 18, 2010 10:26 AM<br>
<b>To:</b> 'Nagios Users List'<br>
<b>Subject:</b> [Nagios-users] More than one command defined<br>
<b>Importance:</b> High<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p> </o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Hi, </span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>I have a
need to run two different commands when processing the performance data from
Nagios (3.2.2) </span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>I want the
first  command to run the process-perfdata.pl script from pnp4nagios and
the second command to log various things to a different log file. </span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>The reason
is that we've only just had a requirement to process performance data for
pnp4nagios graphing. But historically we've created our own "performance
data" log </span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>which is
then used within a database to produce SLA reports developed in-house (no
graphing just numbers produced for the SLA reports) </span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>If I do the
following I don't get an errors when I run nagios -v nagios.cfg ... :- </span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>define
command {</span> <br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>       
command_name process-service-perfdata-file</span> <br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>       
command_line <first command> - process performance data for pnp4nagios</span>
<br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>       
command_line <second command> - log different data to a different file </span><br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>       
}</span> <o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>I'd like to
avoid creating a script with both commands in if I can help it as it's
extremely useful to keep it simple and visible in the misccommands.cfg file. </span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Perhaps
there is some other way I can do this or is a script with both commands really
the only way ? </span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Any help /
pointers would be really appreciated. If I'm being dense about this and the
answer is staring right at me feel free to say so! </span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Thanks, </span><br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Deborah  </span><o:p></o:p></p>

<p class=MsoNormal><br>
***************************************************************************<br>
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed. <br>
<br>
Any unauthorised distribution or copying is strictly prohibited. <br>
Whilst Kognitio Limited takes steps to prevent the transmission of viruses via
e-mail, we can not guarantee that any email or attachment is free from computer
viruses and you are strongly advised to undertake your own anti-virus
precautions. <br>
<br>
Kognitio grants no warranties regarding performance, use or quality of any
e-mail or attachment and undertakes no liability for loss or damage, howsoever
caused. <br>
<br>
Kognitio Limited, a company registered in England and Wales. Registered number
0212 7833. Registered Office: 3a Waterside Park, Cookham Road, Bracknell,
Berks, RG12 1RB. VAT number 864 4378 92.<br>
<br>
Kognitio Inc, a company incorporated in Delaware, principal office 180 North
Stetson, Suite 3500, Chicago, IL 60601, USA<br>
***************************************************************************<o:p></o:p></p>

</div>

</body>

</html>