Skip to main content

What scripting/programming language do you use for monitoring/reporting/automation?


vNote42
Forum|alt.badge.img+13
  • On the path to Greatness
  • 1246 comments

I am curious what languages are used by the community for reporting, monitoring and/or automation. I personally do a lot of scripting with PowerShell. What language is worth learning it?

I wish, Veeam will replace their PowerShell Plug-In by a PowerShell module in www.powershellgallery.com.

@Kseniya Just a little thing: when embedding code here in the community, PowerShell is no language-option. Maybe this can be added in the future? 

19 comments

JMeixner
Forum|alt.badge.img+17
  • Veeam Vanguard
  • 2650 comments
  • November 11, 2020

I am using PowerShell, too.

But I will try to play around with the RESTful API in the next time...


vNote42
Forum|alt.badge.img+13
  • Author
  • On the path to Greatness
  • 1246 comments
  • November 11, 2020
JMeixner wrote:

I am using PowerShell, too.

But I will try to play around with the RESTful API in the next time...

Fine! From time to time I try to use REST too. But even then I use PowerShell for API requests.


Kseniya
Forum|alt.badge.img+3
  • 408 comments
  • November 11, 2020

Hey @vNote42!

 

Thanks for sharing this idea. This is a good point, I will look into this! :nerd:


BertrandFR
Forum|alt.badge.img+8
  • Influencer
  • 527 comments
  • November 17, 2020

We use powershell to check jobs with Centreon (nagios like)


vNote42
Forum|alt.badge.img+13
  • Author
  • On the path to Greatness
  • 1246 comments
  • November 18, 2020
BertrandFR wrote:

We use powershell to check jobs with Centreon (nagios like)

So you trigger a powershell script out of Centreon and visualize the output there? Sounds good!


BertrandFR
Forum|alt.badge.img+8
  • Influencer
  • 527 comments
  • November 18, 2020
vNote42 wrote:
BertrandFR wrote:

We use powershell to check jobs with Centreon (nagios like)

So you trigger a powershell script out of Centreon and visualize the output there? Sounds good!


Yes every useful informations / alarms should be send to centreon in our company to be processed by a team 24/7. 

In fact nothing very impressing, you can use nsclient to launched your posh script. The script ouput just have to be the nagios standard.


JMousqueton
Forum|alt.badge.img+3
  • Veeam Vanguard
  • 10 comments
  • November 18, 2020
vNote42 wrote:

I am curious what languages are used by the community for reporting, monitoring and/or automation. I personally do a lot of scripting with PowerShell. What language is worth learning it?

I’m also using Powershell for Veeam et vSphere purpose, but I’m also using Python for automation in Linux env.  


BertrandFR
Forum|alt.badge.img+8
  • Influencer
  • 527 comments
  • November 18, 2020

I miss the second part for automation, we use ansible for Linux and Windows.
For example before the backup windows we generate temporary linux backup proxy to bring ephemeral backup power.


Chiara
  • Not a newbie anymore
  • 7 comments
  • December 15, 2020

Powershell on Windows and Python on Linux.

We usually use NSClient++ to launch the scripts as @BertrandFR suggested as well.


vNote42
Forum|alt.badge.img+13
  • Author
  • On the path to Greatness
  • 1246 comments
  • December 16, 2020

Thanks for all answers! For all those use Python: is it worth to learn it? 

BTW: Did you know - at least as far as I know - the name Python comes from the legendary Monty Pythons. For that alone it is worth to know more about it :grinning:

 


Chiara
  • Not a newbie anymore
  • 7 comments
  • December 16, 2020
vNote42 wrote:

Thanks for all answers! For all those use Python: is it worth to learn it? 

BTW: Did you know - at least as far as I know - the name Python comes from the legendary Monty Pythons. For that alone it is worth to know more about it :grinning:

 

Absolutely! :)

 


BertrandFR
Forum|alt.badge.img+8
  • Influencer
  • 527 comments
  • December 16, 2020

@vNote42 Thank you for the anedcote, did’t remember it hehe!

I’m from linux world so python learning was mandatory during my university studies. I love POSH too but if you work on linux and windows you have to use a langage who runs quite the same.

ps: I tried powershell on linux i was feeling MEH


vNote42
Forum|alt.badge.img+13
  • Author
  • On the path to Greatness
  • 1246 comments
  • December 16, 2020
BertrandFR wrote:

@vNote42Thank you for the anedcote, did’t remember it hehe!

I’m from linux world so python learning was mandatory during my university studies. I love POSH too but if you work on linux and windows you have to use a langage who runs quite the same.

ps: I tried powershell on linux i was feeling MEH

I understand!

What I do not understand: what means “MEH”?


BertrandFR
Forum|alt.badge.img+8
  • Influencer
  • 527 comments
  • December 16, 2020

sorry too much 9gag


vNote42
Forum|alt.badge.img+13
  • Author
  • On the path to Greatness
  • 1246 comments
  • January 12, 2021

Because most of you seem to use PowerShell/PowerCLI: VMware started a new PowerCLI Home Page: https://developer.vmware.com/powercli 

Looks great! They did re-think a few things. See here more details:

https://blogs.vmware.com/PowerCLI/2021/01/introducing-the-new-powercli-home-page.html

 

 


Eric Machabert
Forum|alt.badge.img+3

Regarding vCenter interaction, I switched from powershell to GOVC. Night and day.


vNote42
Forum|alt.badge.img+13
  • Author
  • On the path to Greatness
  • 1246 comments
  • February 8, 2021
Eric Machabert wrote:

Regarding vCenter interaction, I switched from powershell to GOVC. Night and day.

I think I never heard of GOVC. I guess you mean this: https://github.com/vmware/govmomi/tree/master/govc ?

Is it a kind of “desired state configuration”?


Eric Machabert
Forum|alt.badge.img+3

Yep. This is also what is used in the kubernetes vsphere storage integration driver (https://vmware.github.io/vsphere-storage-for-kubernetes/documentation/prerequisites.html).

Give it a try :-)


Rick Vanover
Forum|alt.badge.img+10
  • RICKATRON
  • 764 comments
  • February 9, 2021

I’m on “Team PowerShell” here, but will add that I did some Perl work and it was easier for me than PowerShell, I felt like I could do more easier with Perl. But officially I still suck at all of that. 
 


Comment