LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Local Nagis ((from Nagios Server)) which appears on different servers (https://www.linuxquestions.org/questions/linux-software-2/local-nagis-from-nagios-server-which-appears-on-different-servers-917261/)

hyperdaz 12-05-2011 12:00 PM

Local Nagis ((from Nagios Server)) which appears on different servers
 
I would like to create a local check on the Nagios Server, because this server has access to the ports required, the remote server does not.

Its a perl scipt that works locally from the Nagios server.

How would I run this script so it apears to be running on the server where the website is hosted rather than showing up on the Nagios Server itself.

also any examples of running perl scripts localy on Nagios Server?

Cheers
Hdaz

acid_kewpie 12-05-2011 12:09 PM

You just need to create a normal command configuration for nagios and assign the required node to run it. all nagios checks just come from executing a script locally, so that script can do whatever it feels like. As nagios is utter junk, there is nothing whatsoever connecting a monitor assigned to a node and the node itself. The responsibility is totally down to the script itself to utilise the fact that it's been given a hostname as part of its input. Just don't make your script care about that, and job done.


All times are GMT -5. The time now is 11:24 AM.