LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-10-2011, 08:38 AM   #1
brajeshkumar
LQ Newbie
 
Registered: Sep 2009
Location: Chennai
Posts: 6
Blog Entries: 3

Rep: Reputation: 0
Reg: Nagios_Check_http_Port


Hi All

I have installed Nagios Core in my CentOS but not able to configure port based check_http. We are using several port in apache-tomcat in remote server. We can able to configure default port 80. I have to need to configure server port of 8082, 8084 … could you assist me port based configure on nagios. This is my cfg file of check_http.

define host{
use linux-server
host_name USSERVER
alias USSERVER
address saas-testing.com
}
define service{
use generic-service
host_name USSERVER
service_description HTTP
check_command check_http
check_interval 3
check_period 24x7
retry_interval 2
max_check_attempts 2
notification_interval 5
notification_period workhours
notification_options w,c,u,r
notifications_enabled 1
}
Regards

B.Rajeshkumar
 
Old 01-10-2011, 09:56 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
For most Nagios Plugins if you type the command at command line with the "-h" flag it will give you help.

So if you type "./check_http -h" you'll see all the options to the command. One of those is the "-p" option that allows you to specify port. You follow the "-p" with the integer value of the port so "check_http -p 8082" would specify that port in your command.
 
Old 01-19-2011, 01:10 AM   #3
brajeshkumar
LQ Newbie
 
Registered: Sep 2009
Location: Chennai
Posts: 6

Original Poster
Blog Entries: 3

Rep: Reputation: 0
Hi All

I used Nagios Core in my CentOS Server. It’s working fine. I need to change notification alert from my mail id. Now am getting mail id from nagios@monitor.server. The monitor.server is my CentOS host id. How to switch to my mail id, (ras.kumar01@gmail.com) in nagios.


Regards

B.Rajeshkumar
 
Old 01-19-2011, 01:06 PM   #4
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 542

Rep: Reputation: 79
Have you check the value of the directive admin_email and admin_pager in your nagios.cfg?
 
Old 01-19-2011, 01:22 PM   #5
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Quote:
Originally Posted by angel115 View Post
Have you check the value of the directive admin_email and admin_pager in your nagios.cfg?
That can change where it is sent to (assuming he is using those macros). It appears his question is where it is sent from. Changing where it is sent from requires doing some form of masquerading in the mail setup not Nagios itself.

brajeshkumar - you should not append new questions to old threads. Also you should mark old threads as "SOLVED" in the thread tools if the original question was resolved. Appending new questions that aren't follow ups to the original one means usually only the people that subscribed to the original thread will see it.

If you're using sendmail then doing a web search for "sendmail masquerading" should give you some good information on how to do that.
 
  


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
Reg: /proc kbarani Linux - Networking 5 12-24-2008 07:11 AM
Windows: Which program can track the reg updates at software install and make a reg? frenchn00b General 5 11-20-2008 04:26 PM
Reg:COM maniviswa Linux - Server 1 05-22-2008 02:23 PM
sqlite3_load_extension - reg zoobave Programming 2 08-01-2007 02:23 AM
Nice surprise Kaffeine plays Reg 1 and Reg 2 disks 1kyle SUSE / openSUSE 1 10-10-2005 04:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:01 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