Re: [Nagios-users] Check_cpu

2008-10-09 Thread Hugo van der Kooij
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Patrick Morris wrote:
> On Thu, 09 Oct 2008, Michael Fern?ndez M wrote:
> 
>> Hi,
>>
>> Someone knows a plugin to check the cpu, but only if it's at 90% for 5
>> minutes?
>>
>> I do not need to check the cpu peak.
>>
>> Is for Linux... (Centos 5.2)
> 
> The standard check_cpu can do this.  Set the max to 90 and the retries
> to 5, one minute apart.  It'll check 5 times and alert if the CPU was 
> over 90 all five times.

It will take 5 (not so) random snapshots of the CPU usage at that moment.

If you want to monitor averages you could gather statistics wit RRD and
read the CPU counter to store those.

You can then also use RRD to check for the average over the last N minutes.

Sounds like a fun thing to make. But I get a lot of those
 in the queue and no immediate need for this particular fun project.

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)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFI7uwxBvzDRVjxmYERAgHNAJ96eJCmcRFHTqx2HmMvw1Ph/1i4gQCggQwB
JrWcrbjKFLMh/eNAOc+ftv4=
=qGrb
-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=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] How-to debug a NAGIOS-not-sending-email problem ?

2008-10-09 Thread Jon Angliss
On Wed, 08 Oct 2008 17:21:23 +0200, "M." Sébastien LELIÈVRE
<[EMAIL PROTECTED]> wrote:

>Greetings,
>
>I'm experiencing some odd issue with my nagios server. 
>
>It dosen't notify by email anymore

Anymore? So it worked before? What changed?  Stuff generally doesn't
stop working unless something was changed.

>When I execute the corresponding command in the nagios (user) shell, I
>receive an email

The notification commands below have macros in.  How did you execute
the same command?  Did you increase the debugging levels in nagios to
see what it was executing?

>I do not know where to start my investigation
>
>Here are some info : 
>
>notify-host-by-email : 
>
>/usr/bin/printf "%b" " Nagios \n\nNotification Type: $NOTIFICATIONTYPE
>$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo:
>$HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /usr/bin/mail -s
>"[$HOSTGROUPNOTES$ $NOTIFICATIONTYPE$ Host $HOSTSTATE$ in $HOSTNAME$]"
>$CONTACTEMAIL$ 
>
>
>notify-service-by-email : 
>
>/usr/bin/printf "%b" " Nagios \n\nNotification Type: $NOTIFICATIONTYPE
>$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress:$HOSTADDRESS
>$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional
>Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "[$HOSTGROUPNOTES$
>$NOTIFICATIONTYPE$ Service $SERVICESTATE$ in $HOSTNAME$/$SERVICEDESC$]"
>$CONTACTEMAIL$

1. Increase the debugging levels to see what the macros are
2. Make sure there are entries in the logs saying it generated the
alerts
-- 
Jon Angliss


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


Re: [Nagios-users] Sendmail setup with Nagios

2008-10-09 Thread Jon Angliss
On Wed, 8 Oct 2008 17:55:09 -0800, Izz Abdullah
<[EMAIL PROTECTED]> wrote:

>I've read the documentation, and have two options:
>1. relay alerts from the Nagios server to our local Exchange server (which is 
>too much company politics)
>2. setup sendmail correctly to send alerts
>
>So, I know now how to do number one (I think), but number 2, cannot.  I am an 
>experienced linux user, but have always been anti-sendmail because of the 
>different security risks over the past.  I am guessing that not only does 
>sendmail have to be installed, but the Nagios server must also act as a mail 
>server.  Can someone please guide me in arranging this setup correctly as I am 
>stuck and need to get alert notifications setup correctly soon.

I'm trying to figure out what you're trying to do.  Are you trying to
send your emails through the exchange server's SMTP service? Or are
you trying to get the server running nagios send them directly to
their destination?  

If you're trying to use the Exchange server as a relay, use the
SMARTHOST option in Sendmail.  However, I think that's overkill for
simply relaying.  Checkout nullmailer, or ssmtp.  Both are small,
lightweight smtp services that relay through a server, which in this
case would be your exchange server.  You just have to be cautious of
relying on your Exchange server, as if that goes down, you won't get
alerts.
-- 
Jon Angliss


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


Re: [Nagios-users] Host shows down while all services but ping show OK

2008-10-09 Thread Aaron Segura
Change your host check to something that actually works.

 



From: Masoud Tabrizi [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 09, 2008 3:17 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Host shows down while all services but ping show
OK

 

Hello All,

I am trying to monitor a windows based host over the internal network
using Nagios 2.9 and nrpe_nt.0.8.

Ping is not allowed over the network; I have setup the hosts and am able
to get response for the disk, cpu, memory, but the host itself shows
down as ping is not allowed over the network. Is there any way to get
around this?

 

Thanks for your help



Masoud Tabrizi

P Please consider the environment before printing this email 



 

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

Re: [Nagios-users] Host shows down while all services but ping show OK

2008-10-09 Thread Patrick Morris
On Thu, 09 Oct 2008, Masoud Tabrizi wrote:

> Hello All,
> I am trying to monitor a windows based host over the internal network using 
> Nagios 2.9 and nrpe_nt.0.8.
> Ping is not allowed over the network; I have setup the hosts and am able to 
> get response for the disk, cpu, memory, but the host itself shows down as 
> ping is not allowed over the network. Is there any way to get around this?

Sure. Don't use a ping as a host check if you can't ping hosts. Use some
other check that does work.

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


Re: [Nagios-users] Host shows down while all services but ping show OK

2008-10-09 Thread Masoud Tabrizi
Thanks for all the suggestions. I am all set now.
Created the new check_host and it worked perfectly.
Thanks again!
M

\\\|///   
   \\ - - // 
  ( @ @ ) 
  o00o-(_)-o00o-- 
Masoud Tabrizi 
---0ooo--- 
 ooo0  () 
 ())  / 
  \  ((_/ 
   \_) 


Make a new host check command.  Then define that for the hosts you  
want.  It seems nrpe is working on your systems so just use a simple  
check_nrpe command your host check on those hosts.

define command{
command_namenew_host_check_cmd
command_line$USER1$/check_nrpe -H $HOSTADDRESS$
}


define host{

check_command   new_host_check_cmd

}


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=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Check_cpu

2008-10-09 Thread Patrick Morris
On Thu, 09 Oct 2008, Michael Fern?ndez M wrote:

> Hi,
> 
> Someone knows a plugin to check the cpu, but only if it's at 90% for 5
> minutes?
> 
> I do not need to check the cpu peak.
> 
> Is for Linux... (Centos 5.2)
> 
> Thanks!!!
> 
> Michael.-

The standard check_cpu can do this.  Set the max to 90 and the retries
to 5, one minute apart.  It'll check 5 times and alert if the CPU was 
over 90 all five times.

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


Re: [Nagios-users] Host shows down while all services but ping show OK

2008-10-09 Thread Mark Young

On Oct 9, 2008, at 4:17 PM, Masoud Tabrizi wrote:

> Hello All,
> I am trying to monitor a windows based host over the internal  
> network using Nagios 2.9 and nrpe_nt.0.8.
> Ping is not allowed over the network; I have setup the hosts and am  
> able to get response for the disk, cpu, memory, but the host itself  
> shows down as ping is not allowed over the network. Is there any way  
> to get around this?

Make a new host check command.  Then define that for the hosts you  
want.  It seems nrpe is working on your systems so just use a simple  
check_nrpe command your host check on those hosts.

define command{
command_namenew_host_check_cmd
command_line$USER1$/check_nrpe -H $HOSTADDRESS$
}


define host{

check_command   new_host_check_cmd

}


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=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Check_cpu

2008-10-09 Thread Jim . Melin


I have been working on a modified check_cpu process that will keep some history 
and be able to average it. Mostly because I cannot explain check_load
clearly enough to management to use it as a resource alarm.  I will post back 
here in a while when I have it working to my satisfaction.

James Melin
Sr. Systems Software Programmer
Hennepin County Mainframe Services
612-348-7147



  
 Michael Fernández M <[EMAIL PROTECTED]>
 

  
 10/09/2008 03:56 PM
   To 
 
nagios-users@lists.sourceforge.net  
 

   cc 

  

  Subject 
 
[Nagios-users] Check_cpu
 

  

  

  

  

  

  




Hi,

Someone knows a plugin to check the cpu, but only if it's at 90% for 5
minutes?

I do not need to check the cpu peak.

Is for Linux... (Centos 5.2)

Thanks!!!

Michael.-


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


Disclaimer: Information in this message or an attachment may be government data 
and thereby subject to the Minnesota Government Data Practices Act, Minnesota 
Statutes, Chapter 13, may be subject to attorney-client or work product 
privilege, may be confidential, privileged, proprietary, or otherwise 
protected, and the unauthorized review, copying, retransmission, or other use 
or disclosure of the information is strictly prohibited. If you are not the 
intended recipient of this message, please immediately notify the sender of the 
transmission error and then promptly delete this message from your computer 
system.   
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Host shows down while all services but ping show OK

2008-10-09 Thread Masoud Tabrizi
Hello All,

I am trying to monitor a windows based host over the internal network using
Nagios 2.9 and nrpe_nt.0.8.

Ping is not allowed over the network; I have setup the hosts and am able to
get response for the disk, cpu, memory, but the host itself shows down as
ping is not allowed over the network. Is there any way to get around this?

 

Thanks for your help



Masoud Tabrizi

P Please consider the environment before printing this email 



 

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

Re: [Nagios-users] Check_cpu

2008-10-09 Thread Michael Fernández M
On Thu, 2008-10-09 at 17:01 -0400, Valdinger, Stephen (DOV, MSX) wrote:
> Why not check-cpu from the nagios plugins??
> 

I already did, but nothing like that i found

Michael.-

> 
> Stephen Valdinger
> MIS Helpdesk Coordinator
> P: 330.365.3622
> C: 740.491.0958
> 
> 
> -Original Message-
> From: Michael Fernández M
> To: nagios-users@lists.sourceforge.net
> Sent: Thu Oct 09 17:45:47 2008
> Subject: [Nagios-users] Check_cpu
> 
> Hi, 
> 
> Someone knows a plugin to check the cpu, but only if it's at 90% for 5
> minutes?
> 
> I do not need to check the cpu peak.
> 
> Is for Linux... (Centos 5.2)
> 
> Thanks!!!
> 
> Michael.-
> 
> 
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
> 


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

Re: [Nagios-users] Check_cpu

2008-10-09 Thread Valdinger, Stephen (DOV, MSX)
Why not check-cpu from the nagios plugins??


Stephen Valdinger
MIS Helpdesk Coordinator
P: 330.365.3622
C: 740.491.0958


-Original Message-
From: Michael Fernández M
To: nagios-users@lists.sourceforge.net
Sent: Thu Oct 09 17:45:47 2008
Subject: [Nagios-users] Check_cpu

Hi, 

Someone knows a plugin to check the cpu, but only if it's at 90% for 5
minutes?

I do not need to check the cpu peak.

Is for Linux... (Centos 5.2)

Thanks!!!

Michael.-


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


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


[Nagios-users] Check_cpu

2008-10-09 Thread Michael Fernández M
Hi, 

Someone knows a plugin to check the cpu, but only if it's at 90% for 5
minutes?

I do not need to check the cpu peak.

Is for Linux... (Centos 5.2)

Thanks!!!

Michael.-


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


Re: [Nagios-users] Alarming on coredumps on Linux?

2008-10-09 Thread Guillaume Rousse
Manish Sapariya a écrit :
> Try this out
> 
> echo "kernel.core_pattern = /tmp/core.%e.%p.%t" >> /etc/sysctl.conf
> 
> It most probably needs reboot to take effect.
sysctl -w kernel.core_pattern=/tmp/core.%e.%p.%t to change it on the fly.
-- 
Guillaume Rousse
Moyens Informatiques - INRIA Futurs
Tel: 01 69 35 69 62

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


Re: [Nagios-users] NRPE not display correct results

2008-10-09 Thread Andy Shellam
Hi,

I thought that check_disk returns a warning/error when the disk space 
falls _below_ the values you set?  Therefore if it's giving 81% an OK 
but your warning level is 80% - that's correct because 81 (the current 
free space) is greater than 80 (your warning) and 10 (your critical.)

Or is it too late in the evening and I'm missing something?

Andy

Patrick Morris wrote:
> On Thu, 09 Oct 2008, Edwin Zoeller wrote:
>
>   
>> I have just noticed a strange thing and hope that someone out there could 
>> shed some lite on it.
>>
>> I have a disk check set to warn at 80% and crit at 10%. If I run the 
>> check_disk command locally it returns a warning message that the disk is at 
>> 81%, which is correct. But, if I run the check_disk command from out Nagios 
>> server using nrpe it reports a status of "Ok". Also, the main display does 
>> not display it as a warning.
>>
>> Can anyone help?
>> 
>
> Without specifics of how you've got your check set up, no, probably not.
>
>
>   

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


Re: [Nagios-users] NRPE not display correct results

2008-10-09 Thread Brian A. Seklecki



EZ:

We're going to need to see some config files and example outputs.

~BAS

On Thu, 9 Oct 2008, Edwin Zoeller wrote:


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

Re: [Nagios-users] NRPE not display correct results

2008-10-09 Thread Patrick Morris
On Thu, 09 Oct 2008, Edwin Zoeller wrote:

> I have just noticed a strange thing and hope that someone out there could 
> shed some lite on it.
> 
> I have a disk check set to warn at 80% and crit at 10%. If I run the 
> check_disk command locally it returns a warning message that the disk is at 
> 81%, which is correct. But, if I run the check_disk command from out Nagios 
> server using nrpe it reports a status of "Ok". Also, the main display does 
> not display it as a warning.
> 
> Can anyone help?

Without specifics of how you've got your check set up, no, probably not.



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


Re: [Nagios-users] How-to debug a NAGIOS-not-sending-email problem ?

2008-10-09 Thread Nagios User
Is your mail command under /usr/bin/mail or /bin/mail ?

-john

On Wed, Oct 8, 2008 at 12:08 PM, Valdinger, Stephen (DOV, MSX)
<[EMAIL PROTECTED]> wrote:
> The first place that I would look would be your mail and Nagios logs. There 
> is probably something in one of them related to your troubles.
>
> Stephen Valdinger
> MIS Helpdesk Coordinator
> 330.365.3622 -O
> 740.491.0958 - C
> [EMAIL PROTECTED]
> Never agrue with an idiot. They drag you down to their level and then beat 
> you with their experience.
>
>
> -Original Message-
> From: M. Sébastien LELIÈVRE [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 08, 2008 11:21 AM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] How-to debug a NAGIOS-not-sending-email problem ?
>
> Greetings,
>
> I'm experiencing some odd issue with my nagios server.
>
> It dosen't notify by email anymore
>
> When I execute the corresponding command in the nagios (user) shell, I
> receive an email
>
> A. So it is not postfix nor a system problem, just nagios which
>doesn't send email
>
> Reload/Restart-ing program (both postfix and nagios) didn't work out
>
> I do not know where to start my investigation
>
> Here are some info :
>
> notify-host-by-email :
>
> /usr/bin/printf "%b" " Nagios \n\nNotification Type: $NOTIFICATIONTYPE
> $\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo:
> $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /usr/bin/mail -s
> "[$HOSTGROUPNOTES$ $NOTIFICATIONTYPE$ Host $HOSTSTATE$ in $HOSTNAME$]"
> $CONTACTEMAIL$
>
>
> notify-service-by-email :
>
> /usr/bin/printf "%b" " Nagios \n\nNotification Type: $NOTIFICATIONTYPE
> $\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress:$HOSTADDRESS
> $\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional
> Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "[$HOSTGROUPNOTES$
> $NOTIFICATIONTYPE$ Service $SERVICESTATE$ in $HOSTNAME$/$SERVICEDESC$]"
> $CONTACTEMAIL$
>
> Best Regards
> --
> M. Sébastien LELIÈVRE
>
> Ingénieur Système & Base de Données
>
> ABF Hébergement / AZ Network
> 40, rue Ampère
> 61000 ALENÇON (ORNE)
> FRANCE
>
> Tel. : + 33 (0) 233 320 616
> Port. : + 33 (0) 673 457 243
>
> Poste : 120
> e-mail : [EMAIL PROTECTED]
>
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

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


[Nagios-users] NRPE not display correct results

2008-10-09 Thread Edwin Zoeller
I have just noticed a strange thing and hope that someone out there
could shed some lite on it.
 
I have a disk check set to warn at 80% and crit at 10%. If I run the
check_disk command locally it returns a warning message that the disk is
at 81%, which is correct. But, if I run the check_disk command from out
Nagios server using nrpe it reports a status of "Ok". Also, the main
display does not display it as a warning.
 
Can anyone help?
 
Thanks,
 
Ed
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] [Nagios-devel] how to specify multiple dependencies

2008-10-09 Thread Andy Shellam
Hi Guillaume,

>> define servicedependency {
>>  host_name   A
>>  service_description X
>>  dependent_host_name B,C
>>  dependent_service_description   Y
>> }
>>
>> I think this says that service X on host A depends on service Y on hosts 
>> B and C. 
>> 
> It says than you have two services Y, running on hosts hosts B and C, 
> each relying on a single service X, running on host A. If X fails, 
> monitoring of Y will be affected on both hosts. I'm looking for exactly 
> the opposite: two redundant authentications backends available, and one 
> authenticated service, for wich I'd like to avoid useless notifications 
> if both backends are down.
>   
Ah OK, in that case switch host_name and dependent_host_name and 
service_description and dependent_service_description around.
>   
>> Whether this is an AND or an OR (e.g. host A depends on hosts 
>> B AND C, or host A depends on hosts B OR C) I don't know.
>> 
> AFAIK, this is purely syntactic sugar for multiple declarations, so 
> rather an OR relationship.
>   
Is that not what you need?  You asked in your original question "how to 
specify than A depends on (B or C) ?"

The documentation says "You can create several dependencies for a given 
service, but you must add a separate service dependency definition for 
each dependency you create" which I would read as you'd need to create 2 
separate servicedependency entries, one for the dependency on 
host/service B and one for the dependency on host/service C to get this 
effect, again I'm not 100% sure.
>   
>> PS. Both of your last questions should have been directed at the 
>> nagios-users list - nagios-devel is for reviewing and submitting 
>> patches, or other questions that concern the development of Nagios.
>>
>> 
> Indeed.
>   
Andy

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


Re: [Nagios-users] NRPE way too fragile ?

2008-10-09 Thread Matt Rivet
I am running into the same issue.   I monitoring multiple windows hosts
using NRPE and NSClient++ on the windows machines.  I have turned the
time out up to 20 seconds and this has helped.  Currently I may see 3 or
4 time outs usually due to virus scans or back up jobs.  

Does anyone know any possible tweaks that can be done on the windows
machines (using NSClient++) to abolish or at least reduce time outs?  



-Original Message-
From: Mark Young [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 08, 2008 12:19 PM
To: Jayson Broughton
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] NRPE way too fragile ?

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On Oct 8, 2008, at 10:06 AM, Jayson Broughton wrote:

> Guillaume,
>
> We actually have the same problem here where Nagios is setup.  I use  
> the
> NRPE daemon on both windows and linux servers.  Two of our servers do
> backups early in the morning and during that time we get NRPE Timeout
> messages from the two servers.  I have set the timeout on the server  
> and the
> clients to timeout after 30 seconds, thinking that would fix it.   
> But alas,
> we still get timeout messages.  I haven't had much time to see what  
> I can do
> to fix this, so for now our solution is to not email out warning  
> messages
> from those two servers (I have the thresholds set enough where the  
> critical
> messages still gives enough window to take care of the problem  
> before going
> too critical)  I have come to the conclusion that the servers are  
> running
> the backup and eating up so much processing that the nrpe times out  
> trying
> to connect and send information.
>
> If you find a solution or even an idea to try, feel free to let me  
> know and
> I'll give it a shot!


NRPE is normally setup with Xinetd listening for incoming  
connections.  When I say normally I mean if you followed the  
documentation. ;)  By default Xinetd has a low threshold of  
connections per instance in order to lessen the load on the server and  
prevent DDoS type attacks.  You can view what I mentioned in my  
previous post here:
http://article.gmane.org/gmane.network.nagios.user/56713

NRPE can be fine until Nagios decides to run many checks to the same  
host at the same time that hits the threshold..  For example when you  
go to the extended host information and "Schedule a check of all  
services on this host".

If you are not running it under Xinetd it may be other issues.   
Including system load and/or running into possible bugs with NPRE on  
your system.





>
>> -Original Message-
>> From: Guillaume Rousse [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, October 08, 2008 4:44 AM
>> To: nagios-users@lists.sourceforge.net
>> Subject: [Nagios-users] NRPE way too fragile ?
>>
>> Hello list.
>>
>> I'm using nrpe quite heavily for testing lots of local service on  
>> all my
>> machines. It work usually well, but seems a bit unreliable: too much
>> often, nrpe itself fails to accept incoming connections, and test  
>> fails:
>> CHECK_NRPE: Socket timeout after 10 seconds.
>>
>> stracing nrpe process shows it is probably waiting itself on another
>> connection:
>> [EMAIL PROTECTED] ~]# strace -p 22444
>> Process 22444 attached - interrupt to quit
>> select(6, [5], NULL, [5], {0, 17})  = 0 (Timeout)
>> accept(5, 0, NULL)  = -1 EAGAIN (Resource
>> temporarily unavailable)
>>
>> It usually recovers itself alone, but that's enough to cause much
>> unwanted notifications, even if all monitored services have nrpe  
>> itself
>> as dependency. I'm using ssl encryption, as usually advised, but I'm
>> planning shifting to plain-text connection (everything occurs on a
>> distinc VLAN, without user access).
>>
>> Does everyone else has similar experience ?

You seem to be running it as a daemon process itself.  What system and  
NRPE version are you running?  What version of Nagios?  How many NRPE  
checks are you trying to perform in a given time?  You may see some  
benefit to enabling Nagios to spread its checks out more evenly,  
though this is simply covering the underlaying problem.  Maybe  
consider running it with the xinetd daemon and increase the number of  
allowed connections a second as a test.


Mark Young
___
Nagios Enterprises, LLC
Web:www.nagios.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkjs3WoACgkQ0KipU7WwlaWtXgCgs+77/o8Pyh0t/++FIbOEycgx
oiAAoMj2awwRG4HCernz7pcdf/K484Ca
=oKG0
-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=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net

Re: [Nagios-users] Alarming on coredumps on Linux?

2008-10-09 Thread Manish Sapariya
Try this out

echo "kernel.core_pattern = /tmp/core.%e.%p.%t" >> /etc/sysctl.conf

It most probably needs reboot to take effect. After the
reboot, all core files will be created in /tmp with exe name,
pid and the time stamp appended.

I watch the any new core file by using the find with mtime option.

I can share the script if you would like to see it.

Regards,
Manish

Thomas Guyot-Sionnest wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> On 07/10/08 01:26 PM, Tim Pushor wrote:
>> Hello everyone,
>>
>> While not specifically a nagios issue, I am setting up a nagios 
>> installation to monitor a server that is used to run an interactive 
>> application by several users at once (> 50). The problem is, 
>> occasionally the application dumps core, and the users don't always 
>> notify us when this happens. We'd like to trigger a passive alarm to 
>> nagios on our application dumping core.
>>
>> On other OS's (specifically FreeBSD IIRC) the kernel logs coredumps and 
>> end up in the system log so watching the logfiles with swatch or 
>> something similar would do the trick.
>>
>> On my Linux system (CentOS 5.2) it appears that coredumps don't log. 
>> Does anyone have any ideas how I can trigger an event on coredump on Linux?
> 
> This is not really a nagios issue... AFAIK segfaults are logged in
> Linux; have you looked at the kernel messages (dmesg)?
> 
> If it shows in dmesg output but not on your logs, make sure syslog is
> configured properly to retrieve those messages. You could also log
> kern.* to a specific files to be sure.
> 
> I think log levels can also be tuned with /proc/sys/kernel/printk; see
> "man 5 proc".
> 
> - --
> Thomas
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iD8DBQFI7GQp6dZ+Kt5BchYRAu8TAJ98E5xxKIRDZh8l/gFPd50uZeNM+QCggpct
> r7QppHPqVgdZTMZKtgPJYgU=
> =Ta0T
> -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=100&url=/
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
> 

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


Re: [Nagios-users] Error: Could not add object property in file '/usr/local/etc/nagios/objects/commands.cfg' on line 29.

2008-10-09 Thread Marc Powell

On Oct 9, 2008, at 10:31 AM, Phill Hocking wrote:

> Greetings, my name is Phill and I am having difficulties with a fresh
> install. Here is the error I get:

Welcome Phill.

> Warning: Duplicate definition found for command 'notify-host-by-email'
> (config file '/usr/local/etc/nagios/objects/commands.cfg', starting on
> line 28)
> Error: Could not add object property in file
> '/usr/local/etc/nagios/objects/commands.cfg' on line 29.

Duplicate command_name's aren't permitted. They must be unique.

> stuff. The search wrapsin vi for that string notify-host-by-email.
> This is why I am
> scratching my head.

It's already defined in another cfg_file that you specify in  
nagios.cfg then. Use grep to find which on, choose the one you want to  
use and remove or comment out the other definition.

--
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=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Windows Eventlog agent v1.9.0 released

2008-10-09 Thread Livio Zanol Puppim
Steve,

just to clarify. Why not use the event trigger or the event to trap map?

2008/10/8 Steve Shipway <[EMAIL PROTECTED]>:
> An updated version of the Nagios Windows Eventlog agent has been released
> and is available on the Nagios Exchange.  This fixes a fairly large bug in
> the filter code so you are advised to upgrade.
>
>
>
> http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F1689.html;d=1
>
>
>
> This version contains a number of fixes, primarily a fix for the bug where
> existing filters would work incorrectly if new eventlog definitions were
> added.  The eventlogs are now identified by name, rather than by sequence
> number.
>
>
>
> There is also a new status type, 'Ignore', to allow you to create filters to
> drop messages.  Now you no longer need to send NSCA alerts with invalid
> service names.
>
>
>
> Finally, it has been compiled with 64bit and wide character support, so it
> should work better with international language messages; however I am unable
> to test this.
>
>
>
> This version does not yet have a binary for 64bit Windows.  I am hoping that
> some members of the community who have offered to help will be able to
> provide this.
>
>
>
> Thankyou for your time,
>
>
>
> Steve
>
>
>
> ---
>
> Steve Shipway
>
> UNIX Systems Administration, University of Auckland, New Zealand
>
> +64 9 3737 599 x 86487
>
> [EMAIL PROTECTED]
>
> P Please consider the environment before printing this e-mail
>
>
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>



-- 
[]'s

Lívio Zanol Puppim

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


[Nagios-users] Error: Could not add object property in file '/usr/local/etc/nagios/objects/commands.cfg' on line 29.

2008-10-09 Thread Phill Hocking
Greetings, my name is Phill and I am having difficulties with a fresh
install. Here is the error I get:

# nagios -v /usr/local/etc/nagios/nagios.cfg

Nagios 3.0.3
Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org)
Last Modified: 06-25-2008
License: GPL

Reading configuration data...

Warning: Duplicate definition found for command 'notify-host-by-email'
(config file '/usr/local/etc/nagios/objects/commands.cfg', starting on
line 28)
Error: Could not add object property in file
'/usr/local/etc/nagios/objects/commands.cfg' on line 29.

***> One or more problems was encountered while processing the config files...

Check your configuration file(s) to ensure that they contain valid
directives and data defintions.  If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version.  Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.

however that is the only notify-host-by-email entry in the file. I
made a pastebin of said file at http://pastebin.ca/1223752. If blank out
out all of the .cfg files in that directory, nagios starts to parse
the main config file, but throws a bunch of errors for the undef
stuff. The search wrapsin vi for that string notify-host-by-email.
This is why I am
scratching my head.

Nagios 3.0.3
FreeBSD 7.0

So any help that you all can give me would be sincerely appreciated,
thanks a bundle and I look forward to hearing back from you!

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


Re: [Nagios-users] Strange NRPE issue

2008-10-09 Thread Francis Dube
Christoph Kluenter a écrit :
> On Wednesday 08 October 2008 17:52:58 Francis Dube wrote:
>   
>> Hi,
>>
>> I'm using Nagios nagios-2.12_1 with NRPE nrpe2-2.11_1 to check if my
>> display is working properly. I'm taking a screenshot every 4 minutes and
>> then i compare it with the last screenshot. My script is working very
>> well when it's ran locally but when i'm calling it from the server the
>> screenshot isn't taken. I tought it was a right problem on the Xorg
>> server, but i tried with "xhost +" (which do "access control disabled,
>> clients can connect from any host"). Both ways i run the script with the
>> user 'nagios'. The rest of the commands in the scripts work fine, the
>> only problem is with the screenshot which is taken using this command :
>> import -display :0 -window root /afolder/myscreenshot.png
>> 
> Have you tried setting the PATH ?
> Or using /usr/bin/import instead of plain "import" ?
>
> Cheers,
>   Christoph
>   
>> I also tried to run the script over shh (ssh [EMAIL PROTECTED]
>> /usr/local/libexec/nagios/check_news) and this method is working as fine
>> as locally. So i think there's something wrong with the way NRPE execute
>> my script.
>>
>> Anyone got an idea of the reason why the screenshot isn't working when i
>> run the script with NRPE ?
>>
>> Thanks !
>>
>> Francis
>>
>> -
>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>> challenge Build the coolest Linux based applications with Moblin SDK & win
>> great prizes Grand prize is a trip for two to an Open Source event anywhere
>> in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> ___
>> Nagios-users mailing list
>> Nagios-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>>
>> ::: Please include Nagios version, plugin version (-v) and OS when
>> ::: reporting any issue. Messages without supporting info will risk being
>> ::: sent to /dev/null
>> 
I gave it a try, it worked !! It's kinda pathetic because in the whole 
script every single commands are called usgin the full path except this 
one. The reason why I never tought it would be a problem is because when 
i ran the command over ssh i never got a "command not found" error or 
anything like that.

Anyway, thanks a lot my friend ! :)

Francis Dube
R&D
Optik Securite
www.optiksecurite.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=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Strange NRPE issue

2008-10-09 Thread Christoph Kluenter
On Wednesday 08 October 2008 17:52:58 Francis Dube wrote:
> Hi,
>
> I'm using Nagios nagios-2.12_1 with NRPE nrpe2-2.11_1 to check if my
> display is working properly. I'm taking a screenshot every 4 minutes and
> then i compare it with the last screenshot. My script is working very
> well when it's ran locally but when i'm calling it from the server the
> screenshot isn't taken. I tought it was a right problem on the Xorg
> server, but i tried with "xhost +" (which do "access control disabled,
> clients can connect from any host"). Both ways i run the script with the
> user 'nagios'. The rest of the commands in the scripts work fine, the
> only problem is with the screenshot which is taken using this command :
> import -display :0 -window root /afolder/myscreenshot.png
Have you tried setting the PATH ?
Or using /usr/bin/import instead of plain "import" ?

Cheers,
  Christoph
>
> I also tried to run the script over shh (ssh [EMAIL PROTECTED]
> /usr/local/libexec/nagios/check_news) and this method is working as fine
> as locally. So i think there's something wrong with the way NRPE execute
> my script.
>
> Anyone got an idea of the reason why the screenshot isn't working when i
> run the script with NRPE ?
>
> Thanks !
>
> Francis
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge Build the coolest Linux based applications with Moblin SDK & win
> great prizes Grand prize is a trip for two to an Open Source event anywhere
> in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
>
> ::: Please include Nagios version, plugin version (-v) and OS when
> ::: reporting any issue. Messages without supporting info will risk being
> ::: sent to /dev/null



-- 
Christoph Kluenter   E-Mail: [EMAIL PROTECTED]
Technik  Tel: +49 (0)40 374919-10
IPHH Internet Port Hamburg GmbH  Fax: +49 (0)40 374919-29
Grosse Reichenstrasse 27 AG Hamburg, HRB 76071
D-20457 Hamburg  Geschaeftsfuehrung: Axel G. Kroeger

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