Use Central Nagios to deploy VBS/Powershell

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
TNTGav
Posts: 5
Joined: Tue Apr 17, 2012 7:36 am

Use Central Nagios to deploy VBS/Powershell

Post by TNTGav »

Hello everyone,

We are setup at the moment with nagios core running the basic checks etc like free space/CPU checks. What I am looking to do is run a custom script on the client machine. We have NSClient++ Installed on all of our hosts. As I understand it at the moment I will have to put that custom script manually on all of our servers and then execute it from a test that simply executes the script file.

Is there no way to save my script within our central nagios server and deploy it to a certain folder? It seems a pain in the ass to have to deploy everything manually, especially if I need to change the script.

Anyone any ideas?
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: Use Central Nagios to deploy VBS/Powershell

Post by jsmurphy »

Nagios XI has some tools that sort of do this kind of thing, though in my opinion they aren't really "there yet". Your only option really right now is to use your companies automation or package deployment software.

I've been working on an idea to fulfil this gap but it's not likely to happen any time, it's sort of the newest in a long line of "stuff I should do".
TNTGav
Posts: 5
Joined: Tue Apr 17, 2012 7:36 am

Re: Use Central Nagios to deploy VBS/Powershell

Post by TNTGav »

I've been thinking about this since I wrote this earlier. I'm thinking I may deploy a one off VBS to each server that basically keeps the scripts folder synchronised with a secured repository elsewhere. I've already tested the code and it works well but not yet integrated with Nagios. I'd simply setup a test to execute that script within Nagios and execution of that script will synchronise the NSClient scripts folder.
GaWd
Posts: 51
Joined: Wed Dec 15, 2010 1:45 pm

Re: Use Central Nagios to deploy VBS/Powershell

Post by GaWd »

Group policy...
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: Use Central Nagios to deploy VBS/Powershell

Post by jsmurphy »

I stand corrected, if windows only then automation or package deployment software or group policy :lol:
TNTGav
Posts: 5
Joined: Tue Apr 17, 2012 7:36 am

Re: Use Central Nagios to deploy VBS/Powershell

Post by TNTGav »

I'd love to - they are all on completely separate networks though ;)
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: Use Central Nagios to deploy VBS/Powershell

Post by jsmurphy »

That would cause a problem, well if you end up with a re-usable solution be sure to share ;). You're unlikely to be the first or last person to have this problem :)
Locked