LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 02:47 PM   #1
PoleStar
Member
 
Registered: Jul 2010
Posts: 231

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, 03:30 PM   #2
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 542

Rep: Reputation: 79
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 03:31 PM.
 
Old 02-03-2011, 02:25 AM   #3
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 542

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

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



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 07:26 AM
Fail to install Nagios Pluggin nagios-plugins-1.4.15.tar.gz fred_xlf Linux - Software 1 11-27-2010 06:09 AM
[SOLVED] Nagios not receiving SNMP data tutigan Linux - Networking 6 05-19-2010 02:26 AM
Nagios SNMP problem - No data received from host sp149 Linux - Software 7 07-12-2009 01: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 05:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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