Invoke command on Nagios server from Windows client
Posted: Tue Feb 04, 2014 3:45 pm
Hi,
I'm sure there's an easy way to do this, but I seem to have made things difficult for myself. I am running Nagios XI trial on an EC2 Centos instance and monitoring Windows EC2 instances using nsclient++. As part of our autoscaling project, I want to add/remove host and service configs for autoscaled EC2 instances (for a webserver farm). I've got a handle on everything except, what is the best way to tell the Nagios server to launch the automated host management shell scripts?
I've considered adding plink to the Windows servers and using powershell to submit ssh-wrapped commands to the Nagios server, but I'd like to avoid having to install plink (or putty) and register the public key on the EC2.
Is there a way to use a passive check to send the script to run (and necessary parameters) as an nsclient++ call? Or something along those lines?
I'm sure there's an easy way to do this, but I seem to have made things difficult for myself. I am running Nagios XI trial on an EC2 Centos instance and monitoring Windows EC2 instances using nsclient++. As part of our autoscaling project, I want to add/remove host and service configs for autoscaled EC2 instances (for a webserver farm). I've got a handle on everything except, what is the best way to tell the Nagios server to launch the automated host management shell scripts?
I've considered adding plink to the Windows servers and using powershell to submit ssh-wrapped commands to the Nagios server, but I'd like to avoid having to install plink (or putty) and register the public key on the EC2.
Is there a way to use a passive check to send the script to run (and necessary parameters) as an nsclient++ call? Or something along those lines?