<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=iso-2022-jp"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"MS ゴシック";
panose-1:2 11 6 9 7 2 5 8 2 4;}
@font-face
{font-family:"MS ゴシック";
panose-1:2 11 6 9 7 2 5 8 2 4;}
@font-face
{font-family:"MS Pゴシック";
panose-1:2 11 6 0 7 2 5 8 2 4;}
@font-face
{font-family:"\@MS ゴシック";
panose-1:2 11 6 9 7 2 5 8 2 4;}
@font-face
{font-family:"\@MS Pゴシック";
panose-1:2 11 6 0 7 2 5 8 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0mm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
font-size:10.5pt;
font-family:"Arial","sans-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;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Arial","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Arial","sans-serif";}
/* Page Definitions */
@page WordSection1
{size:612.0pt 792.0pt;
margin:99.25pt 30.0mm 30.0mm 30.0mm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026">
<v:textbox inset="5.85pt,.7pt,5.85pt,.7pt" />
</o:shapedefaults></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=JA link=blue vlink=purple style='text-justify-trim:punctuation'><div class=WordSection1><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US>Hi All,<br><br>Thanks for taking the time to read this. I am currently trying to setup Nagios to monitor a Feed Handler on a remote Linux box. I am so close I can taste it! Sadly, the nagios admin doesn't appear to be reading the command properly. I am new to Nagios so please bear with me, there are a lot of moving pieces so I thought i would provide as much information as possible to make it easy to figure out the issue. If there is something I am missing, please don't hesitate to ask. <br><br>To start with, the admin is successfully monitoring other services on the box, ping, processes, disk usage, etc. but for the custom plugin I am trying to read, it fails with a status of CRITICAL and status info of NULL. Here is what I believe to be the relevant config info.<br><br><u>On the machine being monitored</u><br>I added the perl script I created to /usr/local/nagios/libexec/custom/ (its a modification of <a href="http://www.deimos.fr/gitweb/?p=nagios_plugins.git;a=blob;f=check_file_content/check_file_content.pl;h=ecf737389fd5a4360ee864eb55aca92056308445;hb=HEAD">http://www.deimos.fr/gitweb/?p=nagios_plugins.git;a=blob;f=check_file_content/check_file_content.pl;h=ecf737389fd5a4360ee864eb55aca92056308445;hb=HEAD</a> I have tested it from the command line and it works as expected)<br><br>in the file: <b>vi /usr/local/nagios/etc/nrpe.cfg</b> i added <br>command[check_wadmin]=perl /usr/local/nagios/libexec/custom/check_wadmin.pl -f /tmp/nagiosInput.txt -i wait -n 35<br><br><u>On the monitoring machine</u><br>I already had the machine monitoring the remote linux box's basic stats, I did this by creating a remotelinuxhost.cfg file at /usr/local/nagios/etc/objects (and adding a reference in the main config)<br><br>To remotelinuxhost.cfg I added: <br><br>define service{<br>use generic-service ; Name of service template to use<br>host_name Sun89<br>service_description Check Feed Handler<br>check_command check_wadmin<br>}<br><br><br>I also added commands.cfg (in the same folder) <br><br>define command{<br>command_name check_wadmin<br>command_line perl /usr/local/nagios/libexec/custom/check_wadmin.pl -f /tmp/nagiosInput.txt -i wait -n 35<br>}<br><br>When I reloaded the service, it accepted the config but the result is as listed above... if anyone has any suggestions it would be greatly appreciated!!!</span><span lang=EN-US style='font-size:10.0pt'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt'><o:p> </o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:left'><span style='font-size:7.5pt;font-family:"MS Pゴシック"'>〜・瘢雹〜・瘢雹〜・瘢雹〜・瘢雹〜・瘢雹〜・瘢雹〜・瘢雹〜・瘢雹〜・瘢雹〜・瘢雹〜・瘢雹〜・瘢雹〜・瘢雹〜・瘢雹</span><span lang=EN-US style='font-size:12.0pt;font-family:"MS Pゴシック"'><o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:left'><span lang=EN-US style='font-size:7.5pt;font-family:"MS Pゴシック"'>Roderick Andrew Clemente</span><span lang=EN-US style='font-size:12.0pt;font-family:"MS Pゴシック"'><o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:left'><span lang=EN-US style='font-size:7.5pt;font-family:"MS Pゴシック"'>Multi Wave Co., Ltd. </span><span lang=EN-US style='font-size:12.0pt;font-family:"MS Pゴシック"'><o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:left'><span lang=EN-US style='font-size:7.5pt;font-family:"MS Pゴシック"'>9F Kanda Tsukasa-cho Bldg., 2-2-12 Kanda Tsukasa-cho </span><span lang=EN-US style='font-size:12.0pt;font-family:"MS Pゴシック"'><o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:left'><span lang=EN-US style='font-size:7.5pt;font-family:"MS Pゴシック"'>Chiyoda-ku, Tokyo 101 0048 Japan </span><span lang=EN-US style='font-size:12.0pt;font-family:"MS Pゴシック"'><o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:left'><span lang=EN-US style='font-size:7.5pt;font-family:"MS Pゴシック"'>Tel: +81-3 3258 7080</span><span lang=EN-US style='font-size:12.0pt;font-family:"MS Pゴシック"'><o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:left'><span lang=EN-US style='font-size:7.5pt;font-family:"MS Pゴシック"'>Fax: +81-3 3258 7085<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:left'><span lang=EN-US style='font-size:7.5pt;font-family:"MS Pゴシック"'>Email: </span><span lang=EN-US style='font-size:12.0pt;font-family:"MS Pゴシック"'><a href="mailto:rod@mwave.co.jp" target="_blank"><span style='font-size:7.5pt;color:blue'>rod@mwave.co.jp</span></a></span><span lang=EN-US style='font-size:7.5pt;font-family:"MS Pゴシック"'> </span><span lang=EN-US style='font-size:12.0pt;font-family:"MS Pゴシック"'><o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:left'><span style='font-size:7.5pt;font-family:"MS Pゴシック"'>〜・瘢雹〜・瘢雹〜・瘢雹〜・瘢雹〜・瘢雹〜・瘢雹〜・瘢雹〜・瘢雹〜・瘢雹〜・瘢雹〜・瘢雹〜・瘢雹〜・瘢雹〜・瘢雹</span><span lang=EN-US style='font-size:12.0pt;font-family:"MS Pゴシック"'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div></body></html>