Page 2 of 2

Re: Graphs not updating

Posted: Mon Jun 09, 2014 8:46 am
by adam.sage
[root@nagios ~]# tail -200 /usr/local/nagiosxi/var/perfdataproc.log
Outbound data DISABLED Mon, 09 Jun 2014 09:46:01 -0400
sh: /bin/mv: Argument list too long
sh: /bin/mv: Argument list too long
sh: /bin/mv: Argument list too long

DONE. Processed 0 files.

Re: Graphs not updating

Posted: Mon Jun 09, 2014 10:13 am
by adam.sage
I resolved this issue using the following commands:

Use these commands to move all files to a tmp directory:

cd /usr/local/nagios/var/spool/xidpe
i=`ls | wc -l`
while [ $i -gt 10001 ]; do mv `ls | head -10000 | grep perfdata | tr '\n' ' '` /opt/tmp/;i=`ls | wc -l`;done

After everything is moved use these commands to slowly add files back to be processed:

cd /opt/tmp
i=`ls | wc -l`
while [ $i -gt 0 ]; do mv `ls | head -10000 | grep perfdata | tr '\n' ' '` /usr/local/nagios/var/spool/xidpe/;sleep 15;i=`ls | wc -l`;echo Files Remaining: $i;done

The graphs seem to have lost all the data from the time the database was reinstalled until these scripts were ran, so I think they were pretty unhelpful as we could have just deleted all the files and had the same result.

Re: Graphs not updating

Posted: Mon Jun 09, 2014 5:07 pm
by tmcdonald
Unfortunately loss of perfdata is going to be a side effect of this. It is working now though, correct?

Re: Graphs not updating

Posted: Tue Jun 10, 2014 7:27 am
by adam.sage
Yes, it is working now.

Re: Graphs not updating

Posted: Tue Jun 10, 2014 9:22 am
by tmcdonald
Alright then. Closing thread.