Re: [Nagios-users] Migrating to v3

2008-07-21 Thread Andreas Ericsson
Ciro Iriarte wrote:
 Hi,
 
 I'm migrating our v2.x installation of nagios to 3.0.3 and i'm stuck
 currently, can sameone check if i'm missing something here?:
 
 Verification reports:
 -
 Error: Service description, host name, or check command is NULL
 Error: Could not register service (config file
 '/etc/nagios/objects/services/filesystems.win.cfg', starting on line
 1)
 -
 
 First lines of filesystems.win.cfg:
 
 -
 define service{
 use filesystems
 hostgroup_name  nrpe_nt
 service_description Unidad c:\

Nagios 3 supports line-continuation in configuration files. Remove the backslash
at the end of this line and you'll be fine.

-- 
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] Thoughts about a custom plugin

2008-07-21 Thread Andreas Ericsson
stan wrote:
 I have a number of isolated networks, that is networks which are
 deliberately non-routable to. On each of these networks, I have a single
 host that has a 2nd NIC thta is on the general network. I don't can't to
 turn on forwarding on this host. I would like to monitor some statuses on
 the machines on the isolated networks.
 
 I am thinking of doing this using a Nagios plugin. My first thoughts on
 this plugin are to have the plugin execute a script on the dual homed
 machines. This script would, as a first cut, ping the internal machines, and
 return up/down statuses. Later I might want too expand on this by having
 the script do some other checks on the isolated machines.
 

Sounds like you'd be better off installing Nagios on each of the dual-homed
servers and submitting the check-results passively up to the main monitoring
machine.

Actually, merlin would be a very nice candidate for this, although it's still
in early beta. See http://www.op5.org/git/?p=nagios-merlin.git;a=summary

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


[Nagios-users] installation problem

2008-07-21 Thread Thierry Granier
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi, everybody
i'm trying to install Nagios on Opensuse 11.0 and i get this message
after ./configure in the config.log:

.
configure:3149: checking pthreads.h usability
configure:3161: gcc -c -g -O2  conftest.c 5
conftest.c:68:22: error: pthreads.h: No such file or directory
configure:3167: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME 
| #define PACKAGE_TARNAME 
| #define PACKAGE_VERSION 
| #define PACKAGE_STRING 
| #define PACKAGE_BUGREPORT 
| #define STDC_HEADERS 1
...
the make is not created
Do you know what's the problem?
Many thanks
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iEYEARECAAYFAkiEV8oACgkQbG/s30EAZ3UcKgCdGr8Df+2409FkK0nGnFxi6zHE
r4kAnjVMNQcKa0+YKnGj8Pk0igrcUbQE
=8f4D
-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


Re: [Nagios-users] Thoughts about a custom plugin

2008-07-21 Thread dave stern - e-mail.pluribus.unum
This can be done without NRPE. We have a cluster on a private net.
The head node is visible from nagios so I wrote a plugin that lives
on the head node (The dual homed machine, in your case). On the nagios
side, a plugin ssh'es to the head node, runs the script which talks to
hosts on the private net and returns the output/status.

On Sun, Jul 20, 2008 at 11:17 AM, stan [EMAIL PROTECTED] wrote:
 On Sun, Jul 20, 2008 at 10:46:39AM -0400, Paulus, Jake wrote:
 You should really look into NRPE (Nagios Remote Plugin Execution)
 http://nagios.sourceforge.net/docs/3_0/addons.html#nrpe

 There are alternate versions of NRPE that run on Windows, etc. if you
 must do that. Check out NagiosExchange.org for those.

 You should find that you can use normal plugins you already use
 elsewhere with NRPE to do what you need.

 I'm not certain this is intended for exactly the application I have. perhaps
 it is, and I am misunderstanding it. let me clarify my application a bit
 with an ASCI diagram:

      ---
   |  |  ||||
   | NAGIOS   |--| DUAL   || TARGET |
   | Host |  | HOMED  |---+||
   |  |  | Machine|   |||
   |  |  ||   |||
      -   |--
  |
  |--
  |||
  || TARGET |
  +||
  |||
  |||
  |--
  ~

 The Nagios host can get to the dual homed machine, and I can use all the
 standard plugins to get status from it. What I want to do is get status from
 the TARGETS.

 Are you suggesting using NAPE running on the dual homed machines? And somehow
 using this to query the targets? The web page you pointed out makes me
 believe that NAPE is intended to allow me to execute checks on a reachable
 machine, by using local scripts there, rather than having the NAGIOS machine
 use the more traditional check_* plugins.

 Am I confused?
 --
 One of the main causes of the fall of the roman empire was that, lacking
 zero, they had no way to indicate successful termination of their C
 programs.

 -
 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] installation problem

2008-07-21 Thread Marc Powell

On Jul 21, 2008, at 4:32 AM, Thierry Granier wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Hi, everybody
 i'm trying to install Nagios on Opensuse 11.0 and i get this message
 after ./configure in the config.log:

 .
 configure:3149: checking pthreads.h usability
 configure:3161: gcc -c -g -O2  conftest.c 5
 conftest.c:68:22: error: pthreads.h: No such file or directory
 configure:3167: $? = 1
 configure: failed program was:
 | /* confdefs.h.  */
 |
 | #define PACKAGE_NAME 
 | #define PACKAGE_TARNAME 
 | #define PACKAGE_VERSION 
 | #define PACKAGE_STRING 
 | #define PACKAGE_BUGREPORT 
 | #define STDC_HEADERS 1
 ...

I this the end of config.log or just an error you found?

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


Re: [Nagios-users] installation problem

2008-07-21 Thread Marc Powell
Please always respond on list. Other comments below --

On Jul 21, 2008, at 7:39 AM, Thierry Granier wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Marc Powell a écrit :
 On Jul 21, 2008, at 4:32 AM, Thierry Granier wrote:


 configure:3149: checking pthreads.h usability
 configure:3161: gcc -c -g -O2  conftest.c 5
 conftest.c:68:22: error: pthreads.h: No such file or directory


 ...

 I this the end of config.log or just an error you found?



 This is not the end of config/log
 it's an error in the file

This is almost certainly not the problem as it is not necessary for  
this test to succeed. Please post the entire config.log.

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


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

Re: [Nagios-users] Thoughts about a custom plugin

2008-07-21 Thread Andy Shellam
Hi,

NRPE could do this job, sure you could write a custom plugin, but there 
are 2 possible alternatives already there (albeit they might be overhead 
for what you're trying to do, unless you want to monitor the  services 
on the dual-homed machine with Nagios as well.)

You could run NRPE on each target, and on the dual-homed machine, then 
Nagios would request the plugin to be executed on the targets and send 
the request via NRPE to the dual-homed machine, which would in turn 
request the plugin to be run on the appropriate host.  I do a similar 
thing to ping a router that cannot be reached from my Nagios machine, 
but can from one of the servers being monitored by Nagios.

e.g. Nagios -- check_nrpe -- asks dual-homed to check disk space on 
target1 -- check_nrpe -- dual-homed asks target1 to check diskspace -- 
check_disk -- DISK: OK

I have a feeling, however, that NCSA might be a more appropriate tool 
for this task, but I have no experience of it.  From what I understand, 
I believe it would be possible to run NRPE on the targets, use NCSA on 
the dual-homed host to execute the plugins on the targets via NRPE and 
submit the results to Nagios.

Hope this gives you some food for thought!

Regards,

Andy

dave stern - e-mail.pluribus.unum wrote:
 This can be done without NRPE. We have a cluster on a private net.
 The head node is visible from nagios so I wrote a plugin that lives
 on the head node (The dual homed machine, in your case). On the nagios
 side, a plugin ssh'es to the head node, runs the script which talks to
 hosts on the private net and returns the output/status.

 On Sun, Jul 20, 2008 at 11:17 AM, stan [EMAIL PROTECTED] wrote:
   
 On Sun, Jul 20, 2008 at 10:46:39AM -0400, Paulus, Jake wrote:
 
 You should really look into NRPE (Nagios Remote Plugin Execution)
 http://nagios.sourceforge.net/docs/3_0/addons.html#nrpe

 There are alternate versions of NRPE that run on Windows, etc. if you
 must do that. Check out NagiosExchange.org for those.

 You should find that you can use normal plugins you already use
 elsewhere with NRPE to do what you need.

   
 I'm not certain this is intended for exactly the application I have. perhaps
 it is, and I am misunderstanding it. let me clarify my application a bit
 with an ASCI diagram:

      ---
   |  |  ||||
   | NAGIOS   |--| DUAL   || TARGET |
   | Host |  | HOMED  |---+||
   |  |  | Machine|   |||
   |  |  ||   |||
      -   |--
  |
  |--
  |||
  || TARGET |
  +||
  |||
  |||
  |--
  ~

 The Nagios host can get to the dual homed machine, and I can use all the
 standard plugins to get status from it. What I want to do is get status from
 the TARGETS.

 Are you suggesting using NAPE running on the dual homed machines? And somehow
 using this to query the targets? The web page you pointed out makes me
 believe that NAPE is intended to allow me to execute checks on a reachable
 machine, by using local scripts there, rather than having the NAGIOS machine
 use the more traditional check_* plugins.

 Am I confused?
 --
 One of the main causes of the fall of the roman empire was that, lacking
 zero, they had no way to indicate successful termination of their C
 programs.

 -
 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
 

[Nagios-users] Monitor log file for inactivity?

2008-07-21 Thread Sean Carolan
How would you use nagios to monitor a log file for inactivity?  I was
looking at the check_file_age plugin and thought it might work for
this purpose.

-
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] Migrating to v3

2008-07-21 Thread Ciro Iriarte
2008/7/21 Andreas Ericsson [EMAIL PROTECTED]:
 Ciro Iriarte wrote:

 Hi,

 I'm migrating our v2.x installation of nagios to 3.0.3 and i'm stuck
 currently, can sameone check if i'm missing something here?:

 Verification reports:
 -
 Error: Service description, host name, or check command is NULL
 Error: Could not register service (config file
 '/etc/nagios/objects/services/filesystems.win.cfg', starting on line
 1)
 -

 First lines of filesystems.win.cfg:

 -
 define service{
use filesystems
hostgroup_name  nrpe_nt
service_description Unidad c:\

 Nagios 3 supports line-continuation in configuration files. Remove the
 backslash
 at the end of this line and you'll be fine.

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


Thanks to both of you, that was the issue, I had to add \\ instead
and it worked!

Regards,
Ciro

-
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] Thoughts about a custom plugin

2008-07-21 Thread Jay R. Ashworth
On Sun, Jul 20, 2008 at 11:17:16AM -0400, stan wrote:
 On Sun, Jul 20, 2008 at 10:46:39AM -0400, Paulus, Jake wrote:
  You should really look into NRPE (Nagios Remote Plugin Execution)
  http://nagios.sourceforge.net/docs/3_0/addons.html#nrpe
  
  There are alternate versions of NRPE that run on Windows, etc. if you
  must do that. Check out NagiosExchange.org for those.
  
  You should find that you can use normal plugins you already use
  elsewhere with NRPE to do what you need.
  
 I'm not certain this is intended for exactly the application I have. perhaps
 it is, and I am misunderstanding it. let me clarify my application a bit
 with an ASCI diagram:

Yeah; you have a non-routing dual homed machine on the edge of the LAN.

You can use NRPE to monitor both the machine you install it on, and,
with more careful configuation, any other machine it can talk to.

So you should be able to use NRPE on the dual-home as an application
gateway to let your Nagios console monitor all the machines at the
remote site.

Note, of course, that depending solely on non-routeability in the
kernel to isolate that LAN isn't good enough; I presume you're a) also
doing other stuff and b) smart enough not to tell us what that is.  :-)

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


Re: [Nagios-users] Monitor log file for inactivity?

2008-07-21 Thread Mark Young

On Jul 21, 2008, at 1:58 PM, Sean Carolan wrote:

 How would you use nagios to monitor a log file for inactivity?  I was
 looking at the check_file_age plugin and thought it might work for
 this purpose.

It all depends on how the application writes to a log file.  Simply  
checking the log file for age or size might not determine if the  
application is running accurately.  If you are sure you want to check  
the log file for age you will first have to figure out if the log file  
is stored on the local monitoring machine or a remote machine.  If it  
is the local machine you can simply create a new command with the  
check_file_age plugin and define a service for the local machine to  
use.  Otherwise if it is a remote machine you are going to need to run  
the plugins using NRPE ( http://www.nagios.org/download/addons/ ) or  
by SSH ( via plugin check_by_ssh ); for those you are going to need to  
nagios plugins compiled on the remote machine.

For a local check you could use something like the following in your  
commands.cfg and then add it as a service to your local box:

# 'check_file_age' command definition
define command{
 command_namecheck_file_age
 command_line$USER1$/check_file_age -w $ARG1$ -c $ARG2$ -f  
$ARG3$  # $ARG3$ is the full path to the log file.
 }



Or you might want to look on nagiosexchange.com to see if there is a  
plugin created specifically for the program you are trying to check.   
I would start by testing the plugins from the command line.

eg.
/path/to/check_file_age -h  (for help)
/path/to/check_file_age -w 100 -c 1000 -f /path/to/logfile


I hope this helps!


Mark Young
___
Nagios Enterprises, LLC
Web:www.nagios.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


[Nagios-users] read write error in checkresults

2008-07-21 Thread Gilbert Samson
Hello Nagios :)

I have finished my first instaltion two days back and I thought every thing is 
normal . In the morning I checked the message log and found ton of read/wright 
permision errors like this and this was only for ping check commands. 

Jul 21 22:03:08 nagios kernel: audit(1216702988.048:263963): avc:  denied  { 
read write } for  pid=13027 comm=ping 
path=/usr/local/nagios/var/spool/checkresults/checkehZYV1 dev=hda3 
ino=5201483 scontext=root:system_r:ping_t:s0 tcontext=root:object_r:usr_t:s0 
tclass=file

Jul 21 22:03:32 nagios kernel: audit(1216703012.212:263964): avc:  denied  { 
read write } for  pid=13031 comm=ping 
path=/usr/local/nagios/var/spool/checkresults/checkaJbTU8 dev=hda3 
ino=5201483 scontext=root:system_r:ping_t:s0 tcontext=root:object_r:usr_t:s0 
tclass=file

Folder permission
drwxr-xr-x 2 nagios nagios 20480 Jul 21 22:13 checkresults

My ping Check command:
$USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5

Aruguments 

check_ping!1000.0,40%!3000.0,80%


Forgive me if it is some basic error/stuff  and thank you very much for your 
help.

Kind Regards
Gilbert Samson



-
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