[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.
Graphs not updating
Re: Graphs not updating
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.
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
Unfortunately loss of perfdata is going to be a side effect of this. It is working now though, correct?
Former Nagios employee
Re: Graphs not updating
Yes, it is working now.