Hi!

 

Here is what I did:

 

-          Install NSClient++ on your Windows server

-          In NSC.ini file under [NRPE Handlers] type:

o   whatever_service_starter=C:\Program
Files\NSClient++\whatever_service_starter.bat

-          Save NSC.ini

-          Under C:\Program Files\NSClient++\ create new text file
whatever_service_starter.bat

-          Edit whatever_service_starter.bat and type in:

o   net start "Whatever Service"

-          Save whatever_service_starter.bat

-          Restart NSClientpluplus service

-          In OpsView create service check (if you haven't created
already) check_whatever_process

o   Plugin: check_nt

o   Arguments: -H $HOSTADDRESS$ -v SERVICESTATE -l "Whatever Service" -d
SHOWALL 

-          In OpsView add windows host

-          To windows host add monitor check_whatever_process

-          Press Event handler button (hand symbol)

-          In field type:

o   check_nrpe -H $HOSTADDRESS$ -t 20 -c whatever_service_starter

-          Enter

-          In OpsView go to Status -> Host Detail -> Your Windows Host
-> check_whatever_process -> Enable Event Handler for this service

-          Reload OpsView server configuration

 

Hope it helps

 

Edgars

 

 

 

From: [email protected]
[mailto:[email protected]] On Behalf Of Nick Akl
Sent: Wednesday, April 07, 2010 6:17 PM
To: [email protected]
Subject: [opsview-users] Event Handler for restarting a windows
serviceafter detecting it is not running

 

Hi guys,

 

I'm running opsview 3.1.0 and am trying to implement an event handler to
restart a windows service after detecting it is not running. 

Has anyone done this? is there a good tutorial on how to set it up?

 

Thank you very much,

_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users

Reply via email to