LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-07-2014, 08:57 AM   #1
emrahgultekin
LQ Newbie
 
Registered: Jan 2014
Posts: 6

Rep: Reputation: Disabled
Nagios - Some Lines Are Empty in Email


I can't get some lines in notification mail
Service , status and Additional Info is EMPTY
How can i fix this? I am new at this subject.
Please help me


Here is mey codes

#HOST DEFINITION
define host{
use generic-host
host_name cerkezmusellim
alias cerkezmusellim
address 88.247.137.245
max_check_attempts 3
notification_interval 10
notification_period 24x7
notification_options d,r,u
contact_groups Fap-admins
}



# SERVICE DEFINITIONS
define service{
use generic-service
host_name cerkezmusellim
service_description HTTP_80
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 10
retry_check_interval 1
contact_groups Win-admins
notification_options u,c,r
notification_interval 30
notification_period 24x7
check_command check_tcp!80!10!20
}
 
Old 01-07-2014, 09:16 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by emrahgultekin View Post
I can't get some lines in notification mail
Service , status and Additional Info is EMPTY How can i fix this? I am new at this subject.
Please help me
..and like you were told in the OTHER thread that you hijacked/reopened, the solution is in there. Specifically, posts #2 and #5

Last edited by TB0ne; 01-07-2014 at 09:17 AM.
 
Old 01-07-2014, 10:05 AM   #3
emrahgultekin
LQ Newbie
 
Registered: Jan 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
Sory man. I am new about nagios. And my english is not perfect
Can you tell me the answer clearly.
what should i do

Quote:
Originally Posted by TB0ne View Post
..and like you were told in the OTHER thread that you hijacked/reopened, the solution is in there. Specifically, posts #2 and #5
 
Old 01-07-2014, 10:29 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by emrahgultekin View Post
Sory man. I am new about nagios. And my english is not perfect
Can you tell me the answer clearly.
what should i do
You should READ THE OTHER THREAD. The answer is in there, VERY clearly, in post #5, with examples of what to do. If you can't follow the example there, I'm not sure what else we can do to help you.

Unless you define those things, they won't come through. You're not telling us WHAT isn't coming through, or showing us a sample of the email. Did you define the email command structure, again as the example in that other thread? Did you read the Nagios configuration guides?

http://nagios.sourceforge.net/docs/3...fications.html
 
Old 01-08-2014, 01:58 AM   #5
emrahgultekin
LQ Newbie
 
Registered: Jan 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
Dear TB0ne
I am very new at this Nagios things. This is my first look to Nagios and I don't know any thing about nagios. I did read other thread post #5 but that example not like mine cfg files. I can't understand any thing
But i have some cfg files. If i attach cfg files can you help me please?
localhost cfg.txt

commands cfg.txt

contacts cfg.txt


Quote:
Originally Posted by TB0ne View Post
You should READ THE OTHER THREAD. The answer is in there, VERY clearly, in post #5, with examples of what to do. If you can't follow the example there, I'm not sure what else we can do to help you.

Unless you define those things, they won't come through. You're not telling us WHAT isn't coming through, or showing us a sample of the email. Did you define the email command structure, again as the example in that other thread? Did you read the Nagios configuration guides?

http://nagios.sourceforge.net/docs/3...fications.html
 
Old 01-08-2014, 02:00 AM   #6
emrahgultekin
LQ Newbie
 
Registered: Jan 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
Here is mail example.
Service , State and Additional Info is EMPTY as you can see.


***** Nagios *****

Notification Type: PROBLEM

Service: $
Host: erzincan
Address: 78.188.233.202
State: $

Date/Time: Mon Jan 6 14:39:16 EET 2014

Additional Info:

$





Quote:
Originally Posted by emrahgultekin View Post
Dear TB0ne
I am very new at this Nagios things. This is my first look to Nagios and I don't know any thing about nagios. I did read other thread post #5 but that example not like mine cfg files. I can't understand any thing
But i have some cfg files. If i attach cfg files can you help me please?
Attachment 14438

Attachment 14439

Attachment 14440
 
Old 01-08-2014, 02:02 AM   #7
emrahgultekin
LQ Newbie
 
Registered: Jan 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
"erzincan" is ADSL modem (78.188.233.202) by the way
And I want to check HTTP_80 Port


Quote:
Originally Posted by emrahgultekin View Post
Here is mail example.
Service , State and Additional Info is EMPTY as you can see.


***** Nagios *****

Notification Type: PROBLEM

Service: $
Host: erzincan
Address: 78.188.233.202
State: $

Date/Time: Mon Jan 6 14:39:16 EET 2014

Additional Info:

$
 
  


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
[SOLVED] Need to remove empty lines from a file ashishkumar1000 Linux - Newbie 10 08-19-2012 02:13 PM
[SOLVED] Empty lines in output of tcpdump hua Linux - Networking 2 05-23-2012 01:00 AM
Nagios - email notification - How to receive alert email? kumaran1983 Linux - Newbie 4 10-20-2011 06:12 AM
extract contents between two empty lines vikas027 Programming 6 12-19-2008 09:52 AM
Sed empty lines nc3b Programming 4 08-27-2006 06:37 AM

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

All times are GMT -5. The time now is 06:04 PM.

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