I just upgraded to 0.8.8b after suffering several purges of data after adjusting some custom data-templates in 0.8.8a. Now, it seems the poller _item table contains extra '\' characters compared to the data_input_data table. This is causing an empty result from my script. I noticed this when adjusting the snmp settings on a host with the pertinent graphs associated to it. When I rebuilt the poller cache the extra \ characters were inserted for all like data-sources across all devices. I had to use a backup of my db to get data back. Running the poller_reindex_hosts.php cli script does not trigger the error. When I create a new graph using these scripts and arguments (as_path information) the extra '\' characters seem to be installed into poller_item table from the get go even though data_input_data does not register the extra characters.
The scripts being run are pulling sflow traffic statistics from another database that match either as_path or location/as_path info.
Empty result log entries:
Code: Select all
09/06/2013 08:40:31 AM - SPINE: Poller[0] Host[779] ERROR: Empty result [sflow - Total Graph Host]: 'python /var/www/cacti/scripts/offpeer \'^1299_|^1299$|_1299$|_1299_\' ams'
09/06/2013 08:40:42 AM - SPINE: Poller[0] Host[784] ERROR: Empty result [sflow - onpeer graph host]: 'python /var/www/cacti/scripts/globas \'^8452$|^8452_\''
09/06/2013 08:40:43 AM - SPINE: Poller[0] Host[783] ERROR: Empty result [sflow - offpeer graph host]: 'python /var/www/cacti/scripts/globas \'_8452$|_8452_\''
09/06/2013 08:40:50 AM - SPINE: Poller[0] Host[783] ERROR: Empty result [sflow - offpeer graph host]: 'python /var/www/cacti/scripts/globas _8452$\\|_8452_'
09/06/2013 08:40:53 AM - SPINE: Poller[0] Host[784] ERROR: Empty result [sflow - onpeer graph host]: 'python /var/www/cacti/scripts/globas ^8452$\\|^8452_'
09/06/2013 08:40:57 AM - SPINE: Poller[0] Host[779] ERROR: Empty result [sflow - Total Graph Host]: 'python /var/www/cacti/scripts/globas \'^8452$|^8452_|_8452$|_8452_\''
09/06/2013 08:40:58 AM - SPINE: Poller[0] Host[779] ERROR: Empty result [sflow - Total Graph Host]: 'python /var/www/cacti/scripts/globas ^8452$\\|^8452_\\|_8452$\\|_8452_'
Code: Select all
mysql> select local_data_id,poller_id,host_id,action,arg1 from poller_item where arg1 rlike '5511';
+---------------+-----------+---------+--------+--------------------------------------------------------------------------+
| local_data_id | poller_id | host_id | action | arg1 |
+---------------+-----------+---------+--------+--------------------------------------------------------------------------+
| 9658 | 0 | 141 | 1 | python /var/www/cacti/scripts/offpeer ^5511_\|^5511$ sjc |
| 9542 | 0 | 783 | 1 | python /var/www/cacti/scripts/offpeer _5511$\|_5511_ par |
| 9541 | 0 | 784 | 1 | python /var/www/cacti/scripts/offpeer ^5511_\|^5511$ par |
| 9505 | 0 | 784 | 1 | python /var/www/cacti/scripts/offpeer ^5511_\|^5511$ ord |
| 9506 | 0 | 783 | 1 | python /var/www/cacti/scripts/offpeer _5511$\|_5511_ ord |
| 9412 | 0 | 784 | 1 | python /var/www/cacti/scripts/offpeer ^5511_\|^5511$ mad |
| 9413 | 0 | 783 | 1 | python /var/www/cacti/scripts/offpeer _5511$\|_5511_ mad |
| 9394 | 0 | 784 | 1 | python /var/www/cacti/scripts/offpeer ^5511_\|^5511$ lon |
| 9395 | 0 | 783 | 1 | python /var/www/cacti/scripts/offpeer _5511$\|_5511_ lon |
| 13407 | 0 | 784 | 1 | python /var/www/cacti/scripts/globas ^5511$\|^5511_ |
| 9079 | 0 | 138 | 1 | python /var/www/cacti/scripts/offpeer ^5511_\|^5511$ dal |
| 9080 | 0 | 138 | 1 | python /var/www/cacti/scripts/offpeer _5511$\|_5511_ dal |
| 13408 | 0 | 783 | 1 | python /var/www/cacti/scripts/globas _5511$\|_5511_ |
| 13409 | 0 | 779 | 1 | python /var/www/cacti/scripts/globas ^5511$\|^5511_\|_5511$\|_5511_ |
| 11584 | 0 | 138 | 1 | python /var/www/cacti/scripts/offpeer ^5511_\|^5511$\|_5511$\|_5511_ dal |
| 11689 | 0 | 779 | 1 | python /var/www/cacti/scripts/offpeer ^5511_\|^5511$\|_5511$\|_5511_ lon |
| 11695 | 0 | 779 | 1 | python /var/www/cacti/scripts/offpeer ^5511_\|^5511$\|_5511$\|_5511_ mad |
| 11726 | 0 | 779 | 1 | python /var/www/cacti/scripts/offpeer ^5511_\|^5511$\|_5511$\|_5511_ ord |
| 11777 | 0 | 141 | 1 | python /var/www/cacti/scripts/offpeer ^5511_\|^5511$\|_5511$\|_5511_ sjc |
| 11738 | 0 | 779 | 1 | python /var/www/cacti/scripts/offpeer ^5511_\|^5511$\|_5511$\|_5511_ par |
| 9659 | 0 | 141 | 1 | python /var/www/cacti/scripts/offpeer _5511$\|_5511_ sjc |
| 14134 | 0 | 787 | 1 | python /var/www/cacti/scripts/globas ^5511_12956$\|^5511_12956_ |
+---------------+-----------+---------+--------+--------------------------------------------------------------------------+
22 rows in set (0.02 sec)
mysql> select * from data_input_data where value rlike '5511';
+---------------------+-----------------------+---------+--------------------------------+
| data_input_field_id | data_template_data_id | t_value | value |
+---------------------+-----------------------+---------+--------------------------------+
| 47 | 7951 | | 5511 |
| 47 | 8435 | | ^5511$\|^5511_ |
| 47 | 8436 | | _5511$\|_5511_ |
| 47 | 8437 | | ^5511$\|^5511_\|_5511$\|_5511_ |
| 49 | 8540 | | ^5511_\|^5511$ |
| 49 | 8642 | | ^5511_\|^5511$ |
| 49 | 8744 | | ^5511_\|^5511$ |
| 49 | 9011 | | ^5511_\|^5511$ |
| 49 | 9149 | | ^5511_\|^5511$ |
| 49 | 9150 | | _5511$\|_5511_ |
| 49 | 9464 | | ^5511_\|^5511$ |
| 49 | 9465 | | _5511$\|_5511_ |
| 49 | 9482 | | ^5511_\|^5511$ |
| 49 | 9483 | | _5511$\|_5511_ |
| 49 | 9575 | | ^5511_\|^5511$ |
| 49 | 9576 | | _5511$\|_5511_ |
| 49 | 9611 | | ^5511_\|^5511$ |
| 49 | 9612 | | _5511$\|_5511_ |
| 49 | 9728 | | ^5511_\|^5511$ |
| 49 | 9729 | | _5511$\|_5511_ |
| 49 | 11661 | | ^5511_\|^5511$\|_5511$\|_5511_ |
| 49 | 11766 | | ^5511_\|^5511$\|_5511$\|_5511_ |
| 49 | 11772 | | ^5511_\|^5511$\|_5511$\|_5511_ |
| 49 | 11803 | | ^5511_\|^5511$\|_5511$\|_5511_ |
| 49 | 11815 | | ^5511_\|^5511$\|_5511$\|_5511_ |
| 49 | 11854 | | ^5511_\|^5511$\|_5511$\|_5511_ |
| 47 | 13487 | | ^5511$\|^5511_ |
| 47 | 13488 | | _5511$\|_5511_ |
| 47 | 13489 | | ^5511$\|^5511_\|_5511$\|_5511_ |
| 47 | 14215 | | ^5511_12956$\|^5511_12956_ |
+---------------------+-----------------------+---------+--------------------------------+
30 rows in set (0.00 sec)
Code: Select all
mysql> select local_data_id,poller_id,host_id,action,arg1 from poller_item where arg1 rlike '8452';
+---------------+-----------+---------+--------+------------------------------------------------------------------------+
| local_data_id | poller_id | host_id | action | arg1 |
+---------------+-----------+---------+--------+------------------------------------------------------------------------+
| 14148 | 0 | 783 | 1 | python /var/www/cacti/scripts/globas \'_8452$|_8452_\' |
| 14147 | 0 | 784 | 1 | python /var/www/cacti/scripts/globas \'^8452$|^8452_\' |
| 14149 | 0 | 779 | 1 | python /var/www/cacti/scripts/globas \'^8452$|^8452_|_8452$|_8452_\' |
| 14153 | 0 | 784 | 1 | python /var/www/cacti/scripts/globas ^8452$\\|^8452_ |
| 14154 | 0 | 783 | 1 | python /var/www/cacti/scripts/globas _8452$\\|_8452_ |
| 14155 | 0 | 779 | 1 | python /var/www/cacti/scripts/globas ^8452$\\|^8452_\\|_8452$\\|_8452_ |
+---------------+-----------+---------+--------+------------------------------------------------------------------------+
6 rows in set (0.03 sec)
mysql> select * from data_input_data where value rlike '8452';
+---------------------+-----------------------+---------+--------------------------------+
| data_input_field_id | data_template_data_id | t_value | value |
+---------------------+-----------------------+---------+--------------------------------+
| 47 | 12405 | | ^8452_\|^8452$\|_8452$\|_8452_ |
| 47 | 13356 | | ^8452_\|^8452$\|_8452$\|_8452_ |
| 47 | 13441 | | ^8452_\|^8452$\|_8452$\|_8452_ |
| 47 | 14235 | | _8452$\|_8452_ |
| 47 | 14236 | | ^8452$\|^8452_\|_8452$\|_8452_ |
| 47 | 14234 | | ^8452$\|^8452_ |
| 47 | 14230 | | '^8452$|^8452_|_8452$|_8452_' |
| 47 | 14228 | | '^8452$|^8452_' |
| 47 | 14229 | | '_8452$|_8452_' |
+---------------------+-----------------------+---------+--------------------------------+
9 rows in set (0.00 sec)
Thank you muchly for the help
-Gabe