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?
Upgraded ubuntu Nagios Server and Trends not working as exp!
Re: Upgraded ubuntu Nagios Server and Trends not working as
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.
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.
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: Upgraded ubuntu Nagios Server and Trends not working as
Hi mcapra,
Tough to get through that code :)little more brief info would help,but will test by changing the path.Thank you!!!!!!
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
All you would have to do it to edit the nagios.cfg file and change this line to the new path.
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.
Code: Select all
log_archive_path=/usr/local/nagios/var/archives
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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Upgraded ubuntu Nagios Server and Trends not working as
Thanks a lot friends (tgriep,mcapra,lmiltchev) its working!!!!, all your comments were valuable!!!
Cheers!!!
Cheers!!!
Re: Upgraded ubuntu Nagios Server and Trends not working as
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.
Be sure to check out our Knowledgebase for helpful articles and solutions!