[icinga-users] ICINGA local and remote service startup ................

Nandkumar Kshirsagar nandkumar.kshirsagar at igate.com
Thu Feb 21 10:49:57 CET 2013

Hi Gerd,

Thanx for reply.

I dont want to do it manualy .

I have tried same thing ( event handler ). whenever i started eventhandler ( means restarting icinga after below event_handler adding into the localhost.cfg)  .. then perticular service gets disappeared.

 Detailed configuration i m sending. say vsftpd service.

i want to start vsftpd service on iciinga ( local  icinga vsftpd service which is running on ICINGA server only )

On ICINGA server ( icinga server ):

step 1>


icinga.cfg ====> event_handlers = 1


On ICINGA server ( icinga server )

step 2>

localhostcfg  =====>

define service{

use                             local-service

host_name                           localhost
service_description                 HTTP

check_command                   check_vsftpd

event_handler                       restart_vsftpd

max_check_attempts              4
register                                 0



step 3>

command.cfg ====>

define command{
        command_name    restart-vsfpd
        command_line    /usr/lib64/nagios/plugins/eventhandlers/restart-vsftpd  $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$


step 4>

Given full sudo access  to icinga user


step 5>

i have taken shell script from http://docs.icinga.org/latest/en/eventhandlers.

and edited same script from httpd service to vsftpd service.

please correct me whether i am doing wrong ..........


Nandkumar K

From: Gerd Radecke [wi2009i at gmail.com]
Sent: Thursday, February 21, 2013 1:04 PM
To: icinga-users at lists.sourceforge.net
Subject: Re: [icinga-users] ICINGA local and remote service startup ................

On Thu, Feb 21, 2013 at 5:56 AM, Nandkumar Kshirsagar <nandkumar.kshirsagar at igate.com<mailto:nandkumar.kshirsagar at igate.com>> wrote:
I have installed and confiured ICINGA serve rand  remote machines ( windows and linux ) . It is up and running well ... now
I want to start or stop any service on icinga as well as remote mechines by using icinga monioring service ......

Is there any way to do such kind of things ...

Thanx & Regards,
Nandkumar Kshirsagar.

Hi Nandkumar,

do you want to start or stop them on manual input or based on state changes?  The second can be accomplished using event handlers and his documented very well over here: http://docs.icinga.org/latest/en/eventhandlers.html


Information contained and transmitted by this e-mail is confidential and proprietary to iGATE and its affiliates and is intended for use only by the recipient. If you are not the intended recipient, you are hereby notified that any dissemination, distribution, copying or use of this e-mail is strictly prohibited and you are requested to delete this e-mail immediately and notify the originator or mailadmin at igate.com <mailto:mailadmin at igate.com>. iGATE does not enter into any agreement with any party by e-mail. Any views expressed by an individual do not necessarily reflect the view of iGATE. iGATE is not responsible for the consequences of any actions taken on the basis of information provided, through this email. The contents of an attachment to this e-mail may contain software viruses, which could damage your own computer system. While iGATE has taken every reasonable precaution to minimise this risk, we cannot accept liability for any damage which you sustain as a result of software viruses. You should carry out your own virus checks before opening an attachment. To know more about iGATE please visit www.igate.com <http://www.igate.com>.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.icinga.org/pipermail/icinga-users/attachments/20130221/88f4d29e/attachment-0001.html>

More information about the icinga-users mailing list