Page 1 of 2
Clear Old traps of 2 years from Front End.
Posted: Mon Feb 24, 2020 11:14 am
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
Re: Clear Old traps of 2 years from Front End.
Posted: Tue Feb 25, 2020 9:54 am
by jatindeepsharma
Hello Team,
Can anybody reply on it??
Regards
JD
Re: Clear Old traps of 2 years from Front End.
Posted: Tue Feb 25, 2020 5:31 pm
by Box293
Can you explain exactly where the old traps are showing please. Use a screenshot if it helps.
Re: Clear Old traps of 2 years from Front End.
Posted: Wed Feb 26, 2020 10:13 am
by jatindeepsharma
Hi Box293,
Please find attached screen shot. these are showing on Nagios front end.
Regards
JD
Re: Clear Old traps of 2 years from Front End.
Posted: Wed Feb 26, 2020 5:41 pm
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.
Re: Clear Old traps of 2 years from Front End.
Posted: Tue Mar 03, 2020 3:23 pm
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
Re: Clear Old traps of 2 years from Front End.
Posted: Tue Mar 03, 2020 4:49 pm
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
Re: Clear Old traps of 2 years from Front End.
Posted: Wed Mar 04, 2020 9:39 am
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
Re: Clear Old traps of 2 years from Front End.
Posted: Thu Mar 05, 2020 5:50 pm
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.
Re: Clear Old traps of 2 years from Front End.
Posted: Fri Mar 06, 2020 12:02 pm
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