Help me understand. Why use ssh to install on MS? Is this a mistake?
I would like to deploy NCPA to my MS Servers.
Do I need to install OpenSSH first?
In my environment we have Ansible and have been using WinRM on MS deployments.
Can the Nagios deployment be changed to use WinRM instead of ssh?
The file install_agent_win.yml
Contains:
ansible_connection: ssh
Please advise.
Thanks
Steve B
NCPA Agent Deploy to MS systems
-
gwesterman
- Posts: 268
- Joined: Wed Aug 23, 2023 11:29 am
Re: NCPA Agent Deploy to MS systems
Hi StevenBeauchemin,
At the moment, only SSH deployment is supported from XI. I will create an internal feature request to add the option to use WinRM.
Thank you!
At the moment, only SSH deployment is supported from XI. I will create an internal feature request to add the option to use WinRM.
Thank you!
-
StevenBeauchemin
- Posts: 15
- Joined: Fri Jun 30, 2023 12:39 pm
Re: NCPA Agent Deploy to MS systems
Very nice !!
Thank You
Steve B
(please close if this is open)
Thank You
Steve B
(please close if this is open)
-
AngeloMileto
- Posts: 70
- Joined: Mon Mar 21, 2022 7:53 am
Re: NCPA Agent Deploy to MS systems
Not sure if it would help you but if you can effectively have Ansible initiate a remote session, then you "may" be able to?
I use Powershell - since we don't have Ansible setup yet - and basically provide logon credentials to the remote host and then execute:
No WinRM required - although technically the Session is probably a WinRM connection in the background?
NOTE: I can't copy/paste from our production system so I had to retype this so if there is a typo, sorry.
Hope it helps.
I use Powershell - since we don't have Ansible setup yet - and basically provide logon credentials to the remote host and then execute:
Code: Select all
$User="AdminUserName"
$Pass="UsersPassword"
$Credential=New-Object System.Management.Automation.PSCredential ($User, (ConverTo-SecureString $Pass -AsPlainText -Force))
$Session=New-PSSession -ComputerName $tmpHost -Credential $Credential
Copy-Item C:\Users\Public\Downloads\ncpa-x.x.x.exe -destination C:\Users\Public\Downloads\ -ToSession $Session
Invoke-Command -Session $Session -ScriptBlock { Start-Process C:\Users\Public\Downloads\ncpa-x.x.x.exe -ArgumentList '/S /TOKEN=ncpatoken /V/qn' -Wait }
Invoke-Command -Session $Session -ScriptBlock { Start-Service -Name 'ncpa' }
Remove-PSSession $Session
NOTE: I can't copy/paste from our production system so I had to retype this so if there is a typo, sorry.
Hope it helps.
-
StevenBeauchemin
- Posts: 15
- Joined: Fri Jun 30, 2023 12:39 pm
Re: NCPA Agent Deploy to MS systems
Thanks!
I'll pass this on to the person who does our non-Nagios ansible. It should give them a jump start at least.
We probably need a separate script for keeping the plugins updated. That is usually a moving target as we create plugins as needed for different applications we are watching.
Steve B
I'll pass this on to the person who does our non-Nagios ansible. It should give them a jump start at least.
We probably need a separate script for keeping the plugins updated. That is usually a moving target as we create plugins as needed for different applications we are watching.
Steve B