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 |
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. |
Ok, so after checking in our server it's in:
/usr/local/nagios/var/status.dat |
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 Thanks. |
All times are GMT -5. The time now is 07:03 PM. |