Clear Old traps of 2 years from Front End.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jatindeepsharma
Posts: 70
Joined: Wed Apr 04, 2018 10:52 am

Clear Old traps of 2 years from Front End.

Post by jatindeepsharma »

Hello Team,
Good Morning.
Can you please help me out how can i clear old traps from front end cause these traps are from last 2 years & showing data from june 2018. i only want to keep traps at front end from january 2020 to now onwards.

Regards
Jatindeep Sharma
jatindeepsharma
Posts: 70
Joined: Wed Apr 04, 2018 10:52 am

Re: Clear Old traps of 2 years from Front End.

Post by jatindeepsharma »

Hello Team,
Can anybody reply on it??

Regards
JD
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Clear Old traps of 2 years from Front End.

Post by Box293 »

Can you explain exactly where the old traps are showing please. Use a screenshot if it helps.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
jatindeepsharma
Posts: 70
Joined: Wed Apr 04, 2018 10:52 am

Re: Clear Old traps of 2 years from Front End.

Post by jatindeepsharma »

Hi Box293,
Please find attached screen shot. these are showing on Nagios front end.


Regards
JD
You do not have the required permissions to view the files attached to this post.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Clear Old traps of 2 years from Front End.

Post by Box293 »

I believe this information is pulled from the archived log files which are locarted in /usr/local/nagios/var/archives/. The log file naming format is nagios-MM-DD-YYYY. Delete the oldest logs first and see if that provides the solution you are after.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
jatindeepsharma
Posts: 70
Joined: Wed Apr 04, 2018 10:52 am

Re: Clear Old traps of 2 years from Front End.

Post by jatindeepsharma »

Hi Box293,
There is not such file available at this location. Please suggest.

[root@NagiosXI archives]# pwd
/usr/local/nagios/var/archives
[root@NagiosXI archives]# ls -ltr
total 0


Regards
JD
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Clear Old traps of 2 years from Front End.

Post by Box293 »

This is the default location. If you've changed it then it will be defined in nagios.cfg and you could run this command to identify it:

Code: Select all

grep archive /usr/local/nagios/etc/nagios.cfg
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
jatindeepsharma
Posts: 70
Joined: Wed Apr 04, 2018 10:52 am

Re: Clear Old traps of 2 years from Front End.

Post by jatindeepsharma »

Hi,
After running the command i have received location of logs but when i am checking log file, only logs of last day are available in logs file.please help.

Output is given below :-

[root@NagiosXI ~]# grep archive /usr/local/nagios/etc/nagios.cfg
log_archive_path=/usr/local/nagios/var/archives
[root@NagiosXI ~]# cd /usr/local/nagios/var/archives
[root@NagiosXI archives]# ls -ltr
total 473856
-rw-r--r-- 1 nagios nagios 485223679 Mar 3 23:59 nagios-03-04-2020-00.log
[root@NagiosXI archives]#




Regards
Jatindeep
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Clear Old traps of 2 years from Front End.

Post by Box293 »

I don't know what is going on there.

It then sounds like the log data is in the database.

https://assets.nagios.com/downloads/nag ... zation.pdf

I think perhaps the Max SNMP Trap Age is the setting that needs to be changed.

Any change made here should occur on the next Optimize Interval.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
jatindeepsharma
Posts: 70
Joined: Wed Apr 04, 2018 10:52 am

Re: Clear Old traps of 2 years from Front End.

Post by jatindeepsharma »

I have gone through document link in previous conversation, there is i am not getting any option on my screen for MAX SNMP TRAP Age in Nagios XI Database option.
Screen shot is attached. please suggest.

Regards
Jatindeep
You do not have the required permissions to view the files attached to this post.
Locked