LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   nagios perodic data (https://www.linuxquestions.org/questions/linux-newbie-8/nagios-perodic-data-860294/)

PoleStar 02-02-2011 02:47 PM

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

angel115 02-02-2011 03:30 PM

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.

angel115 02-03-2011 02:25 AM

Ok, so after checking in our server it's in:
/usr/local/nagios/var/status.dat

PoleStar 02-03-2011 01:12 PM

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.


All times are GMT -5. The time now is 07:03 PM.