Upgraded ubuntu Nagios Server and Trends not working as exp!

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Teja
Posts: 53
Joined: Tue Jun 13, 2017 8:13 am

Re: Upgraded ubuntu Nagios Server and Trends not working as

Post 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?
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Upgraded ubuntu Nagios Server and Trends not working as

Post 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.
Former Nagios employee
https://www.mcapra.com/
Teja
Posts: 53
Joined: Tue Jun 13, 2017 8:13 am

Re: Upgraded ubuntu Nagios Server and Trends not working as

Post 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!!!!!!
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Upgraded ubuntu Nagios Server and Trends not working as

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Teja
Posts: 53
Joined: Tue Jun 13, 2017 8:13 am

Re: Upgraded ubuntu Nagios Server and Trends not working as

Post by Teja »

Thanks a lot friends (tgriep,mcapra,lmiltchev) its working!!!!, all your comments were valuable!!!


Cheers!!! :D
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Upgraded ubuntu Nagios Server and Trends not working as

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked