On 15.11.2010 13:22, Keith Bastin wrote: > <just to clarify my last message> I am referring to a search and replace > within each of the history files, not the names of those files. The Nagios > Archives all of the state change data for hosts and services within a flat > text file that is rolled daily. Those files are stored in the archives > folder and whenever you run a trend report on a service or host state > history it parses every daily file in the archive folder that falls within > the date range of your query.
Well, I know. It's stored in /var/log/nagios/archives/xxxxx.log But I'm not hunger for rewriting the tons of files manually. Can anyone help me with the script or something like that, maybe if it could ask for old and new names and rewrites all occurences in the log liles correctly. ______ .... Enter the old name: blahblahold Enter the new name: blahblahnew ..... ______ ;-))) Thanks in advance Ales R. -- Ales Rikovsky +420 585631826 ales.rikov...@upol.cz Biskupske nam. 1 Palacky University Computer Center 771 11 Olomouc ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null