Event Handler: Run Remote Commands in Windows

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
FCC_Nagios_Support
Posts: 161
Joined: Tue Mar 10, 2020 11:07 am

Event Handler: Run Remote Commands in Windows

Post by FCC_Nagios_Support »

Good evening:

I am trying to start a service when Nagios notify it with the eventhandler.
I would like to call a remote command from unix Nagios to Windows.
I tried:
[root@a2nagio001p ~]# /usr/bin/winexe -U FCC/adminovo%Temporal04 //10.5.0.143 dir
[winexe/winexe.c:120:on_ctrl_pipe_error()] ERROR: Failed to install service winexesvc - NT code 0x00000424

Any one nows what is missing or required.


Thanks
FCC_Nagios_Support
Posts: 161
Joined: Tue Mar 10, 2020 11:07 am

Re: Event Handler: Run Remote Commands in Windows

Post by FCC_Nagios_Support »

Hello I got it!
The remote service was needed.
My next doubt is I have checkers with a list of services and I do not know how to parse with EventHandler and trigger the exact service to start.
Thanks
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Event Handler: Run Remote Commands in Windows

Post by cdienger »

"net start" can be used on a Windows machine to get a list of services. You can use the net command to stop/start them as well - https://www.windows-commandline.com/sta ... mand-line/.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
FCC_Nagios_Support
Posts: 161
Joined: Tue Mar 10, 2020 11:07 am

Re: Event Handler: Run Remote Commands in Windows

Post by FCC_Nagios_Support »

Many Thanks Sir.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Event Handler: Run Remote Commands in Windows

Post by scottwilkerson »

FCC_Nagios_Support wrote:Many Thanks Sir.
No problem

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked