Upgraded ubuntu Nagios Server and Trends not working as exp!

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Re: Upgraded ubuntu Nagios Server and Trends not working as

Postby Teja » Fri Jun 23, 2017 8:14 am

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?
Teja
 
Posts: 48
Joined: Tue Jun 13, 2017 8:13 am

Re: Upgraded ubuntu Nagios Server and Trends not working as

Postby mcapra » Fri Jun 23, 2017 8:41 am

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
http://www.mcapra.com/
User avatar
mcapra
 
Posts: 3290
Joined: Thu May 05, 2016 3:54 pm

Re: Upgraded ubuntu Nagios Server and Trends not working as

Postby Teja » Fri Jun 23, 2017 9:20 am

Hi mcapra,
Tough to get through that code :)little more brief info would help,but will test by changing the path.Thank you!!!!!!
Teja
 
Posts: 48
Joined: Tue Jun 13, 2017 8:13 am

Re: Upgraded ubuntu Nagios Server and Trends not working as

Postby tgriep » Fri Jun 23, 2017 10:42 am

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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tgriep
Madmin
 
Posts: 6760
Joined: Thu Oct 30, 2014 9:02 am

Re: Upgraded ubuntu Nagios Server and Trends not working as

Postby Teja » Wed Jun 28, 2017 3:17 am

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


Cheers!!! :D
Teja
 
Posts: 48
Joined: Tue Jun 13, 2017 8:13 am

Re: Upgraded ubuntu Nagios Server and Trends not working as

Postby tgriep » Wed Jun 28, 2017 9:54 am

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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tgriep
Madmin
 
Posts: 6760
Joined: Thu Oct 30, 2014 9:02 am

Previous

Return to Nagios Core

Who is online

Users browsing this forum: cocoyanouck and 21 guests