LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-02-2011, 03:47 PM   #1
PoleStar
Member
 
Registered: Jul 2010
Posts: 165

Rep: Reputation: 2
nagios perodic data


Hi,


We need to collect data from nagios once a week and have it sent/mailed.
What would be a good place to get it? I am thinking starting with

nagios/var/nagios.log

scan it once a week and get most recent entries from each hosts.

Any other ideas.

BTW data is being written in /var/log/messages and in mysql(ndo thing)


Thanks
 
Old 02-02-2011, 04:30 PM   #2
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 532

Rep: Reputation: 78
Hi PoleStar,

By default nagios is storing the status of each host in the status.log file
if you store the nagios data using files, check the value of the setting status_file in your nagios.cfg this should tell you where the status data are stored. (the default should be something like /usr/local/nagios/var/status.log)

I can tell you more about this tomorrow as I'll have access to our nagios server.

Anyway I hope that will help for now.

Best regards,
Angel.

Last edited by angel115; 02-02-2011 at 04:31 PM.
 
Old 02-03-2011, 03:25 AM   #3
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 532

Rep: Reputation: 78
Ok, so after checking in our server it's in:
/usr/local/nagios/var/status.dat
 
Old 02-03-2011, 02:12 PM   #4
PoleStar
Member
 
Registered: Jul 2010
Posts: 165

Original Poster
Rep: Reputation: 2
Thanks angel,

I looked at that It does have that information.

How ever I find mysql easier to use.

Information I was looking for is in

Code:
mysql--->nagios---->nagios_longentirs-------->logentry_data
and digging data against todays date get me all that newest status information.

Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: Nagios and Oreon (Nagios web front end) installation and Configuration LXer Syndicated Linux News 1 05-31-2016 08:26 AM
Fail to install Nagios Pluggin nagios-plugins-1.4.15.tar.gz fred_xlf Linux - Software 1 11-27-2010 07:09 AM
[SOLVED] Nagios not receiving SNMP data tutigan Linux - Networking 6 05-19-2010 03:26 AM
Nagios SNMP problem - No data received from host sp149 Linux - Software 7 07-12-2009 02:19 AM
LXer: Nagios 2.5 and Oreon 1.3 (Nagios web front end) installation with screenshots LXer Syndicated Linux News 0 08-11-2006 06:33 PM


All times are GMT -5. The time now is 06:56 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration