LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-05-2011, 12:00 PM   #1
hyperdaz
Member
 
Registered: Sep 2004
Location: UK
Distribution: CentOS 5.5
Posts: 44

Rep: Reputation: 1
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
 
Old 12-05-2011, 12:09 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Nagios 3.1.2 + RHEL 5.3 You don't have permission to access /nagios/ on this server psix Linux - Server 13 08-04-2015 02:25 AM
ould not create external command file '/usr/local/nagios/var/rw/nagios.cmd gerard.zapata Linux - Newbie 2 09-14-2012 01:57 PM
Monitor servers with nagios behind firewall --witout ping, sarajevo Linux - Server 5 05-29-2009 03:35 AM
iptables: local proFTPd server and remote FTP servers access jordib Linux - Networking 2 05-04-2008 02:46 PM
why not etc/ in my /usr/local/nagios? 2007fld Linux - Software 1 05-30-2007 03:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration