Re: [Nagios-users] CheckEventLog Info

2008-11-24 Thread Jonathan Williams
That is exactly what I was looking for.  Thank you.

Jon

-Original Message-
From: Martin Kamijo [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 21, 2008 9:29 PM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] CheckEventLog Info

Jonathan Williams wrote:
 Looking for info on this feature.  I am looking for Nagios to be able to 
 monitor the Windows System Log for specific event types and notify 
 accordingly when they appear.  Does this require an additional plug in 
 or is this something that is already part of NSCLient++ v 3.1.14?
 

As far as I can see this is a part of the version you are using. If not 
just upgrade to the latest one. For usage take a look here in the 
NSClient++ documentation:

http://www.nsclient.org/nscp/wiki/CheckEventLog/CheckEventLog

-- 


Best Regards
Martin Kamijo

__
op5 AB
Första Långgatan 19
SE-413 27 Göteborg
Mobil: +46 735-17 70 95
Support: +46 31-774 09 24
www.op5.com


-
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=100url=/
___
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

-
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=100url=/
___
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


Re: [Nagios-users] CheckEventLog Info

2008-11-24 Thread Jonathan Williams
That is a great resource.  Thanks.  One question I have is on defining the 
$ARG1$ etc.

For example:

Check for errors by eventid in the last 2 hours.
$ARG1$ = file to check ie. Application, Security, System
$ARG2$ = Max Warn amount
$ARG3$ = Max Critical amount
$ARG4$ = eventID Number

Than:  ./check_nrpe -H $HOSTNAME$ -c CheckEventLog -a filter=new file=$ARG1$ 
MaxWarn=$ARG2$ MaxCrit=$ARG3$ filter-generated=\2h filter-eventID==$ARG4$ 
filter-eventType==error filter=in filter=all

My question is where are these ARG's defined.  Where does NRPE know to lok to 
determince that ARG4= EventID.  Is there a config for that?  I looked through 
the different cfg. Files and didn't see that.

Jon



-Original Message-
From: Martin Kamijo [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 21, 2008 9:29 PM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] CheckEventLog Info

Jonathan Williams wrote:
 Looking for info on this feature.  I am looking for Nagios to be able to 
 monitor the Windows System Log for specific event types and notify 
 accordingly when they appear.  Does this require an additional plug in 
 or is this something that is already part of NSCLient++ v 3.1.14?
 

As far as I can see this is a part of the version you are using. If not 
just upgrade to the latest one. For usage take a look here in the 
NSClient++ documentation:

http://www.nsclient.org/nscp/wiki/CheckEventLog/CheckEventLog

-- 


Best Regards
Martin Kamijo

__
op5 AB
Första Långgatan 19
SE-413 27 Göteborg
Mobil: +46 735-17 70 95
Support: +46 31-774 09 24
www.op5.com


-
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=100url=/
___
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

-
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=100url=/
___
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


[Nagios-users] CheckEventLog Info

2008-11-21 Thread Jonathan Williams
Looking for info on this feature.  I am looking for Nagios to be able to
monitor the Windows System Log for specific event types and notify
accordingly when they appear.  Does this require an additional plug in
or is this something that is already part of NSCLient++ v 3.1.14?

 

Thanks,

 

Jonathan Williams

Sr. Systems Administrator

G4S Justice Services, Inc.

 

-
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=100url=/___
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

Re: [Nagios-users] Help - I am unable to send notifications

2008-08-01 Thread Jonathan Williams
Just wanted to say notifications are now working as are the service
restarts (another I had earlier).  I couldn't have done it without help
and support from the community at large out there.  Thanks to everyone
for taking time out of their busy schedules to assist and answer my
questions.

Jon



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jay R.
Ashworth
Sent: Thursday, July 24, 2008 10:01 AM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Help - I am unable to send notifications

On Tue, Jul 22, 2008 at 05:06:22PM -0400, Fulton, David wrote:
 As Marc broke down the sed line I will break down the line above, the
#
 character is indeed a comment character, but only to PERL. PERL is not
 what tries to load the file initially, the shell tries to load the
file
 as a compiled program(like /bin/ls is the compiled program that lists
 the files in a directory: I ran this on my nagios server as an
example):

nit
The actual interpretation of a sh-bang line is usually done by the
general loader, which is to say exec(3) (I think that's the distinction
between exec(2) and exec(3)); if the sh-bang line doesn't call a shell,
one is not involved.
/nit

But I suppose you may have meant the interactive shell you're talking
to...

Cheers,
-- jra
-- 
Jay R. Ashworth   Baylink
[EMAIL PROTECTED]
Designer The Things I Think
RFC 2100
Ashworth  Associates http://baylink.pitas.com
'87 e24
St Petersburg FL USA  http://photo.imageinc.us +1 727
647 1274

 Those who cast the vote decide nothing.
 Those who count the vote decide everything.
   -- (Josef Stalin)


-
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=100url=/
___
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

-
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=100url=/
___
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


Re: [Nagios-users] Help - I am unable to send notifications

2008-08-01 Thread Jonathan Williams
Sure, the issues encountered were pretty well documented in the thread.
Basically it was an error with a return code of 136 when trying to send
the notification.  The app I was using was a Perl script send_mail.pl
that was using #!/usr/bin/perl -w.  To be honest we never fixed that
specific issue.  We ended up installing net-qmail and using it as an MTA
and sending mail out directly using printf.  Basically default Nagios
commands.cfg file.  That solution worked very well.

 

Jon

 



From: Anthony Montibello [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 01, 2008 2:42 PM
To: Jonathan Williams; nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Help - I am unable to send notifications

 

hi,  

 

Good to hear this is resolved, 

Any chance you could send a summay as to how you got it running 

or as to what the issue enountered were?

 

Tony (Author of NC_NEt)

On Fri, Aug 1, 2008 at 11:25 AM, Jonathan Williams
[EMAIL PROTECTED] wrote:

Just wanted to say notifications are now working as are the service
restarts (another I had earlier).  I couldn't have done it without help
and support from the community at large out there.  Thanks to everyone
for taking time out of their busy schedules to assist and answer my
questions.

Jon




-Original Message-
From: [EMAIL PROTECTED]

[mailto:[EMAIL PROTECTED] On Behalf Of Jay R.
Ashworth
Sent: Thursday, July 24, 2008 10:01 AM
To: nagios-users@lists.sourceforge.net

Subject: Re: [Nagios-users] Help - I am unable to send notifications

On Tue, Jul 22, 2008 at 05:06:22PM -0400, Fulton, David wrote:
 As Marc broke down the sed line I will break down the line above, the
#
 character is indeed a comment character, but only to PERL. PERL is not
 what tries to load the file initially, the shell tries to load the
file
 as a compiled program(like /bin/ls is the compiled program that lists
 the files in a directory: I ran this on my nagios server as an
example):

nit
The actual interpretation of a sh-bang line is usually done by the
general loader, which is to say exec(3) (I think that's the distinction
between exec(2) and exec(3)); if the sh-bang line doesn't call a shell,
one is not involved.
/nit

But I suppose you may have meant the interactive shell you're talking
to...

Cheers,
-- jra
--
Jay R. Ashworth   Baylink
[EMAIL PROTECTED]
Designer The Things I Think
RFC 2100
Ashworth  Associates http://baylink.pitas.com
http://baylink.pitas.com/ 
'87 e24
St Petersburg FL USA  http://photo.imageinc.us
http://photo.imageinc.us/  +1 727
647 1274

Those who cast the vote decide nothing.
Those who count the vote decide everything.
  -- (Josef Stalin)


-
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=100url=/
___
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


-
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=100url=/
___
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

 

-
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=100url=/___
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

Re: [Nagios-users] Notification using notify-html-email.sh

2008-07-25 Thread Jonathan Williams
How do you mean?  I started my own.  Why would I hijack someone elses??

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marc
Powell
Sent: Friday, July 25, 2008 9:19 AM
To: nagios-users
Subject: Re: [Nagios-users] Notification using notify-html-email.sh


On Jul 25, 2008, at 10:55 AM, Jon Williams wrote:

stuff

Don't hijack someone else's thread.

--
Marc



-
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=100url=/
___
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

-
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=100url=/
___
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


Re: [Nagios-users] Notification using notify-html-email.sh

2008-07-25 Thread Jonathan Williams
Didn't think it mattered.  I changed the subject, and did not include
any of the previous text.  Lesson learned.

Thanks.  Should I repost?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Hugo
van der Kooij
Sent: Friday, July 25, 2008 9:38 AM
To: Nagios Users Mailinglist
Subject: Re: [Nagios-users] Notification using notify-html-email.sh

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jonathan Williams wrote:
| How do you mean?  I started my own.  Why would I hijack someone
elses??

Your message headers gave you away:

From: Jon Williams [EMAIL PROTECTED]
To: nagios-users nagios-users@lists.sourceforge.net
In-Reply-To: [EMAIL PROTECTED]
References: [EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]

So NEVER use the reply button to start a new thread.

Hugo.

- --
[EMAIL PROTECTED]   http://hugo.vanderkooij.org/
PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc

A: Yes.
Q: Are you sure?
A: Because it reverses the logical flow of conversation.
Q: Why is top posting frowned upon?

Bored? Click on http://spamornot.org/ and rate those images.

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFIigFMBvzDRVjxmYERAnXZAJ9shBotq81sDxrxy+Wgwn0jA0ABewCeOJDA
WX8g9cWhgl+OtkNw2XzTAkg=
=lmep
-END PGP SIGNATURE-


-
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=100url=/
___
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

-
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=100url=/
___
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


[Nagios-users] Notification using notify-html-email.sh

2008-07-25 Thread Jonathan Williams
Reposted with apologies:

 

After giving up on the send_mail.pl script I am going with the
notify-html-email.sh add-on.  I seems pretty straight forward.  One
question on a command.  The command to run when notifying service alerts

reads:

 

define command {

  command_namenotify-html-email

  command_line/usr/local/nagios/libexec/notify-html-email.sh

service

  }

 

I get this error in the nagios log:

 

[1217000677] Warning: Attempting to execute the command
/usr/local/nagios/libexec/notify-html-email.sh service resulted in a
return code of 127.  Make sure the script or binary you are trying to
execute actually exists...

 

Sounds familiar.  Nagios is the owner and I also ran chmod

0755 /usr/local/nagios/libexec/notify-html-email.sh.  That is
definately where the file is and permissions are good.  

 

I am wondering about the fact that service is after it.  There is no -
or / or anything before that.  The error looks like it's trying to find
a file called notify-html-email.sh service rather than the file
notify-html-email.sh with a parameter of service.  

 

I have attached the script it is running.  

 



notify-html-email.sh
Description: notify-html-email.sh
-
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=100url=/___
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

Re: [Nagios-users] Notification using notify-html-email.sh

2008-07-25 Thread Jonathan Williams
Thanks Marc.  Makes sense.  I did repost by the way.  

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marc
Powell
Sent: Friday, July 25, 2008 10:09 AM
To: Nagios Users Mailinglist
Subject: Re: [Nagios-users] Notification using notify-html-email.sh


On Jul 25, 2008, at 11:40 AM, Jonathan Williams wrote:

 Didn't think it mattered.  I changed the subject, and did not include
 any of the previous text.  Lesson learned.

http://thread.gmane.org/gmane.network.nagios.user/55932 is an example  
of why it matters. Threaded mail clients do the same. Your question is  
now forever associated with the original as if it were part of it.

--
Marc


-
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=100url=/
___
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

-
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=100url=/
___
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


Re: [Nagios-users] Help - I am unable to send notifications

2008-07-24 Thread Jonathan Williams
I have decided on another course of action.  I have spent way too much
time with no success on this issue.  I just can't get this script to
work.  Are there any other recommended plug-ins that anyone can
recommend.  The native e-mailer did not work either and when on the
Nagios Wiki I found this about it:

 

by default, nagios uses 'mail' or 'mailx' to send it's email. The actual
mail command is found in the default commands.cfg file
/usr/local/nagios/etc/objects/command.cfg

 

there are two definitions by default 'notify-host-by-email' and
'notify-service-by-email'

 

in each of these definitions, there is a command_line; this is what
nagios executes in order to send mail using the mail or mailx system
(varies from system to system) and it *may* need to be changed in order
to work - although I must admit to not having much success so far with
it myself :( (see forum thread --

 

Perhaps I'll go back to the native mailx mailer and try that again and
reset my commands.cgf back to how it was.

 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jay R.
Ashworth
Sent: Thursday, July 24, 2008 10:01 AM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Help - I am unable to send notifications

 

On Tue, Jul 22, 2008 at 05:06:22PM -0400, Fulton, David wrote:

 As Marc broke down the sed line I will break down the line above, the
#

 character is indeed a comment character, but only to PERL. PERL is not

 what tries to load the file initially, the shell tries to load the
file

 as a compiled program(like /bin/ls is the compiled program that lists

 the files in a directory: I ran this on my nagios server as an
example):

 

nit

The actual interpretation of a sh-bang line is usually done by the

general loader, which is to say exec(3) (I think that's the distinction

between exec(2) and exec(3)); if the sh-bang line doesn't call a shell,

one is not involved.

/nit

 

But I suppose you may have meant the interactive shell you're talking

to...

 

Cheers,

-- jra

-- 

Jay R. Ashworth   Baylink
[EMAIL PROTECTED]

Designer The Things I Think
RFC 2100

Ashworth  Associates http://baylink.pitas.com
'87 e24

St Petersburg FL USA  http://photo.imageinc.us +1 727
647 1274

 

   Those who cast the vote decide nothing.

   Those who count the vote decide everything.

 -- (Josef Stalin)

 


-

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=100url=/

___

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

-
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=100url=/___
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

Re: [Nagios-users] Help - I am unable to send notifications

2008-07-23 Thread Jonathan Williams


-Original Message-
From: Andreas Ericsson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 23, 2008 5:04 AM
To: Jonathan Williams
Cc: Marc Powell; Nagios User list
Subject: Re: [Nagios-users] Help - I am unable to send notifications

jonathan williams wrote:
 [1216749581] Warning: Attempting to execute the command
 /usr/local/nagios/libexec/send_mail.pl -n SERVICE RECOVERY -h
 jwilliamspc -s OK -a 10.10.113.51 -i PrintSpooler - Spooler:
 Started - check_nt!SERVICESTATE!-d SHOWALL -l Spooler -d Tue Jul 22
 10:59:41 PDT 2008 -e [EMAIL PROTECTED] resulted in a
 return code of 126.  Make sure the script or binary you are trying to
 execute actually exists...
 

Due to some weird and slightly bent way of passing errors between
processes, return code 126 means Operation not permitted. In
english, that means the script is not executable, or one of the
directories leading up to it isn't readable by the Nagios user.

Run this command (as root):

chmod 0755 /usr/local/nagios/libexec/send_mail.pl

(correct the path if necessary)
and things just might start working a little better.

-- 
Andreas Ericsson   [EMAIL PROTECTED]
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

Thanks Andreas,

I that fixed the code 126.  The nagios.log has no errors now.  I am
still not getting any notifications, but I can troubleshoot further.  I
am curious about one thing.  The send_mail.pl script specifies a mailto
address in the SMTP setting my $mailto = [EMAIL PROTECTED]
The contacts.cfg also specifies an email address in the define_contacts{
section.  I guess I am wondering which one it uses to determine where to
send the notification.  

-
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=100url=/
___
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


Re: [Nagios-users] Help - I am unable to send notifications

2008-07-23 Thread jonathan williams

On Wed, 2008-07-23 at 05:03 -0700, Andreas Ericsson wrote:
 jonathan williams wrote:
  [1216749581] Warning: Attempting to execute the command
  /usr/local/nagios/libexec/send_mail.pl -n SERVICE RECOVERY -h
  jwilliamspc -s OK -a 10.10.113.51 -i PrintSpooler - Spooler:
  Started - check_nt!SERVICESTATE!-d SHOWALL -l Spooler -d Tue Jul
 22
  10:59:41 PDT 2008 -e [EMAIL PROTECTED] resulted in a
  return code of 126.  Make sure the script or binary you are trying
 to
  execute actually exists...
 
 
 Due to some weird and slightly bent way of passing errors between
 processes, return code 126 means Operation not permitted. In
 english, that means the script is not executable, or one of the
 directories leading up to it isn't readable by the Nagios user.
 
 Run this command (as root):
 
 chmod 0755 /usr/local/nagios/libexec/send_mail.pl
 
 (correct the path if necessary)
 and things just might start working a little better.
 
 --
 Andreas Ericsson   [EMAIL PROTECTED]
 OP5 AB www.op5.se
 Tel: +46 8-230225  Fax: +46 8-230231
 
 Looks like Nagios is successfully calling send_mail.pl since I get
 this in the nagios.log:

[121687] SERVICE NOTIFICATION:
nagiosadmin;jwilliamspc;PrintSpooler;CRITICAL;service-notify-by-email;Spooler: 
Stopped

However no email is being delivered.  I know I can successfully send
SMTP mail from this box because I tested it via telnet 25.  Here is what
I have configured in the send_mail.pl file:
#!/usr/bin/perl -w

# than a bunch of commented stuff on how to set up the command.cfg file

use strict;
use Net::SMTP;
use Getopt::Std;

my $mailhost=   192.168.1.9 ;
my $maildomain  =   us.g4s.com  ;
my $mailfrom=   [EMAIL PROTECTED];
my $mailto  =   [EMAIL PROTECTED];
my $timeout =   30;
my $mailsubject =   ''; 
#   Leave blank
my $mailbody=   ''; 
#   Leave blank
my $logfile =   '/var/log/mail.log; 
#   Put somewhere better
my $debug   =   1;  
#   To enable SMTP session debugging to logfile

This is the commangs.cfg file:

define command{
command_nameservice-notify-by-email
command_line$USER1$/send_mail.pl -n SERVICE $NOTIFICATIONTYPE$ -h
$HOSTNAME$ -s $SERVICESTATE$ -a $HOSTADDRESS$ -i $SERVICEDESC$ -
$SERVICEOUTPUT$ - $SERVICECHECKCOMMAND$ -d $LONGDATETIME$ -e
$CONTACTEMAIL$
}

Also the contacts.cfg

define contact{
contact_namenagiosadmin ; Short name of
user
use generic-contact ; Inherit 
default values from generic-contact
template (defined above)
alias   nagiosadmin ; Full name of 
user
host_notification_commands  host-notify-by-email
service_notification_commands   service-notify-by-email

email   [EMAIL PROTECTED]   ;
* CHANGE THIS TO YOUR EMAIL ADDRESS **
}

efine contactgroup{
contactgroup_name   admins
alias   Nagios Administrators
members nagiosadmin
}

These are all the variables I can think of.  Something must still be
amiss or the perl is not working or something?  I am not sure.  



-
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=100url=/
___
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


Re: [Nagios-users] Help - I am unable to send notifications

2008-07-23 Thread jonathan williams

On Wed, 2008-07-23 at 05:03 -0700, Andreas Ericsson wrote:
 jonathan williams wrote:
  [1216749581] Warning: Attempting to execute the command
  /usr/local/nagios/libexec/send_mail.pl -n SERVICE RECOVERY -h
  jwilliamspc -s OK -a 10.10.113.51 -i PrintSpooler - Spooler:
  Started - check_nt!SERVICESTATE!-d SHOWALL -l Spooler -d Tue Jul
 22
  10:59:41 PDT 2008 -e [EMAIL PROTECTED] resulted in a
  return code of 126.  Make sure the script or binary you are trying
 to
  execute actually exists...
 
 
 Due to some weird and slightly bent way of passing errors between
 processes, return code 126 means Operation not permitted. In
 english, that means the script is not executable, or one of the
 directories leading up to it isn't readable by the Nagios user.
 
 Run this command (as root):
 
 chmod 0755 /usr/local/nagios/libexec/send_mail.pl
 
 (correct the path if necessary)
 and things just might start working a little better.
 
 --
 Andreas Ericsson   [EMAIL PROTECTED]
 OP5 AB www.op5.se
 Tel: +46 8-230225  Fax: +46 8-230231
 
 If this is a double post I apologize, I just did not ever see it go
 through and do not see it in my sent items or drafts.  The error code
 126 is gone and see what appears to be a successfull notification in
 the nagios log:

[1216840237] SERVICE NOTIFICATION:
nagiosadmin;jwilliamspc;PrintSpooler;CRITICAL;service-notify-by-email;Spooler: 
Stopped

Still no email though so the issue may be something in the send_mail
script or one of the configs, although they look good to me.  Here's
what I have so far.  send_mail.pl (at least the part I am supposed to
edit:

#!/usr/bin/perl -w
# There are commented examples here of the commands.cfg and contacts.cfg
files
use strict;
use Net::SMTP;
use Getopt::Std;

my $mailhost=   192.168.1.9 ;
my $maildomain  =   us.g4s.com  ;
my $mailfrom=   [EMAIL PROTECTED];
my $mailto  =   [EMAIL PROTECTED];
my $timeout =   30;
my $mailsubject =   ''; 
#   Leave blank
my $mailbody=   ''; 
#   Leave blank
my $logfile =   '/var/log/mail.log; 
#   Put somewhere better
my $debug   =   1;  
#   To enable SMTP session debugging to logfile

Here is the commands.cfg:

define command{
command_nameservice-notify-by-email
command_line$USER1$/send_mail.pl -n SERVICE $NOTIFICATIONTYPE$ -h
$HOSTNAME$ -s $SERVICESTATE$ -a $HOSTADDRESS$ -i $SERVICEDESC$ -
$SERVICEOUTPUT$ - $SERVICECHECKCOMMAND$ -d $LONGDATETIME$ -e
$CONTACTEMAIL$
}

and the contacts.cfg:

define contact{
contact_namenagiosadmin ; Short name of
user
use generic-contact ; Inherit 
default values from generic-contact
template (defined above)
alias   nagiosadmin ; Full name of 
user
host_notification_commands  host-notify-by-email
service_notification_commands   service-notify-by-email

email   [EMAIL PROTECTED]   ;
* CHANGE THIS TO YOUR EMAIL ADDRESS **
 
define contactgroup{
contactgroup_name   admins
alias   Nagios Administrators
members nagiosadmin
}

service template in templates.cfg

define service{
namegeneric-service ; The 'name' of
this service template
active_checks_enabled   1   ; Active service
checks are enabled
passive_checks_enabled  1   ; Passive 
service
checks are enabled/accepted
parallelize_check   1   ; Active service
checks should be parallelized (disabling this can lead to major
performance problems)
obsess_over_service 1   ; We should 
obsess
over this service (if necessary)
check_freshness 0   ; Default is to 
NOT
check service 'freshness'
notifications_enabled   1   ; Service
notifications are enabled
event_handler_enabled   1   ; Service event
handler is enabled
flap_detection_enabled  1   ; Flap 
detection is
enabled
failure_prediction_enabled  1   ; Failure 
prediction
is enabled
process_perf_data   1   ; Process 
performance
data
retain_status_information   1   ; Retain status
information across program restarts
retain_nonstatus_information1   ; Retain 
non-status
information

Re: [Nagios-users] Help - I am unable to send notifications

2008-07-22 Thread Jonathan Williams
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

Re: [Nagios-users] Help - I am unable to send notifications

2008-07-22 Thread jonathan williams

On Tue, 2008-07-22 at 09:08 -0700, Matthew Macdonald-Wallace wrote:
 On Mon, 21 Jul 2008 07:47:00 -0700
 Jonathan Williams [EMAIL PROTECTED] wrote:
 
  sed: can't read check_sendmail.pl: No such file or directory
 
 Are you in the correct directory?
 
 Try running the following:
 
 locate check_sendmail.pl
 
 then cd to the directory that it gives you and run the sed command
 provided earlier.
 
 M.
 --
 Matthew Macdonald-Wallace
 [EMAIL PROTECTED]
 http://www.truthisfreedom.org.uk
 

I ran that command and got nothing.  No response.  See below:

[EMAIL PROTECTED]:/usr/local/nagios/libexec# locate check_sendmail.pl
[EMAIL PROTECTED]:/usr/local/nagios/libexec# 

The libexec directory does have the send_mail.pl file (not sendmail.pl).

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=100url=/
___
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


Re: [Nagios-users] Help - I am unable to send notifications

2008-07-22 Thread jonathan williams

On Tue, 2008-07-22 at 09:08 -0700, Matthew Macdonald-Wallace wrote:
 On Mon, 21 Jul 2008 07:47:00 -0700
 Jonathan Williams [EMAIL PROTECTED] wrote:
 
  sed: can't read check_sendmail.pl: No such file or directory
 
 Are you in the correct directory?
 
 Try running the following:
 
 locate check_sendmail.pl
 
 then cd to the directory that it gives you and run the sed command
 provided earlier.
 
 M.
 --
 Matthew Macdonald-Wallace
 [EMAIL PROTECTED]
 http://www.truthisfreedom.org.uk
 
 -
 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=100url=/
 ___
 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
 
I am guessing (with all my vast linux experience...that's sarcasm) that
perhaps the send_mail.pl wrapper does not know how to find the actual
senmail file which is located in /usr/lib.  I don't see anything in the
send_mail.pl script that indicates it is looking for it though.  Here is
the send_mail.pl file contents:

#!/usr/bin/pearl -w
#
# Wriiten by Rob Moss, 2005-10-09
# [EMAIL PROTECTED]
#
# A replacement for Nagios's basic mail system which relies
on /bin/mailx and local sendmail config
#
# To use this, just replace the entries in commands.cfg and update your
hosts and services from the default notify-by-email to use the
specific host-notify-by-email or service-notify-by-email
#
# I put this in the plugins directory /usr/local/nagios/libexec but you
can put it anywhere. Just update the path

# commands.cfg
#define command{
#   command_namehost-notify-by-email
#   command_line$USER1$/send_mail.pl -n HOST $NOTIFICATIONTYPE$ -h
$HOSTNAME$  -s $HOSTSTATE$ -a $HOSTADDRESS$ -i $HOSTOUTPUT$ -d
$LONGDATETIME$ -e $CONTACTEMAIL$
#}
#
#define command{
#   command_nameservice-notify-by-email
#   command_line$USER1$/send_mail.pl -n SERVICE $NOTIFICATIONTYPE$ -h
$HOSTNAME$ -s $SERVICESTATE$ -a $HOSTADDRESS$ -i $SERVICEDESC$ -
$SERVICEOUTPUT$ - $SERVICECHECKCOMMAND$ -d $LONGDATETIME$ -e
$CONTACTEMAIL$
#}

# contacts.cfg
#define contact{
#   contact_namenagiosadmin
#   host_notification_commands  host-notify-by-email
#   service_notification_commands   service-notify-by-email
#   email   [EMAIL 
PROTECTED]
#}


use strict;
use Net::SMTP;
use Getopt::Std;

my $mailhost=   192.168.1.9 ;
my $maildomain  =   ems.securicor.com;
my $mailfrom=   [EMAIL PROTECTED];
my $mailto  =   [EMAIL PROTECTED];
my $timeout =   30;
my $mailsubject =   ''; 
#   Leave blank
my $mailbody=   ''; 
#   Leave blank
my $logfile =   '/tmp/mail.log';
#   Put somewhere better
my $debug   =   1;  
#   To enable SMTP session debugging to logfile



# Email for nagios
#
# Subject: Host $HOSTSTATE$ alert for $HOSTNAME$! $CONTACTEMAIL$
#
# * Nagios  *
# Notification Type: $NOTIFICATIONTYPE$
# Host: $HOSTNAME$
# State: $HOSTSTATE$
# Address: $HOSTADDRESS$
# Info: $HOSTOUTPUT$
# Date/Time: $LONGDATETIME$
#
#
#
# Commandline options
#
# -nNOTIFICATIONTYPE
# -hHOSTNAME
# -sHOSTSTATE
# -aHOSTADDRESS
# -iHOSTOUTPUT
# -dLONGDATETIME
# -eCONTACTEMAIL
#
#


if (not open(LOG,$logfile) ) {
$mailsubject = Nagios Monitoring Alert: Can't open $logfile for
append: $!;
print STDERR Nagios Monitoring Alert: Can't open $logfile for append:
$!;
sendmail();
exit 1;
}


our ($opt_n, $opt_h, $opt_s , $opt_a , $opt_i , $opt_d , $opt_e);
# Get the cmdline options
getopt('nhsaide');
print LOG localtime() .  sending mail to $opt_e with host $opt_h state
$opt_s\n;

if (not defined $opt_n or $opt_n eq ) {
print option -n not defined!\n;
$opt_n = UNDEFINED;
}
elsif (not defined $opt_h or $opt_h eq ) {
print option -h not defined!\n;
$opt_h = UNDEFINED;
}
elsif (not defined $opt_s or $opt_s eq ) {
print option -s not defined!\n;
$opt_s = UNDEFINED;
}
elsif (not defined $opt_a

Re: [Nagios-users] Help - I am unable to send notifications

2008-07-22 Thread jonathan williams

On Tue, 2008-07-22 at 10:11 -0700, Marc Powell wrote:
 
 On Jul 22, 2008, at 11:56 AM, jonathan williams wrote:
 
 
  I am guessing (with all my vast linux experience...that's sarcasm) 
  that
  perhaps the send_mail.pl wrapper does not know how to find the
 actual
  senmail file which is located in /usr/lib.  I don't see anything in 
  the
  send_mail.pl script that indicates it is looking for it though.  
  Here is
  the send_mail.pl file contents:
 
  #!/usr/bin/pearl -w
  #
 
 This is incorrect. It should be 'perl', not 'pearl'. That's what 
 they've been trying to get you to correct. Edit the file and fix it.
 
 --
 Marc
 
 
 -
 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=100url=/
 ___
 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
 
 Umm..what can I say?  Wow.  OK.. I fixed that in the send_mail.pl
 file.  Any other steps I need to take once I did that to make it work.
 I did re-run the sed-i command and still get the same error:

[EMAIL PROTECTED]:/usr/local/nagios/libexec# sed
1q /usr/local/nagios/libexec/send_mail.pl
#!/usr/bin/perl -w 
[EMAIL PROTECTED]:/usr/local/nagios/libexec# sed -i '1s,.*,#!/usr/bin/perl
-w,' check_sendmail.pl
sed: can't read check_sendmail.pl: No such file or directory


-
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=100url=/
___
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


Re: [Nagios-users] Help - I am unable to send notifications

2008-07-22 Thread jonathan williams

On Tue, 2008-07-22 at 11:14 -0700, Marc Powell wrote:
 
 On Jul 22, 2008, at 12:26 PM, jonathan williams wrote:
 
 
  Umm..what can I say?  Wow.  OK.. I fixed that in the send_mail.pl
  file.  Any other steps I need to take once I did that to make it 
  work.
  I did re-run the sed-i command and still get the same error:
 
 
 Not unless you experience further errors.
 
  [EMAIL PROTECTED]:/usr/local/nagios/libexec# sed -i '1s,.*,#!/usr/bin/
  perl
  -w,' check_sendmail.pl
  sed: can't read check_sendmail.pl: No such file or directory
 
 Ok. sed 101.
 
 sed -i '1s,.*,#!/usr/bin/perl -w,' check_sendmail.pl
 
 The above is a sed 1-liner. It performs an immediate action and then 
 exits. What action? Let's break it down --
 
 sed : this is the command to be executed
 -i : this tells sed that it's going to be editing an existing file
 1s : the start of the actual sed script. This means we're going to be 
 doing 1 substitution
 .* : this is what we're going to be looking for, essentially any 
 content on the line
 #!/usr/bin/perl -w : what the previous match will be replaced with
 check_sendmail.pl : The file that sed is going to be editing
 
 The end result is that sed would replace the entire first line of the 
 file check_sendmail.pl, located in your current directory, with the 
 text '#!/usr/bin/perl -w'.
 
 Your confusion is that the filename should have been check_mail.pl, 
 not check_sendmail.pl.
 
 --
 Marc
 


Thank you for that breakdown.  

I am still having the same error in my nagios.log:

[1216749581] SERVICE NOTIFICATION:
nagiosadmin;jwilliamspc;PrintSpooler;OK;service-notify-by-email;Spooler:
Started
[1216749581] Warning: Attempting to execute the command
/usr/local/nagios/libexec/send_mail.pl -n SERVICE RECOVERY -h
jwilliamspc -s OK -a 10.10.113.51 -i PrintSpooler - Spooler:
Started - check_nt!SERVICESTATE!-d SHOWALL -l Spooler -d Tue Jul 22
10:59:41 PDT 2008 -e [EMAIL PROTECTED] resulted in a
return code of 126.  Make sure the script or binary you are trying to
execute actually exists...

The top line in the send_mail.pl script is indeed #!/usr/bin/perl -w.
I am not sure what it does though.  Doesn't the # mean it is remarked?
I guess my confusion is that there is no such file on my system called
check_sendmail.pl or check_mail.pl.  I was unable to locate any of them.
There is only a check_mailq.  That is why when you state:

#!/usr/bin/perl -w : what the previous match will be replaced with
 check_sendmail.pl : The file that sed is going to be editing
 
 The end result is that sed would replace the entire first line of the 
 file check_sendmail.pl, located in your current directory, with the 
 text '#!/usr/bin/perl -w'.
 
 Your confusion is that the filename should have been check_mail.pl, 
 not check_sendmail.pl.

I get lost.  


 
 

-
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=100url=/
___
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


Re: [Nagios-users] Help - I am unable to send notifications

2008-07-22 Thread jonathan williams

On Tue, 2008-07-22 at 12:13 -0700, Marc Powell wrote:
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
 [mailto:nagios-users-
  [EMAIL PROTECTED] On Behalf Of Marc Powell
  Sent: Tuesday, July 22, 2008 1:15 PM
  To: Nagios User list
  Subject: Re: [Nagios-users] Help - I am unable to send notifications
 
 
 
 
   [EMAIL PROTECTED]:/usr/local/nagios/libexec# sed -i
 '1s,.*,#!/usr/bin/
   perl
   -w,' check_sendmail.pl
   sed: can't read check_sendmail.pl: No such file or directory
 
  Ok. sed 101.
 
  sed -i '1s,.*,#!/usr/bin/perl -w,' check_sendmail.pl
 
 
  Your confusion is that the filename should have been check_mail.pl,
  not check_sendmail.pl.
 
 Correction. It should have been send_mail.pl, not check_sendmail.pl.
 
 --
 Marc
 

Bummer.  I made the change and did not get any errors, however I am
still getting the same error in the nagios.log:

[1216757322] Warning: Attempting to execute the command
/usr/local/nagios/libexec/send_mail.pl -n SERVICE PROBLEM -h
jwilliamspc -s CRITICAL -a 10.10.113.51 -i PrintSpooler -
Spooler: Stopped - check_nt!SERVICESTATE!-d SHOWALL -l Spooler -d Tue
Jul 22 13:08:42 PDT 2008 -e [EMAIL PROTECTED] resulted in
a return code of 126.  Make sure the script or binary you are trying to
execute actually exists.

I am not sure if it is permissions or not.  The user nagios is the owner
of this file and should have access.  I ran this from the command
prompt, but realize the $wildcards$ will have no meaning from here.

[EMAIL PROTECTED]:/usr/local/nagios/libexec# 
/usr/local/nagios/libexec/send_mail.pl -n HOST $NOTIFICATIONTYPE$ -h 
$HOSTNAME$  -s $HOSTSTATE$ -a $HOSTADDRESS$ -i $HOSTOUTPUT$ -d 
$LONGDATETIME$ -e $CONTACTEMAIL$
bash: /usr/local/nagios/libexec/send_mail.pl: Permission denied
[EMAIL PROTECTED]:/usr/local/nagios/libexec#
sudo /usr/local/nagios/libexec/send_mail.pl -n HOST $NOTIFICATIONTYPE$
-h $HOSTNAME$  -s $HOSTSTATE$ -a $HOSTADDRESS$ -i $HOSTOUTPUT$
-d $LONGDATETIME$ -e $CONTACTEMAIL$
sudo: /usr/local/nagios/libexec/send_mail.pl: command not found

The first attempt was run as logged in user (zlocaladmin) which does not
have rights.  Not sure why it still gave permissions error since I ran
sudo - long before in that session and everything else I can run without
the sudo command.  Anyhow when run with root access I get the command
not found error.  I'm stumped.



 

-
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=100url=/
___
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


Re: [Nagios-users] Help - I am unable to send notifications

2008-07-22 Thread jonathan williams

On Tue, 2008-07-22 at 14:06 -0700, Fulton, David wrote:
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf
  Of jonathan williams
  Sent: Tuesday, July 22, 2008 2:36 PM
  To: Marc Powell
  Cc: Nagios User list
  Subject: Re: [Nagios-users] Help - I am unable to send notifications
 
 
  On Tue, 2008-07-22 at 11:14 -0700, Marc Powell wrote:
  
   On Jul 22, 2008, at 12:26 PM, jonathan williams wrote:
   
  
Umm..what can I say?  Wow.  OK.. I fixed that in the
  send_mail.pl
file.  Any other steps I need to take once I did that to make
 it
work.
I did re-run the sed-i command and still get the same error:
   
  
   Not unless you experience further errors.
  
[EMAIL PROTECTED]:/usr/local/nagios/libexec# sed -i
  '1s,.*,#!/usr/bin/
perl -w,' check_sendmail.pl
sed: can't read check_sendmail.pl: No such file or directory
  
   Ok. sed 101.
  
   sed -i '1s,.*,#!/usr/bin/perl -w,' check_sendmail.pl
  
   The above is a sed 1-liner. It performs an immediate action
  and then
   exits. What action? Let's break it down --
  
   sed : this is the command to be executed -i : this tells
  sed that it's
   going to be editing an existing file 1s : the start of the
  actual sed
   script. This means we're going to be doing 1 substitution
   .* : this is what we're going to be looking for, essentially any
   content on the line #!/usr/bin/perl -w : what the previous
  match will
   be replaced with check_sendmail.pl : The file that sed is
  going to be
   editing
  
   The end result is that sed would replace the entire first
  line of the
   file check_sendmail.pl, located in your current directory, with
 the
   text '#!/usr/bin/perl -w'.
  
   Your confusion is that the filename should have been
 check_mail.pl,
   not check_sendmail.pl.
  
   --
   Marc
  
 
 
  Thank you for that breakdown. 
 
  I am still having the same error in my nagios.log:
 
  [1216749581] SERVICE NOTIFICATION:
  nagiosadmin;jwilliamspc;PrintSpooler;OK;service-notify-by-emai
 l;Spooler:
  Started
  [1216749581] Warning: Attempting to execute the command
  /usr/local/nagios/libexec/send_mail.pl -n SERVICE RECOVERY
 -h jwilliamspc -s OK -a 10.10.113.51 -i PrintSpooler - 
 Spooler:
  Started - check_nt!SERVICESTATE!-d SHOWALL -l Spooler -d Tue Jul
 22
  10:59:41 PDT 2008 -e [EMAIL PROTECTED]
  resulted in a return code of 126.  Make sure the script or
  binary you are trying to execute actually exists...
 
  The top line in the send_mail.pl script is indeed
  #!/usr/bin/perl -w.
  I am not sure what it does though.  Doesn't the # mean it is
 remarked?
  I guess my confusion is that there is no such file on my
  system called check_sendmail.pl or check_mail.pl.  I was
  unable to locate any of them.
  There is only a check_mailq.  That is why when you state:
 
  #!/usr/bin/perl -w : what the previous match will be replaced with
   check_sendmail.pl : The file that sed is going to be editing
  
   The end result is that sed would replace the entire first
  line of the
   file check_sendmail.pl, located in your current directory, with
 the
   text '#!/usr/bin/perl -w'.
  
   Your confusion is that the filename should have been
 check_mail.pl,
   not check_sendmail.pl.
 
  I get lost.
 
 As Marc broke down the sed line I will break down the line above, the
 #
 character is indeed a comment character, but only to PERL. PERL is not
 what tries to load the file initially, the shell tries to load the
 file
 as a compiled program(like /bin/ls is the compiled program that lists
 the files in a directory: I ran this on my nagios server as an
 example):
 
 [EMAIL PROTECTED] nagios]$ file /bin/ls
 /bin/ls: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for
 GNU/Linux 2.4.0, dynamically linked (uses shared libs), stripped
 [EMAIL PROTECTED] nagios]$
 
 But since a PERL script is interpretted and not compiled (technically
 that isn't true either but it might as well be), the loader normally
 doesn't know what to do with it, so the gods of UNIX decided that the
 characters #! Would have special signifigance to the loader at the
 beginning of the file. They indicate the program that will interpret
 the
 script. So when the loader sees it it then looks for the /usr/bin/perl
 program and execs it with the -w command and the script path so that
 it
 will interpret the script. If /usr/bin/perl does not exist you will
 have
 problems. To verify the existence of it just ls /usr/bin/perl. Most
 systems have it there, but a few do not, instead they keep it in
 /usr/local/bin/ so you might need to change that line to
 #!/usr/local/bin/perl -w instead. But only if it is in that
 location,
 if it isn't you will need to find it. Which may not be so hard since
 nagios probably found it when you installed it and if you do a file
 *
 in the plugin directory and then type head  and the name of a perl
 script you should see where it really is.
 
 Hope this helps.

That helped a great deal in helping

Re: [Nagios-users] Help - I am unable to send notifications

2008-07-22 Thread jonathan williams

On Tue, 2008-07-22 at 14:48 -0700, Sean McAfee wrote:
 jonathan williams wrote:
 
  That helped a great deal in helping me understand what it is typing
 to
  do.  That top line than of #!/usr/bin/perl -w does exist and the
 perl
  file does exist in /usr/bin so it should all be correct.  Up until
 you
  pointed out my typo of the spelling of perl as pearl this
 obviously
  would not work and I was optimistic of this correcting the problem.
  However I fixed the spelling and am still getting the same error.
 It is
  just not seeing send_mail.pl as a valid script.  The script of
 course is
  defined in the commands.cfg file as:
 
  define command{
command_nameservice-notify-by-email
command_line$USER1$/send_mail.pl -n SERVICE
 $NOTIFICATIONTYPE$ -h
  $HOSTNAME$ -s $SERVICESTATE$ -a $HOSTADDRESS$ -i $SERVICEDESC
 $ -
  $SERVICEOUTPUT$ - $SERVICECHECKCOMMAND$ -d $LONGDATETIME$ -e
  $CONTACTEMAIL$
}
 
 I have yet to see you confirm that send_mail.pl actually exists.  None
 of my default installs have this script, so I'm assuming that's your
 problem.
 
 Download it from NagiosExchange
 (http://www.nagiosexchange.org/cgi-bin/page.cgi?g=2217.html;d=1) and
 put
 it wherever $USER1$ is (this is the default location of check_x
 commands, it's defined in Nagios' resources file).
 
 Sean McAfee
 System Engineer
 
 Collaborative Fusion, Inc.
  [EMAIL PROTECTED]
  412-422-3463 x 4025
 
 5849 Forbes Avenue
 Pittsburgh, PA 15217

It does exist and I pasted the text from it in a previous e-mail earlier
today.  I downloaded it from nagiosexchange as an add-on so no default
Nagios install would have this.  It is located
in /usr/local/nagios/libexec.  See below:

[EMAIL PROTECTED]:/usr/local/nagios/libexec# locate send_mail.pl
/home/zlocaladmin/Documents/send_mail.pl
/usr/local/nagios/libexec/send_mail.pl
[EMAIL PROTECTED]:/usr/local/nagios/libexec# 

The /home/zlocaladmin/Documents/send_mail.pl reference is where the file
was downloaded and I copied rather than moved it into
the /usr/local/nagios/libexec folder so that one is not being used.  I
have looked this over and over and can't figure out why it says it does
not exist.  It's there. 



 


-
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=100url=/
___
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


Re: [Nagios-users] Help - I am unable to send notifications

2008-07-21 Thread Jonathan Williams
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

Re: [Nagios-users] Help - I am unable to get theNSClient++ to restart services

2008-07-18 Thread Jonathan Williams
I did (at least similar).  I ran it and it returned:

/usr/local/bin/pearl -w

There are no quotes as previously mentioned.

Jon

-Original Message-
From: Andreas Ericsson [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 18, 2008 12:38 AM
To: Jonathan Williams
Cc: Valdinger, Stephen (DOV, MSX); nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Help - I am unable to get theNSClient++ to
restart services

Jonathan Williams wrote:
 OK...  A little more info.  I checked the Nagios.log and saw this
 error:
 
 
 
 Warning: Attempoting to execute the command
 /usr/local/nagios/libexec/send_mail.pl - n Service Problem -h
 jwilliamspc -s Critical... (all the parameters are correct)...
 [EMAIL PROTECTED] resulted in a return code of 126.  Make
 sure the script or binary you are trying to execute actually
 exists...
 
 
 
 The file send_mail.pl does exist in the /usr/local/Nagios/libexec
 folder.  Not sure why I am getting that return code.
 
 
 
 Any thoughts?
 

sed 1q /usr/local/nagios/libexec/send_mail.pl
should give you output similar to the one below:
#!/usr/bin/perl args-to-perl

If it doesn't, you've found your error.

Also make sure you have no stray quotes anywhere in the command
definition.
If you're trying to execute
sendmail.pl -n it tries to find a file named sendmail.pl -n instead
of
trying to find one named sendmail.pl and passing it -n as the first
argument.

-- 
Andreas Ericsson   [EMAIL PROTECTED]
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

-
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=100url=/
___
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


Re: [Nagios-users] Help - I am unable to get theNSClient++ to restart services

2008-07-18 Thread Jonathan Williams


-Original Message-
From: Andreas Ericsson [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 18, 2008 7:16 AM
To: Jonathan Williams
Cc: Valdinger, Stephen (DOV, MSX); nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Help - I am unable to get theNSClient++ to
restart services

Please don't top-post. Others reading this email a year from now
will have a very hard time knowing what you're answering to
without scrolling down, then up, then halfway down, then up.

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
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

-
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=100url=/
___
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


Re: [Nagios-users] Help - I am unable to get theNSClient++ to restart services

2008-07-18 Thread Jonathan Williams
 

 



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=100url=/___
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

Re: [Nagios-users] Help - I am unable to get the NSClient++to restart services

2008-07-17 Thread Jonathan Williams
That is my guess as well, but the user Nagios is the owner of the file.
Also in my last email I did find and include this text from the
Nagios.log file:

Warning: Attempting to execute the command
/usr/local/nagios/libexec/send_mail.pl - n Service Problem -h
jwilliamspc -s Critical... (all the parameters are correct)...
[EMAIL PROTECTED] resulted in a return code of 126.  Make
sure the script or binary you are trying to execute actually exists...  

I did some searching on error code 126 and the issue was permission, but
if Nagios is the owner how could that be?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marc
Powell
Sent: Thursday, July 17, 2008 11:59 AM
To: nagios Mailinglist
Subject: Re: [Nagios-users] Help - I am unable to get the NSClient++to
restart services


On Jul 17, 2008, at 11:05 AM, Jonathan Williams wrote:

 To further test the send_mail.pl function, I tried running it  
 directly from a command prompt and I get a Permission Denied  
 error.  Any idea why that would be.  I am using root credentials and  
 the user Nagios is the owner.


Is there more? A line number or command referenced along with the  
error? If so, look at that line number in the script and see what it's  
trying to do. It's usually not difficult to determine what and why if  
you take a look. An educated guess, assuming you really mean to say  
that you're testing the script as the nagios user (as you should), is  
that the nagios user does not have permissions to execute /usr/sbin/ 
sendmail.

--
Marc



-
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=100url=/
___
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

-
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=100url=/
___
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


Re: [Nagios-users] Help - I am unable to get theNSClient++to restart services

2008-07-17 Thread Jonathan Williams
I verified that sendmail as well as printf and they are both there and
located at the specified paths mentioned.  I was looking through the
send_mail.pl script and could not find where these two apps are called
as well as uuencode and the date command.  I had assumed that
send_mail.pl was a replacement for sendmail and printf by reading the
documentation.  By reading the script I don't see anything to edit.


Thanks again for all your input.  

Jon


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marc
Powell
Sent: Thursday, July 17, 2008 12:24 PM
To: nagios Mailinglist
Subject: Re: [Nagios-users] Help - I am unable to get theNSClient++to
restart services


On Jul 17, 2008, at 2:06 PM, Jonathan Williams wrote:

 That is my guess as well, but the user Nagios is the owner of the  
 file.

Ownership doesn't matter at all except in very special circumstances  
(suid bit is set).
 \
 Warning: Attempting to execute the command
 /usr/local/nagios/libexec/send_mail.pl - n Service Problem -h
 jwilliamspc -s Critical... (all the parameters are correct)...
 [EMAIL PROTECTED] resulted in a return code of 126.  Make
 sure the script or binary you are trying to execute actually exists...

 I did some searching on error code 126 and the issue was permission,  
 but
 if Nagios is the owner how could that be?

126 means that the program you are trying to execute doesn't exist.  
Looking at the script, send_mail.pl is just a fancy wrapper for /usr/ 
sbin/sendmail. It also calls /usr/bin/printf, uuencode (no specific  
path referenced), and the date command (again, no path referenced).  
All of those programs must exist in the paths specified or your should  
change the paths in the script. send_mail.pl must also exist in /usr/ 
local/nagios/libexec.  I would also modify the script to explicitly  
include the path to uuencode and date. When nagios executes the  
script, most of the $ENVIRONMENT variables don't exist or are  
different than when executed manually, including $PATH.

--
Marc


-
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=100url=/
___
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

-
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=100url=/
___
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


Re: [Nagios-users] Help - I am unable to get the NSClient++ torestart services

2008-07-16 Thread Jonathan Williams
Lets try this again...

I figured everyone had given of their time and knowledge to me that I'll
try to repay the favor.  I made a translation from Portuguese to English
of the opmonagent.ini and the service-control.cmd files and have
attached them if anyone is interested.  It really helped me to
understand what these files do and hopefully I can get these services
restarted now.  Is there any manipulation of these files that is
necessary to get services restarted besides the general opmonagent.ini
file editing for port #, allowed from IP, etc?  They are attached as txt
files as I couldn't send them the first attempt as a cmd file.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jay R.
Ashworth
Sent: Wednesday, July 16, 2008 7:53 AM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Help - I am unable to get the NSClient++
torestart services

On Wed, Jul 16, 2008 at 08:32:41AM -0300, Fernando Rocha wrote:
This is Portuguese and we'll translate that for the next release.

I'm looking forward to it.  :-)

Cheers,
-- jra
-- 
Jay R. Ashworth   Baylink
[EMAIL PROTECTED]
Designer The Things I Think
RFC 2100
Ashworth  Associates http://baylink.pitas.com
'87 e24
St Petersburg FL USA  http://photo.imageinc.us +1 727
647 1274

 Those who cast the vote decide nothing.
 Those who count the vote decide everything.
   -- (Josef Stalin)


-
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=100url=/
___
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
@echo off

rem #
rem # FileName: service-control.cmd #
rem # Writed by: Gustavo Araujo #
rem # Function: Plugin to stop, to initiate and to  #
rem # restart services via NRPE.#
rem # Usage: service-control.cmd servico start|stop|restart #
rem #

set SRVC=%1
set OPR=%2

IF %OPR% == start GOTO SRVCSTART
   
IF %OPR% == stop GOTO SRVCSTOP

IF %OPR% == restart GOTO SRVCRESTART

rem In case that it does not confer with no command shows usage
GOTO USAGE


:SRVCSTART

   rem Search to see if the service already not this in execution
   sc query %SRVC% |FIND /I RUNNING  null 21
   IF %errorlevel% == 0 GOTO STARTED

   rem It tries To go up service
   NET START %SRVC%  null

   rem Resulted search of the command and shows success or fails
   IF NOT %errorlevel% == 0 GOTO STARTERR
   IF %errorlevel% == 0 GOTO STARTSUC

   :STARTERR
 ECHO It was not possible to initiate the service %SRVC%
 EXIT 2

   :STARTSUC
 ECHO O swervice %SRVC% it was initiated successfully
 EXIT 0

   :STARTED
  ECHO O Service %SRVC% already started
  EXIT 1

:SRVCSTOP
   sc query %SRVC% |FIND /I STOPPED  null 21
   IF %errorlevel% == 0 GOTO STOPPED

   NET STOP %SRVC%  null
   IF NOT %errorlevel% == 0 GOTO STOPERR
   IF %errorlevel% == 0 GOTO STOPSUC

   :STOPERR
  ECHO It was not possible to stop the service %SRVC%
  EXIT 2

   :STOPPED
  ECHO O service %SRVC% it is already stopping
  EXIT 1

   :STOPSUC
  ECHO O service %SRVC% was stopped successfully
  EXIT 0

:SRVCRESTART

   NET STOP %SRVC%  null

   NET START %SRVC%  null
   IF NOT %errorlevel% == 0 GOTO RESTARTERR

   IF %errorlevel% == 0 GOTO RESTARTSUC


   :RESTARTERR
  ECHO The service fails when restarting %SRVC%
  EXIT 2

   :RESTARTSUC
  ECHO O service %SRVC% it was restarted successfully
  EXIT 0

:USAGE
   ECHO *service*  start,stop,restart - The commands are case-sensitive
   EXIT 1

:EOF
 ECHO IT PASSED FOR EOF[OPMONAGENT]
enable=1
password=None
port=12489
allow_from=192.168.1.94
; if set to 1, opmonagent will try to autodetect language settings
autodetect_counters=1
; if autodectet_counters set to zero, need to specify which to use, otherwise, 
default W2K
use_counters=W2K
max_connections=300
debuglevel=0

[NRPE]
enable=1
port=5666
command_timeout=60
allow_from=192.168.1.94
max_connections=300
debuglevel=1


[NRPECOMMAND]
;Used to test if the agent is functioning
test=c:\opmon\test.bat

;Used to verify if some configured service exists as automatic but that it is 
not twirling

Re: [Nagios-users] Help - I am unable to get the NSClient++ to restart services

2008-07-16 Thread Jonathan Williams
OK.  OpMon is running on the test server and my define_command for spooler 
restart reads exactly as you posted, still no service restart.  I am still 
missing something.  I am not sure if I need to edit anything in the 
OpMonagent.ini or service_control.cmd.  

 



From: Fernando Rocha [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 15, 2008 2:11 PM
To: Jonathan Williams
Cc: Nagios Users Mailinglist
Subject: Re: [Nagios-users] Help - I am unable to get the NSClient++ to restart 
services

 

Jonathan,

The client installed on the host doesn't matter if both of them have support to 
nrpe. They will have a configuration file where you'll define the commands to 
run over check_nrpe.

NSClient++ uses NSC.ini
OpMonAgent uses opmonagent.ini

But to make it easy, the OpMonAgent has a command to restart services built-in 
his configuration file.

So, if you have the OpMonAgent running on host, you just need run the following 
command from your nagios server:

/usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS$ -p 5666 -n -c 
service_control -a spooler start

But, if you are using NSClient++ you need define a command into the 
configuration file first, then you'll use this command in the check_nrpe.

Fernando Rocha
OpServices Tecnologia da Informação

- Original Message -
From: Jonathan Williams [EMAIL PROTECTED]
To: Fernando Rocha [EMAIL PROTECTED]
Cc: Nagios Users Mailinglist nagios-users@lists.sourceforge.net
Sent: Tuesday, July 15, 2008 4:57:07 PM (GMT-0300) Auto-Detected
Subject: RE: [Nagios-users] Help - I am unable to get the NSClient++ to restart 
services

I feel like I am back at square one.  It seems like a simple task to get Nagios 
to restart a service.  I have NRPE now running on the server under xinedt, and 
switched the client back to NSClient++ from OpMon Agent.  Both support NRPE.  I 
am not sure if I am supposed to get a service restarted with a NRPE_Check 
command like:

 

/usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS$ -p 5666 -n -c 
service_control -a spooler start

  

Or am is supposed to create scripts on the host that will restart a service 
like a .bat file with a net start spooler command and than get an 
event_handler set up to call that script.  It seems there are different ways to 
do it and I am being pulled both directions.  I am new to Nagios as well as 
Linux and have been able to scrap my way thus far while learning a lot about 
both, but am about ready to call it quits.  I was pointed to the NakedNuns 
website to the section on CheckExternalScripts, but honestly could not make 
much sense of it.

 



From: Fernando Rocha [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 15, 2008 4:38 AM
To: Jonathan Williams
Cc: Nagios Users Mailinglist
Subject: Re: [Nagios-users] Help - I am unable to get the NSClient++ to restart 
services

 

Jonathan,

make sure that you have the xinetd installed and check if there is the 
following directory:

[EMAIL PROTECTED] ~]# ls /etc/xinetd.d/
chargen-dgram   daytime-dgram   discard-dgram   echo-dgram   eklogin   
gssftp  krb5-telnet  ktalk  rsync  time-dgram
chargen-stream  daytime-stream  discard-stream  echo-stream  ekrb5-telnet  
klogin  kshell   nrpe   tcpmux-server  time-stream

if you don't have that, try to install by apt-get!

and then, run the command again

Make install-xinetd

or you can install just writing a file like this:
[EMAIL PROTECTED] ~]# cat /etc/xinetd.d/nrpe 
service nrpe
{
flags = REUSE
socket_type = stream
wait = no
only_from = 127.0.0.1 (PUT YOURS NARIOS SERVER'S IPS HERE)
user = nagios (PUT THE NAGIOS USER HERE)
server = /usr/local/nagios/libexec/nrpe (THE NRPE SERVER)
server_args = -c /usr/local/nagios/libexec/nrpe.cfg --inetd (THE NRPE 
CONFIG FILE)
log_on_failure += USERID
disable = no
}

and then restart xinetd!

Fernando Rocha
OpServices Tecnologia da Informação


- Original Message -
From: Jonathan Williams [EMAIL PROTECTED]
To: Fernando Rocha [EMAIL PROTECTED]
Sent: Monday, July 14, 2008 7:07:57 PM (GMT-0300) Auto-Detected
Subject: RE: [Nagios-users] Help - I am unable to get the NSClient++ to restart 
services

I was able to compile that without ssl and was able to install the pugin's 
using the following

 

Make install-plugin

Make install-daemon

Make install-daemon-config

 

Those worked finer however the next step says:

 

Install the NRPE daemon as a service under xinetd

Make install-xinetd

 

I run that command and get:

[EMAIL PROTECTED]:- /downloads/nrpe-2.8# cannot create regular file 
'/ect/xinetd.d/nrpe' No such file or directory

make: *** [install-xinetd] Error 1

 

Any thoughts??

 

Thanks,

 

Jon

 



From: Fernando Rocha [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 14, 2008 11:49 AM
To: Jonathan Williams
Subject: Re: [Nagios-users] Help - I am unable to get the NSClient

Re: [Nagios-users] Help - I am unable to get the NSClient++ to restart services

2008-07-16 Thread Jonathan Williams
OK.. I am getting somewhere now.  I manually ran this command from the Nagios 
server terminal:

 

/usr/local/nagios/libexec/check_nrpe -H 10.10.113.51 -p 5666 -n -c 
service_control -a spooler start

 

And it worked!!  Meaning the OpMonagent works!  Now I jst need to find out why 
it will not work as an event_handler like so:

 

Define service{

  Use generic service

  Host_name   jwilliamspc

  Service_description PrintSpooler

  Check_command   check_nt!SERVICESTATE!-d SHOWALL -l Spooler

  Event_handler   restart_Spooler

  }

 

define command{

command_name restart-Spooler

command_line PATH/check_nrpe -H $HOSTADDRESS$ -p 5666 -n -c 
service_control -a Spooler start

 

 

 

 

 



From: Jonathan Williams 
Sent: Wednesday, July 16, 2008 10:07 AM
To: Fernando Rocha
Cc: Nagios Users Mailinglist
Subject: RE: [Nagios-users] Help - I am unable to get the NSClient++ to restart 
services

 

OK.  OpMon is running on the test server and my define_command for spooler 
restart reads exactly as you posted, still no service restart.  I am still 
missing something.  I am not sure if I need to edit anything in the 
OpMonagent.ini or service_control.cmd.  

 



From: Fernando Rocha [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 15, 2008 2:11 PM
To: Jonathan Williams
Cc: Nagios Users Mailinglist
Subject: Re: [Nagios-users] Help - I am unable to get the NSClient++ to restart 
services

 

Jonathan,

The client installed on the host doesn't matter if both of them have support to 
nrpe. They will have a configuration file where you'll define the commands to 
run over check_nrpe.

NSClient++ uses NSC.ini
OpMonAgent uses opmonagent.ini

But to make it easy, the OpMonAgent has a command to restart services built-in 
his configuration file.

So, if you have the OpMonAgent running on host, you just need run the following 
command from your nagios server:

/usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS$ -p 5666 -n -c 
service_control -a spooler start

But, if you are using NSClient++ you need define a command into the 
configuration file first, then you'll use this command in the check_nrpe.

Fernando Rocha
OpServices Tecnologia da Informação

- Original Message -
From: Jonathan Williams [EMAIL PROTECTED]
To: Fernando Rocha [EMAIL PROTECTED]
Cc: Nagios Users Mailinglist nagios-users@lists.sourceforge.net
Sent: Tuesday, July 15, 2008 4:57:07 PM (GMT-0300) Auto-Detected
Subject: RE: [Nagios-users] Help - I am unable to get the NSClient++ to restart 
services

I feel like I am back at square one.  It seems like a simple task to get Nagios 
to restart a service.  I have NRPE now running on the server under xinedt, and 
switched the client back to NSClient++ from OpMon Agent.  Both support NRPE.  I 
am not sure if I am supposed to get a service restarted with a NRPE_Check 
command like:

 

/usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS$ -p 5666 -n -c 
service_control -a spooler start

  

Or am is supposed to create scripts on the host that will restart a service 
like a .bat file with a net start spooler command and than get an 
event_handler set up to call that script.  It seems there are different ways to 
do it and I am being pulled both directions.  I am new to Nagios as well as 
Linux and have been able to scrap my way thus far while learning a lot about 
both, but am about ready to call it quits.  I was pointed to the NakedNuns 
website to the section on CheckExternalScripts, but honestly could not make 
much sense of it.

 



From: Fernando Rocha [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 15, 2008 4:38 AM
To: Jonathan Williams
Cc: Nagios Users Mailinglist
Subject: Re: [Nagios-users] Help - I am unable to get the NSClient++ to restart 
services

 

Jonathan,

make sure that you have the xinetd installed and check if there is the 
following directory:

[EMAIL PROTECTED] ~]# ls /etc/xinetd.d/
chargen-dgram   daytime-dgram   discard-dgram   echo-dgram   eklogin   
gssftp  krb5-telnet  ktalk  rsync  time-dgram
chargen-stream  daytime-stream  discard-stream  echo-stream  ekrb5-telnet  
klogin  kshell   nrpe   tcpmux-server  time-stream

if you don't have that, try to install by apt-get!

and then, run the command again

Make install-xinetd

or you can install just writing a file like this:
[EMAIL PROTECTED] ~]# cat /etc/xinetd.d/nrpe 
service nrpe
{
flags = REUSE
socket_type = stream
wait = no
only_from = 127.0.0.1 (PUT YOURS NARIOS SERVER'S IPS HERE)
user = nagios (PUT THE NAGIOS USER HERE)
server = /usr/local/nagios/libexec/nrpe (THE NRPE SERVER)
server_args = -c /usr/local/nagios/libexec/nrpe.cfg --inetd (THE NRPE 
CONFIG FILE)
log_on_failure += USERID
disable = no
}

and then restart xinetd!

Fernando Rocha

Re: [Nagios-users] Help - I am unable to get the NSClient++ to restart services

2008-07-15 Thread Jonathan Williams
That worked great.  All you guys have been invaluable!

 

Thanks again,

 

Jon

 



From: Fernando Rocha [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 15, 2008 4:38 AM
To: Jonathan Williams
Cc: Nagios Users Mailinglist
Subject: Re: [Nagios-users] Help - I am unable to get the NSClient++ to restart 
services

 

Jonathan,

make sure that you have the xinetd installed and check if there is the 
following directory:

[EMAIL PROTECTED] ~]# ls /etc/xinetd.d/
chargen-dgram   daytime-dgram   discard-dgram   echo-dgram   eklogin   
gssftp  krb5-telnet  ktalk  rsync  time-dgram
chargen-stream  daytime-stream  discard-stream  echo-stream  ekrb5-telnet  
klogin  kshell   nrpe   tcpmux-server  time-stream

if you don't have that, try to install by apt-get!

and then, run the command again

Make install-xinetd

or you can install just writing a file like this:
[EMAIL PROTECTED] ~]# cat /etc/xinetd.d/nrpe 
service nrpe
{
flags = REUSE
socket_type = stream
wait = no
only_from = 127.0.0.1 (PUT YOURS NARIOS SERVER'S IPS HERE)
user = nagios (PUT THE NAGIOS USER HERE)
server = /usr/local/nagios/libexec/nrpe (THE NRPE SERVER)
server_args = -c /usr/local/nagios/libexec/nrpe.cfg --inetd (THE NRPE 
CONFIG FILE)
log_on_failure += USERID
disable = no
}

and then restart xinetd!

Fernando Rocha
OpServices Tecnologia da Informação


- Original Message -
From: Jonathan Williams [EMAIL PROTECTED]
To: Fernando Rocha [EMAIL PROTECTED]
Sent: Monday, July 14, 2008 7:07:57 PM (GMT-0300) Auto-Detected
Subject: RE: [Nagios-users] Help - I am unable to get the NSClient++ to restart 
services

I was able to compile that without ssl and was able to install the pugin's 
using the following

 

Make install-plugin

Make install-daemon

Make install-daemon-config

 

Those worked finer however the next step says:

 

Install the NRPE daemon as a service under xinetd

Make install-xinetd

 

I run that command and get:

[EMAIL PROTECTED]:- /downloads/nrpe-2.8# cannot create regular file 
'/ect/xinetd.d/nrpe' No such file or directory

make: *** [install-xinetd] Error 1

 

Any thoughts??

 

Thanks,

 

Jon

 



From: Fernando Rocha [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 14, 2008 11:49 AM
To: Jonathan Williams
Subject: Re: [Nagios-users] Help - I am unable to get the NSClient++ to restart 
services

 

Hi Jonathan!

try to use the option --disable-ssl when you run ./configure

Fernando Rocha
OpServices Tecnologia da Informação



- Original Message -
From: Jonathan Williams [EMAIL PROTECTED]
To: Paulo Ribas [EMAIL PROTECTED]
Cc: nagios-users@lists.sourceforge.net
Sent: Monday, July 14, 2008 11:52:48 AM (GMT-0300) Auto-Detected
Subject: Re: [Nagios-users] Help - I am unable to get the NSClient++ to restart 
services

I am having a little trouble installing the NRPE 2.8 plug in Ubuntu.  I am able 
to extract the source code tarball and than I am having issues after that.  Per 
the instructions I am trying to compile the NRPE add-on by running

 

./configure

make all

 

After I type ./configure I get a message at the end of the compile job saying 
configuration error: Cannot find ssl libraries.  Than if I try to go further 
by installing the plugins by typing make all or the individual make 
install-pluggin I get an error saying ** No rule to make target 'all'.  Stop.  

 



From: Paulo Ribas [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 11, 2008 2:04 PM
To: Jonathan Williams
Subject: Re: [Nagios-users] Help - I am unable to get the NSClient++ to restart 
services

 

Ok, If you need, contact me.

[]'s
--



- Jonathan Williams wrote: 
 

I found the NRPE add-on (not plug-in) so I will download and install that.  
I'll let you know if I run into anything.  You have been more than helpful.

 

Thanks,

 

Jon

 



From: Paulo Ribas [mailto:[EMAIL PROTECTED] 
 Sent: Friday, July 11, 2008 1:49 PM
 To: Jonathan Williams
 Subject: Re: [Nagios-users] Help - I am unable to get the NSClient++ to 
 restart services

 

check_nrpe is part of the package nrpe, if you use ubuntu, I believe that only 
an apt-get install nrpe solve your problem.

[]'s
 --
 


 
 - Jonathan Williams wrote: 
  

OK.. I do not have check_nrpe so apparently I need to download that plug-in on 
by Ubuntu box.

 



From: Paulo Ribas [mailto:[EMAIL PROTECTED] 
  Sent: Friday, July 11, 2008 1:42 PM
  To: Jonathan Williams
  Subject: Re: [Nagios-users] Help - I am unable to get the NSClient++ to 
  restart services

 

The commando must be:
  
  

define command{

command_name restart-Spooler

command_line PATH/check_nrpe -H $HOSTADDRESS$ -p 5666 -n -c 
service_control -a Spooler start

}


  
  ex:

define command{

command_name restart-Spooler

command_line /usr/local

Re: [Nagios-users] Help - I am unable to get the NSClient++ to restart services

2008-07-15 Thread Jonathan Williams
I feel like I am back at square one.  It seems like a simple task to get Nagios 
to restart a service.  I have NRPE now running on the server under xinedt, and 
switched the client back to NSClient++ from OpMon Agent.  Both support NRPE.  I 
am not sure if I am supposed to get a service restarted with a NRPE_Check 
command like:

 

/usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS$ -p 5666 -n -c 
service_control -a spooler start

  

Or am is supposed to create scripts on the host that will restart a service 
like a .bat file with a net start spooler command and than get an 
event_handler set up to call that script.  It seems there are different ways to 
do it and I am being pulled both directions.  I am new to Nagios as well as 
Linux and have been able to scrap my way thus far while learning a lot about 
both, but am about ready to call it quits.  I was pointed to the NakedNuns 
website to the section on CheckExternalScripts, but honestly could not make 
much sense of it.

 



From: Fernando Rocha [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 15, 2008 4:38 AM
To: Jonathan Williams
Cc: Nagios Users Mailinglist
Subject: Re: [Nagios-users] Help - I am unable to get the NSClient++ to restart 
services

 

Jonathan,

make sure that you have the xinetd installed and check if there is the 
following directory:

[EMAIL PROTECTED] ~]# ls /etc/xinetd.d/
chargen-dgram   daytime-dgram   discard-dgram   echo-dgram   eklogin   
gssftp  krb5-telnet  ktalk  rsync  time-dgram
chargen-stream  daytime-stream  discard-stream  echo-stream  ekrb5-telnet  
klogin  kshell   nrpe   tcpmux-server  time-stream

if you don't have that, try to install by apt-get!

and then, run the command again

Make install-xinetd

or you can install just writing a file like this:
[EMAIL PROTECTED] ~]# cat /etc/xinetd.d/nrpe 
service nrpe
{
flags = REUSE
socket_type = stream
wait = no
only_from = 127.0.0.1 (PUT YOURS NARIOS SERVER'S IPS HERE)
user = nagios (PUT THE NAGIOS USER HERE)
server = /usr/local/nagios/libexec/nrpe (THE NRPE SERVER)
server_args = -c /usr/local/nagios/libexec/nrpe.cfg --inetd (THE NRPE 
CONFIG FILE)
log_on_failure += USERID
disable = no
}

and then restart xinetd!

Fernando Rocha
OpServices Tecnologia da Informação


- Original Message -
From: Jonathan Williams [EMAIL PROTECTED]
To: Fernando Rocha [EMAIL PROTECTED]
Sent: Monday, July 14, 2008 7:07:57 PM (GMT-0300) Auto-Detected
Subject: RE: [Nagios-users] Help - I am unable to get the NSClient++ to restart 
services

I was able to compile that without ssl and was able to install the pugin's 
using the following

 

Make install-plugin

Make install-daemon

Make install-daemon-config

 

Those worked finer however the next step says:

 

Install the NRPE daemon as a service under xinetd

Make install-xinetd

 

I run that command and get:

[EMAIL PROTECTED]:- /downloads/nrpe-2.8# cannot create regular file 
'/ect/xinetd.d/nrpe' No such file or directory

make: *** [install-xinetd] Error 1

 

Any thoughts??

 

Thanks,

 

Jon

 



From: Fernando Rocha [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 14, 2008 11:49 AM
To: Jonathan Williams
Subject: Re: [Nagios-users] Help - I am unable to get the NSClient++ to restart 
services

 

Hi Jonathan!

try to use the option --disable-ssl when you run ./configure

Fernando Rocha
OpServices Tecnologia da Informação



- Original Message -
From: Jonathan Williams [EMAIL PROTECTED]
To: Paulo Ribas [EMAIL PROTECTED]
Cc: nagios-users@lists.sourceforge.net
Sent: Monday, July 14, 2008 11:52:48 AM (GMT-0300) Auto-Detected
Subject: Re: [Nagios-users] Help - I am unable to get the NSClient++ to restart 
services

I am having a little trouble installing the NRPE 2.8 plug in Ubuntu.  I am able 
to extract the source code tarball and than I am having issues after that.  Per 
the instructions I am trying to compile the NRPE add-on by running

 

./configure

make all

 

After I type ./configure I get a message at the end of the compile job saying 
configuration error: Cannot find ssl libraries.  Than if I try to go further 
by installing the plugins by typing make all or the individual make 
install-pluggin I get an error saying ** No rule to make target 'all'.  Stop.  

 



From: Paulo Ribas [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 11, 2008 2:04 PM
To: Jonathan Williams
Subject: Re: [Nagios-users] Help - I am unable to get the NSClient++ to restart 
services

 

Ok, If you need, contact me.

[]'s
--



- Jonathan Williams wrote: 
 

I found the NRPE add-on (not plug-in) so I will download and install that.  
I'll let you know if I run into anything.  You have been more than helpful.

 

Thanks,

 

Jon

 



From: Paulo Ribas [mailto:[EMAIL PROTECTED] 
 Sent: Friday, July 11, 2008 1:49 PM

Re: [Nagios-users] Help - I am unable to get the NSClient++ to restart services

2008-07-15 Thread Jonathan Williams
/usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS$ -p 5666 -n -c 
service_control -a spooler start

 

That is exactly the syntax I am using and it did not work with OpMon agent.  
Perhaps I had a bad opmonagent.ini file.  Here is all it has:

 

[OPMONAGENT]

enable=1

password=None

port=12489

allow_from=my server IP address

; if set to 1, opmonagent will try to autodetect language settings

autodetect_counters=1

; if autodectet_counters set to zero, need to specify which to use, otherwise, 
default W2K

use_counters=W2K

max_connections=300

debuglevel=0

 

[NRPE]

enable=1

port=5666

command_timeout=60

allow_from=192.168.1.94

max_connections=300

debuglevel=0

 

Than there is a a [NRPECOMMAND]section but everything else is in Spanish so I 
can make use of it.  Is there a link to another opmonagent.ini file.  The one I 
have has no commands but does have this:

 

service_control=c:\opmon\service-control.cmd $ARG1$ $ARG2$

 

However there is no services-control.cmd file in the opmon folder.  This looks 
to be the issue.  

 



From: Fernando Rocha [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 15, 2008 2:11 PM
To: Jonathan Williams
Cc: Nagios Users Mailinglist
Subject: Re: [Nagios-users] Help - I am unable to get the NSClient++ to restart 
services

 

Jonathan,

The client installed on the host doesn't matter if both of them have support to 
nrpe. They will have a configuration file where you'll define the commands to 
run over check_nrpe.

NSClient++ uses NSC.ini
OpMonAgent uses opmonagent.ini

But to make it easy, the OpMonAgent has a command to restart services built-in 
his configuration file.

So, if you have the OpMonAgent running on host, you just need run the following 
command from your nagios server:

/usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS$ -p 5666 -n -c 
service_control -a spooler start

But, if you are using NSClient++ you need define a command into the 
configuration file first, then you'll use this command in the check_nrpe.

Fernando Rocha
OpServices Tecnologia da Informação

- Original Message -
From: Jonathan Williams [EMAIL PROTECTED]
To: Fernando Rocha [EMAIL PROTECTED]
Cc: Nagios Users Mailinglist nagios-users@lists.sourceforge.net
Sent: Tuesday, July 15, 2008 4:57:07 PM (GMT-0300) Auto-Detected
Subject: RE: [Nagios-users] Help - I am unable to get the NSClient++ to restart 
services

I feel like I am back at square one.  It seems like a simple task to get Nagios 
to restart a service.  I have NRPE now running on the server under xinedt, and 
switched the client back to NSClient++ from OpMon Agent.  Both support NRPE.  I 
am not sure if I am supposed to get a service restarted with a NRPE_Check 
command like:

 

/usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS$ -p 5666 -n -c 
service_control -a spooler start

  

Or am is supposed to create scripts on the host that will restart a service 
like a .bat file with a net start spooler command and than get an 
event_handler set up to call that script.  It seems there are different ways to 
do it and I am being pulled both directions.  I am new to Nagios as well as 
Linux and have been able to scrap my way thus far while learning a lot about 
both, but am about ready to call it quits.  I was pointed to the NakedNuns 
website to the section on CheckExternalScripts, but honestly could not make 
much sense of it.

 



From: Fernando Rocha [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 15, 2008 4:38 AM
To: Jonathan Williams
Cc: Nagios Users Mailinglist
Subject: Re: [Nagios-users] Help - I am unable to get the NSClient++ to restart 
services

 

Jonathan,

make sure that you have the xinetd installed and check if there is the 
following directory:

[EMAIL PROTECTED] ~]# ls /etc/xinetd.d/
chargen-dgram   daytime-dgram   discard-dgram   echo-dgram   eklogin   
gssftp  krb5-telnet  ktalk  rsync  time-dgram
chargen-stream  daytime-stream  discard-stream  echo-stream  ekrb5-telnet  
klogin  kshell   nrpe   tcpmux-server  time-stream

if you don't have that, try to install by apt-get!

and then, run the command again

Make install-xinetd

or you can install just writing a file like this:
[EMAIL PROTECTED] ~]# cat /etc/xinetd.d/nrpe 
service nrpe
{
flags = REUSE
socket_type = stream
wait = no
only_from = 127.0.0.1 (PUT YOURS NARIOS SERVER'S IPS HERE)
user = nagios (PUT THE NAGIOS USER HERE)
server = /usr/local/nagios/libexec/nrpe (THE NRPE SERVER)
server_args = -c /usr/local/nagios/libexec/nrpe.cfg --inetd (THE NRPE 
CONFIG FILE)
log_on_failure += USERID
disable = no
}

and then restart xinetd!

Fernando Rocha
OpServices Tecnologia da Informação


- Original Message -
From: Jonathan Williams [EMAIL PROTECTED]
To: Fernando Rocha [EMAIL PROTECTED]
Sent: Monday, July 14, 2008 7:07:57 PM (GMT-0300) Auto-Detected
Subject: RE: [Nagios-users] Help - I am

Re: [Nagios-users] Help - I am unable to get the NSClient++ to restart services

2008-07-15 Thread Jonathan Williams
OK, after some searching I found another download of OpMonAgent and it has a 
lot more in it.  The previous one had 3 files whereas this one has numerous 
.bat files and others. However the ini is still in Spanish.  

 

[NRPECOMMAND]

;Usado para testar se está funcionando o agente

test=c:\opmon\test.bat

;Usado para verificar se existe algum serviço configurado como automático mas 
que não está rodando

services=cmd /c cscript //NOLOGO c:\opmon\check_all_services.wsf

;Usado para verificar se existe algum serviço configurado como automático mas 
que não está rodando, 

;porém ignora o Service Name ou Display Name passado por parâmetro, para 
mais de um separe por vírgula

services_exclude=cmd /c cscript //NOLOGO c:\opmon\check_all_services.wsf 
/exclude:$ARG1$

;Usado de forma genérica para plugins opservices.exe, passando por parâmetro 
nome_executável e mais 8 possíveis parâmetros

;onde um parâmetro não usado deve-se passar 0

check_remote=c:\opmon\check_remote.cmd $ARG1$ $ARG2$ $ARG3$ $ARG4$ $ARG5$ 
$ARG6$ $ARG7$ $ARG8$ $ARG9$

;Usado para iniciar, parar ou restartar um serviço, deve-se passar por 
parâmetro o Service Name e a ação(stop, start ou restart)

service_control=c:\opmon\service-control.cmd $ARG1$ $ARG2$

;Lê o conteúdo de um arquivo, que contenha uma linha com um valor

read_file=c:\opmon\read_file.bat $ARG1$

 

I tried some translator apps but a bad translation is probably harder to read 
than actual Spanish.

 



From: Fernando Rocha [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 15, 2008 2:11 PM
To: Jonathan Williams
Cc: Nagios Users Mailinglist
Subject: Re: [Nagios-users] Help - I am unable to get the NSClient++ to restart 
services

 

Jonathan,

The client installed on the host doesn't matter if both of them have support to 
nrpe. They will have a configuration file where you'll define the commands to 
run over check_nrpe.

NSClient++ uses NSC.ini
OpMonAgent uses opmonagent.ini

But to make it easy, the OpMonAgent has a command to restart services built-in 
his configuration file.

So, if you have the OpMonAgent running on host, you just need run the following 
command from your nagios server:

/usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS$ -p 5666 -n -c 
service_control -a spooler start

But, if you are using NSClient++ you need define a command into the 
configuration file first, then you'll use this command in the check_nrpe.

Fernando Rocha
OpServices Tecnologia da Informação

- Original Message -
From: Jonathan Williams [EMAIL PROTECTED]
To: Fernando Rocha [EMAIL PROTECTED]
Cc: Nagios Users Mailinglist nagios-users@lists.sourceforge.net
Sent: Tuesday, July 15, 2008 4:57:07 PM (GMT-0300) Auto-Detected
Subject: RE: [Nagios-users] Help - I am unable to get the NSClient++ to restart 
services

I feel like I am back at square one.  It seems like a simple task to get Nagios 
to restart a service.  I have NRPE now running on the server under xinedt, and 
switched the client back to NSClient++ from OpMon Agent.  Both support NRPE.  I 
am not sure if I am supposed to get a service restarted with a NRPE_Check 
command like:

 

/usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS$ -p 5666 -n -c 
service_control -a spooler start

  

Or am is supposed to create scripts on the host that will restart a service 
like a .bat file with a net start spooler command and than get an 
event_handler set up to call that script.  It seems there are different ways to 
do it and I am being pulled both directions.  I am new to Nagios as well as 
Linux and have been able to scrap my way thus far while learning a lot about 
both, but am about ready to call it quits.  I was pointed to the NakedNuns 
website to the section on CheckExternalScripts, but honestly could not make 
much sense of it.

 



From: Fernando Rocha [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 15, 2008 4:38 AM
To: Jonathan Williams
Cc: Nagios Users Mailinglist
Subject: Re: [Nagios-users] Help - I am unable to get the NSClient++ to restart 
services

 

Jonathan,

make sure that you have the xinetd installed and check if there is the 
following directory:

[EMAIL PROTECTED] ~]# ls /etc/xinetd.d/
chargen-dgram   daytime-dgram   discard-dgram   echo-dgram   eklogin   
gssftp  krb5-telnet  ktalk  rsync  time-dgram
chargen-stream  daytime-stream  discard-stream  echo-stream  ekrb5-telnet  
klogin  kshell   nrpe   tcpmux-server  time-stream

if you don't have that, try to install by apt-get!

and then, run the command again

Make install-xinetd

or you can install just writing a file like this:
[EMAIL PROTECTED] ~]# cat /etc/xinetd.d/nrpe 
service nrpe
{
flags = REUSE
socket_type = stream
wait = no
only_from = 127.0.0.1 (PUT YOURS NARIOS SERVER'S IPS HERE)
user = nagios (PUT THE NAGIOS USER HERE)
server = /usr/local/nagios/libexec/nrpe (THE NRPE SERVER)
server_args = -c /usr/local

Re: [Nagios-users] Help - I am unable to get the NSClient++ to restart services

2008-07-14 Thread Jonathan Williams
I am having a little trouble installing the NRPE 2.8 plug in Ubuntu.  I
am able to extract the source code tarball and than I am having issues
after that.  Per the instructions I am trying to compile the NRPE add-on
by running

 

./configure

make all

 

After I type ./configure I get a message at the end of the compile job
saying configuration error: Cannot find ssl libraries.  Than if I try
to go further by installing the plugins by typing make all or the
individual make install-pluggin I get an error saying ** No rule to make
target 'all'.  Stop.  

 



From: Paulo Ribas [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 11, 2008 2:04 PM
To: Jonathan Williams
Subject: Re: [Nagios-users] Help - I am unable to get the NSClient++ to
restart services

 

Ok, If you need, contact me.

[]'s
--





- Jonathan Williams wrote: 
 

I found the NRPE add-on (not plug-in) so I will download and install
that.  I'll let you know if I run into anything.  You have been more
than helpful.

 

Thanks,

 

Jon

 



From: Paulo Ribas [mailto:[EMAIL PROTECTED] 
 Sent: Friday, July 11, 2008 1:49 PM
 To: Jonathan Williams
 Subject: Re: [Nagios-users] Help - I am unable to get the NSClient++
to restart services

 

check_nrpe is part of the package nrpe, if you use ubuntu, I believe
that only an apt-get install nrpe solve your problem.

[]'s
 --
 


 
 - Jonathan Williams wrote: 
  

OK.. I do not have check_nrpe so apparently I need to download that
plug-in on by Ubuntu box.

 



From: Paulo Ribas [mailto:[EMAIL PROTECTED] 
  Sent: Friday, July 11, 2008 1:42 PM
  To: Jonathan Williams
  Subject: Re: [Nagios-users] Help - I am unable to get the NSClient++
to restart services

 

The commando must be:
  
  

define command{

command_name restart-Spooler

command_line PATH/check_nrpe -H $HOSTADDRESS$ -p 5666 -n -c
service_control -a Spooler start

}


  
  ex:

define command{

command_name restart-Spooler

command_line /usr/local/nagios/libexec/check_nrpe -H
$HOSTADDRESS$ -p 5666 -n -c service_control -a Spooler start

}

risk being sent to /dev/null

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08___
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

[Nagios-users] Help - I am unable to get the NSClient++ to restart services

2008-07-11 Thread Jonathan Williams
Hello everyone,  I am new to Nagios and am looking for some help.  I
already posted this in the forum as well.  I can successful get Nagios
to monitor any service I need, but I can't get it to restart.  Here is
my situation up to date: (from the forums)

 

I did make sure event handler was enabled, but the documentation refers
to scripting the start up of linux services, not Windows. I figured I
can create a .bat file to do a simple net start, but how does Nagios run
it? Is it something like this? (example of the server service)

define service{
host_name somehost
service_description Server Service
max_check_attempts 4
event_handler restart_server
}

Than for the handler command:
define command{
command_name restart-httpd
(This is where I am unsure. Do I give it a path to the .bat file?)

Is nagios able to run this file from the host PC. In these linux script
examples I am unsure if the script is on the Nagios server of the host
server. Any help would be awesome. Hopefully I'm close to accurate here.

 

I got a reply:

 

You can use NRPE/NSClient++ and instead of using it to run remote
scripts to check something, use it to restart your services. See

http://nagios.sourceforge.net/docs/3_0/monitoring-windows.html
http://trac.nakednuns.org/nscp/

 

However still cant get NSClient to start the service.  The links
provided detail how to set up monitor host services. This works great.
However I cannot get the NSCLient++ to actually restart the service. I
edited the NSC.INI file to comment out the check_all_services section
and have the values set to started however it still shows the service
as stopped and it will not restart it. I am assuming there is a step I
am missing in this in some config file somewhere. Any help would be
greatly appreciated as I am under a deadline to have this up by this
weekend. Management thought this would be easier than it is and gave me
two days.

 

Any help on what I am missing would be greatly appreciated.

 

 

Jonathan Williams

Sr. Systems Administrator

G4S Justice Services, Inc.

Tel: 800.589.6003 ext 1308

[EMAIL PROTECTED]

 

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08___
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