Re: [Nagios-users] event handler question (if event handler is what I need?)

2008-06-11 Thread Yaniv
Marc

Thank you... the documentation is very good and it answered all my questions
about event handler...

And it works now... thanks again

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marc Powell
Sent: Tuesday, June 10, 2008 15:03
Cc: Nagios Users Mailinglist
Subject: Re: [Nagios-users] event handler question (if event handler is what
I need?)


On Jun 10, 2008, at 4:09 AM, Yaniv wrote:

> Hello Nagios users

Hello! Please send to this list using text/plain e-mail. Sending HTML  
does not-so-wonderful things for the archives and for users who  
receive the list via digest.

> I am new to nagios and have a question about event handlers. (if  
> event handler is what I need?)

Yes, that sounds like just what you need.


> I would like a script that I have located at /root/scripts/test.sh  
> to be executed if the hard drive get's to the warning state and  
> critical state.

Perfect, even down to running a script on the nagios box. Very  
straigtforward.

> How would I do that?

http://nagios.sourceforge.net/docs/3_0/eventhandlers.html

--
Marc


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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
No virus found in this incoming message.
Checked by AVG. 
Version: 8.0.100 / Virus Database: 270.2.0/1493 - Release Date: 09/06/2008
17:25


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] event handler question (if event handler is what I need?)

2008-06-10 Thread Marc Powell

On Jun 10, 2008, at 4:09 AM, Yaniv wrote:

> Hello Nagios users

Hello! Please send to this list using text/plain e-mail. Sending HTML  
does not-so-wonderful things for the archives and for users who  
receive the list via digest.

> I am new to nagios and have a question about event handlers… (if  
> event handler is what I need?)

Yes, that sounds like just what you need.


> I would like a script that I have located at /root/scripts/test.sh  
> to be executed if the hard drive get’s to the warning state and  
> critical state…

Perfect, even down to running a script on the nagios box. Very  
straigtforward.

> How would I do that?

http://nagios.sourceforge.net/docs/3_0/eventhandlers.html

--
Marc


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
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] event handler question (if event handler is what I need?)

2008-06-10 Thread Yaniv
Hello Nagios users

 

 

 

 

I am new to nagios and have a question about event handlers. (if event
handler is what I need?)

 

 

I am monitoring a windows client with NSClient++ 0.3.1.12 2008-03-11 

 

 

 

 

Now I have this at my windows.cfg file (on the nagios server)

 

define service{

use generic-service

host_name   ghost-server

service_description E:\ Ghost-images Drive Space

check_command   check_nt!USEDDISKSPACE!-l e -w 80 -c 90

}

 

 

 

I would like a script that I have located at /root/scripts/test.sh to be
executed if the hard drive get's to the warning state and critical state.

 

 

How would I do that?

 

 

Thanks for any help.  

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
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