Maintain control of your Microsoft 365 data
Post Reply
NT29
Enthusiast
Posts: 25
Liked: never
Joined: Oct 02, 2011 6:27 pm
Contact:

remote Powershell script nagios

Post by NT29 »

Hi
I want to monitor my server for my O365 backup as i do with my other server Veeam in my nagios

for my first veeam server (only for veeam backup) i had to start my script with the launch of the snapin:
Add-PSSnapin VeeamPSSnapin

I try to do the same with my other server who is only for O365 backup but i didn't arrive to found the command to use

Thanks a lot
nicolas
nielsengelen
Product Manager
Posts: 5803
Liked: 1217 times
Joined: Jul 15, 2013 11:09 am
Full Name: Niels Engelen
Contact:

Re: remote Powershell script nagios

Post by nielsengelen »

You can load it via "Import-Module Veeam.Archiver.PowerShell"
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
NT29
Enthusiast
Posts: 25
Liked: never
Joined: Oct 02, 2011 6:27 pm
Contact:

Re: remote Powershell script nagios

Post by NT29 »

hi
Thanks
I try but now i have a problem with the location because the return was: impossible to load ….Program File\veam ….\veeam.Archiver.PowerShell
And when i search i found that on my server it is on a different location :c\program\veeam

Nicolas
nielsengelen
Product Manager
Posts: 5803
Liked: 1217 times
Joined: Jul 15, 2013 11:09 am
Full Name: Niels Engelen
Contact:

Re: remote Powershell script nagios

Post by nielsengelen »

Hi Nicolas,

It should work fine on the VBO365 server however if you are facing path issues try the following:
Import-Module "C:\Program Files\Veeam\Backup365\Veeam.Archiver.PowerShell\Veeam.Archiver.PowerShell.psd1"

Does this work?
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
NT29
Enthusiast
Posts: 25
Liked: never
Joined: Oct 02, 2011 6:27 pm
Contact:

Re: remote Powershell script nagios

Post by NT29 »

hi thanks for your reply
done, but still a error messager
Impossible to charge the assembly
veeam.archiver.client.Dll or dependants is missing
nielsengelen
Product Manager
Posts: 5803
Liked: 1217 times
Joined: Jul 15, 2013 11:09 am
Full Name: Niels Engelen
Contact:

Re: remote Powershell script nagios

Post by nielsengelen »

And you are running this on your VBO365 server with everything installed (console and veeam explorers)?
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
NT29
Enthusiast
Posts: 25
Liked: never
Joined: Oct 02, 2011 6:27 pm
Contact:

Re: remote Powershell script nagios

Post by NT29 »

On the server i have the console and i can restore mail so i imagine tha veeam explorers are here
If i open a PowerShell console on the server i can run the script
It is when i try to launch it from my nagios server with nsclient++ installed on the veeam o365 server that i have the problem

I do the same since a long time on my other veeam server who is only veeam backup, and it work great
I install nsclient ++
I put the name and command of the script in the ini file
and my remote nagios can launch it

but it is my first case with a veeam O365 server
nielsengelen
Product Manager
Posts: 5803
Liked: 1217 times
Joined: Jul 15, 2013 11:09 am
Full Name: Niels Engelen
Contact:

Re: remote Powershell script nagios

Post by nielsengelen »

I'm not familiar with how this exactly works. You say the script works on the server but NSclient fails. Can you debug the client? Maybe the parameters in the ini file are incorrect?
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
NT29
Enthusiast
Posts: 25
Liked: never
Joined: Oct 02, 2011 6:27 pm
Contact:

Re: remote Powershell script nagios

Post by NT29 »

I think it is not the cas nsclient just launch script and transmit the answer,
i try another PowerShell script who recall other informations without problems
I open a case at veeam support, as for me it is like the snapin is nt register on the server …
We will see
nielsengelen
Product Manager
Posts: 5803
Liked: 1217 times
Joined: Jul 15, 2013 11:09 am
Full Name: Niels Engelen
Contact:

Re: remote Powershell script nagios

Post by nielsengelen »

If you installed all 3 msi packages from the download it should work fine. Could you let us know the support case ID for future references?
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
NT29
Enthusiast
Posts: 25
Liked: never
Joined: Oct 02, 2011 6:27 pm
Contact:

Re: remote Powershell script nagios

Post by NT29 »

hi
it is already the cas, i just check
Yesterday night i try to install on the server the Veeam console, in case …. sometimes you try things like that
No matter, nothing better
nielsengelen
Product Manager
Posts: 5803
Liked: 1217 times
Joined: Jul 15, 2013 11:09 am
Full Name: Niels Engelen
Contact:

Re: remote Powershell script nagios

Post by nielsengelen »

Best is to see if support can help but can you let us know the support case ID?
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
NT29
Enthusiast
Posts: 25
Liked: never
Joined: Oct 02, 2011 6:27 pm
Contact:

Re: remote Powershell script nagios

Post by NT29 »

that's it : 04008959
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests