No Graphs with Mod-Gearman and 2014R1.2
Posted: Sun Jun 29, 2014 9:53 am
Trying to get graphing going with Mod-Gearman on a 2014R1.2.
In order to do that I am changing the graphing definitions like so:
process-host-perfdata-file-bulk
sed -i 's/\\n//g' /usr/local/nagios/var/host-perfdata && /bin/mv /usr/local/nagios/var/host-perfdata /usr/local/nagios/var/spool/xidpe/$TIMET$.perfdata.host
process-service-perfdata-file-bulk
sed -i 's/\\n//g' /usr/local/nagios/var/service-perfdata && /bin/mv /usr/local/nagios/var/service-perfdata /usr/local/nagios/var/spool/xidpe/$TIMET$.perfdata.service
The problem is that when I change the command definitions so they will work with Gearman and save it changes it to "&&" which breaks all graphing.
sed -i 's/\\n//g' /usr/local/nagios/var/host-perfdata && /bin/mv /usr/local/nagios/var/host-perfdata /usr/local/nagios/var/spool/xidpe/$TIMET$.perfdata.host
In order to do that I am changing the graphing definitions like so:
process-host-perfdata-file-bulk
sed -i 's/\\n//g' /usr/local/nagios/var/host-perfdata && /bin/mv /usr/local/nagios/var/host-perfdata /usr/local/nagios/var/spool/xidpe/$TIMET$.perfdata.host
process-service-perfdata-file-bulk
sed -i 's/\\n//g' /usr/local/nagios/var/service-perfdata && /bin/mv /usr/local/nagios/var/service-perfdata /usr/local/nagios/var/spool/xidpe/$TIMET$.perfdata.service
The problem is that when I change the command definitions so they will work with Gearman and save it changes it to "&&" which breaks all graphing.
sed -i 's/\\n//g' /usr/local/nagios/var/host-perfdata && /bin/mv /usr/local/nagios/var/host-perfdata /usr/local/nagios/var/spool/xidpe/$TIMET$.perfdata.host