Shat down server

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
inserm
Posts: 24
Joined: Tue Jul 31, 2012 6:05 am

Shat down server

Post by inserm »

Hello,

I am trying to create a script that stops a server if it detects CRITICAL.
Can someone help me.

Thanks
GaWd
Posts: 51
Joined: Wed Dec 15, 2010 1:45 pm

Re: Shat down server

Post by GaWd »

What kind of server? Windows or Linux/Unix?
inserm
Posts: 24
Joined: Tue Jul 31, 2012 6:05 am

Re: Shat down server

Post by inserm »

GaWd wrote:What kind of server? Windows or Linux/Unix?
Linux
GaWd
Posts: 51
Joined: Wed Dec 15, 2010 1:45 pm

Re: Shat down server

Post by GaWd »

Look here: http://assets.nagios.com/presentations/ ... Nagios.odp

You should be able to utilize the event handler service to trigger scripts if certain states are detected.
inserm
Posts: 24
Joined: Tue Jul 31, 2012 6:05 am

Re: Shat down server

Post by inserm »

GaWd wrote:Look here: http://assets.nagios.com/presentations/ ... Nagios.odp

You should be able to utilize the event handler service to trigger scripts if certain states are detected.
I can not open it shows me:
Could not open "Sam_Lansing_Automating_Windows_Application_Testing_and_Problem_Resolution_With_Nagios.odp"
Archive type not supported.
V3xX
Posts: 26
Joined: Wed Aug 29, 2012 6:48 am
Location: Switzerland

Re: Shat down server

Post by V3xX »

With PowerPoint 2010 I can open this file...
inserm
Posts: 24
Joined: Tue Jul 31, 2012 6:05 am

Re: Shat down server

Post by inserm »

How do I know if nrpe is up and running?
In /usr/lib/nagios/plugins/
check_nrpe exists.
I installed :
sudo apt-get install nagios3 nagios-nrpe-plugin
inserm
Posts: 24
Joined: Tue Jul 31, 2012 6:05 am

Re: Shat down server

Post by inserm »

I can not find the file nrpe.cfg.
Which directory is?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Shat down server

Post by slansing »

It is located in:

Code: Select all

/usr/local/nagios/etc/nrpe.cfg
Here is the link to the event handler document I had in my presentation, It is a little more than mid way down:

http://assets.nagios.com/downloads/nagi ... h_NRPE.pdf
inserm
Posts: 24
Joined: Tue Jul 31, 2012 6:05 am

Re: Shat down server

Post by inserm »

slansing wrote:It is located in:

Code: Select all

/usr/local/nagios/etc/nrpe.cfg
It does not exist!
Locked