Page 2 of 2

Re: Upgraded ubuntu Nagios Server and Trends not working as

Posted: Fri Jun 23, 2017 8:14 am
by Teja
Hi mcapra,
Thanks much for your reply, And is this the only Place (log_archive_path=/usr/local/nagios/var/archives) that i need to change the location ? and after changing will Trends fetch the data from the New Location?

Re: Upgraded ubuntu Nagios Server and Trends not working as

Posted: Fri Jun 23, 2017 8:41 am
by mcapra
I would think so. Here's the relevant lines in the source for trends.cgi:
https://github.com/NagiosEnterprises/na ... 2458-L2500

Which references the get_log_archive_to_use function:
https://github.com/NagiosEnterprises/na ... 1451-L1472

Probably still worth testing first, though.

Re: Upgraded ubuntu Nagios Server and Trends not working as

Posted: Fri Jun 23, 2017 9:20 am
by Teja
Hi mcapra,
Tough to get through that code :)little more brief info would help,but will test by changing the path.Thank you!!!!!!

Re: Upgraded ubuntu Nagios Server and Trends not working as

Posted: Fri Jun 23, 2017 10:42 am
by tgriep
All you would have to do it to edit the nagios.cfg file and change this line to the new path.

Code: Select all

log_archive_path=/usr/local/nagios/var/archives
Stop the nagios process
Copy the existing archive files to the new location and start the nagios process.
Then when you run any report, it will have access to the last 15 days of data and any new ones that are created.

BTW, the new folder has to have it's permissions set so the nagios user account can read and write to that folder.

Re: Upgraded ubuntu Nagios Server and Trends not working as

Posted: Wed Jun 28, 2017 3:17 am
by Teja
Thanks a lot friends (tgriep,mcapra,lmiltchev) its working!!!!, all your comments were valuable!!!


Cheers!!! :D

Re: Upgraded ubuntu Nagios Server and Trends not working as

Posted: Wed Jun 28, 2017 9:54 am
by tgriep
Your welcome! I'll close and lock the post as solved. If you have any questions in the future, feel free to open a new post.