<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>RE: [Nagios-users] Epn problems with perl plugin</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>
<P><FONT SIZE=2>lgl> my notes inline<BR>
<BR>
-----Original Message-----<BR>
From: nagios-users-admin@lists.sourceforge.net on behalf of Mieden, Rick van der<BR>
Sent: Fri 4/14/2006 6:46 AM<BR>
To: nagios-users@lists.sourceforge.net<BR>
Subject: [Nagios-users] Epn problems with perl plugin<BR>
<BR>
Hi All,<BR>
<BR>
I'm installing a new nagios server with 2.1 (upgrade 2.2 will follow<BR>
soon) We've have a running nagios 2.0b3 server and I just copied over my<BR>
homebrewed perl plugins to the new server.<BR>
I noticed the embedded perl is a bit stricter in this 2.1 version, I<BR>
compiled nagios with embedded-perl and some of my plugins were not using<BR>
the use strict option, I adjusted all of them and they are working fine<BR>
except one.<BR>
<BR>
To check some processes I've created a perl script which uses ssh to<BR>
login gather the info I need and do some checkings:<BR>
<BR>
....<BR>
open (PS, "ssh -p 22 -o Protocol=2 $o_host -C \"ps -ef| /bin/grep<BR>
$o_name | /bin/grep -v grep\" |") || die("ps -ef????");<BR>
......<BR>
<BR>
lgl> maybe try:<BR>
lgl> open (PS, qq;ssh -p 22 -o Protocol=2 $o_host -C 'ps -ef| /bin/grep "$o_name" | /bin/grep -v grep' |;) || die("ps -ef????");<BR>
<BR>
<BR>
This works for all my processes in the datacenter, except one. there I<BR>
need to check for the following proces: HLRTMD3 -t<BR>
The -t has to be included and I covered this in the 2.0b3 version with<BR>
"HLRTMD3\ -t" the backslash did the trick to deal with the -t part.<BR>
In 2.1 I have the correct output on commandline, but in the Nagios<BR>
Interface I get: (0 of HLRTMD3 -t processes running <= 0 : CRITICAL)<BR>
<BR>
Anybody an idea how to tackle this? Is there a way I can re-produce this<BR>
on commandline and have some troubleshooting output. Anybody experience<BR>
with this and a solution?<BR>
<BR>
<BR>
Regards,<BR>
<BR>
Rick<BR>
<BR>
<BR>
===========================================================<BR>
<BR>
De informatie opgenomen in dit bericht kan vertrouwelijk zijn en is alleen bestemd voor de geadresseerde. Indien u dit bericht onterecht ontvangt, wordt u verzocht de inhoud niet te gebruiken en de afzender direct te informeren door het bericht te retourneren. Hoewel Orange maatregelen heeft genomen om virussen in deze email of attachments te voorkomen, dient u ook zelf na te gaan of virussen aanwezig zijn aangezien Orange niet aansprakelijk is voor computervirussen die veroorzaakt zijn door deze email.<BR>
<BR>
The information contained in this message may be confidential and is intended to be only for the addressee. Should you receive this message unintentionally, please do not use the contents herein and notify the sender immediately by return e-mail. Although Orange has taken steps to ensure that this email and attachments are free from any virus, you do need to verify the possibility of their existence as Orange can take no responsibility for any computer virus which might be transferred by way of this email.<BR>
<BR>
===========================================================<BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>