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
Event Handler: Run Remote Commands in Windows
-
FCC_Nagios_Support
- Posts: 161
- Joined: Tue Mar 10, 2020 11:07 am
-
FCC_Nagios_Support
- Posts: 161
- Joined: Tue Mar 10, 2020 11:07 am
Re: Event Handler: Run Remote Commands in Windows
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
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
Re: Event Handler: Run Remote Commands in Windows
"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
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
No problemFCC_Nagios_Support wrote:Many Thanks Sir.
Locking thread