I hate bumping my own e-mail post, I just have not heard anything yet.

 

Thanks,

 

Jon

 

________________________________

From: Jonathan Williams 
Sent: Monday, July 21, 2008 7:47 AM
To: Anthony Montibello; nagios-users@lists.sourceforge.net
Subject: RE: [Nagios-users] Help - I am unable to send notifications

 

It was about time I changed the subject line of my e-mail since the
NSClient++ service restart issue is fixed thanks to you guys.  I am
reposting this since my last e-mail on Friday which is at the bottom of
this thread.  I was hoping to verify the syntax of this command:

 

sed -i '1s,.*,#!/usr/bin/perl -w,' check_sendmail.pl

 

It returns this:

 

sed: can't read check_sendmail.pl: No such file or directory

 

Thank you,

 

Jon

 

 

 

 

 

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Jonathan Williams
Sent: Friday, July 18, 2008 5:08 PM
To: Anthony Montibello
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Help - I am unable to get theNSClient++
torestart services

 

 

 

 

From: Anthony Montibello [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 18, 2008 4:21 PM
To: Jonathan Williams
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Help - I am unable to get theNSClient++ to
restart services

 

 

        Jonathan Williams wrote:
        > I did (at least similar).  I ran it and it returned:
        >
        > /usr/local/bin/pearl -w
        >
        
        I'm guessing the output was actually
        #! /usr/local/bin/perl -w
        which is quite different from what you wrote, but I'll have to
        assume that the output you gave me is actually correct (who in
        their right minds would give false info to someone who's trying
        to help them??), so here it goes:
        
        * There's your error right there. To begin with, you probably
don't
        have a binary named "pearl" anywhere on your system.
        * There's "#!" in front of the name of the script interpreter,
so
        the kernel has no idea what to do with it.
        
        Run this command and it'll magically start working:
        
        sed -i '1s,.*,#!/usr/bin/perl -w,' check_sendmail.pl
        
        Note that "similar" hardly ever cuts it, especially if you want
        more help and don't paste the "similar" command you actually
        used along with the output it produced. copy-paste is your
        friend.
        
        --
        Andreas Ericsson                   [EMAIL PROTECTED]
        OP5 AB                             www.op5.se
<http://www.op5.se/> 
        Tel: +46 8-230225                  Fax: +46 8-230231

        Got it...as far as the top posting goes...makes sense.  Thanks.
And yes
        there was a #! In front as you said.  I did say similar just
because the
        OP who was helping me said I would get something similar to
        #!/usr/bin/perl <args-to-perl>.  My output was similar to that,
but not
        exact.  Thanks for the response. I ran the following:

        
        sed -i '1s,.*,#!/usr/bin/perl -w,' check_sendmail.pl

        return:
        
        sed: can't read check_sendmail.pl: No such file or directory

        
         

I been following  your Emails on this issue and it looks like this must
be some simple mistake somewhere, for example runtime Libexec is not the
directory your using, FIlemames mispellings, things missing from the
path or some other unkown issue.

 

Try running some normal shell script that just gives a date or pwd to
validate the Libexec directory you are copying files to is the one
nagios is run from.

 

In the above command was it suppose to be sendmail.pl instead of
check_sendmail.pl ? (I am not sure I did not think hard about what the
command does) but most of the prior emails mentioned only sendmail.pl
while check_ is common prefix of most common nagios plugins.

 

Last in prior posts I noticed the -n in the command has a space between
the - and the n is it really there or is it just my email reader? if it
is there should it be there?

 

Tony (Author of NC_net)

(I actually prefer reading Top posted msg - but I understand Andreas
point on Bottom posting or inline posting)

 

 

Good question Tony.  There is no such file called check_sendmail on my
system.  Other scripts are running fine out of
/usr/local/nagios/libexec.  I am not sure if perhaps the send_mail.pl
script is perhaps looking for the pearl binary in the wrong folder
/usr/bin/perl as opposed to /usr/local/bin/perl?  I am not at work now
but will dig in later tonight.  I am a victim of my own lack of Linux
experience here I admit, but I'm learning.  I have a feeling if any of
you were looking at everything I have here it would jump out at you.
I'm going to team up with a colleague of mine here who is a good Linux
guy and get his input as well.  

 

As usual thanks again for your time and expertise.

 

Jon

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Reply via email to