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?
Use Central Nagios to deploy VBS/Powershell
Re: Use Central Nagios to deploy VBS/Powershell
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".
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".
Re: Use Central Nagios to deploy VBS/Powershell
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.
Re: Use Central Nagios to deploy VBS/Powershell
Group policy...
Re: Use Central Nagios to deploy VBS/Powershell
I stand corrected, if windows only then automation or package deployment software or group policy 
Re: Use Central Nagios to deploy VBS/Powershell
I'd love to - they are all on completely separate networks though 
Re: Use Central Nagios to deploy VBS/Powershell
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 