|
|
| Author |
Message |
btomjack
Joined: 13 Aug 2007 Posts: 19
|
Posted: Wed Jul 09, 2008 2:47 pm Post subject: [Solved] host graph snmp query issues |
|
|
i am running Version 0.8.7b fully patched. my problem seems to have started after a large power outage where the core network went down where this cacti installation is hosted.
here is my problem:
i can no longer add graphs to hosts, when i do it it returns a message saying that the data query returned 0 rows. however this is not true. when the query is run in debug mode it returns all the necessary data. and i can manually probe the remote hosts using snmpwalk.
i guess i don't really have a clue what is causing this because snmp is working and returning queries but not to the add graph screen. if anyone has seen this before or has any suggestions that would be greatly appreciated.
attached are 3 screen shots, the screen where it tells me i have no rows in the query. one showing the same query in 'debug mode' and a 3rd showing the summary of the query from the edit host screen.
| Description: |
| when trying to add a new graph |
|
| Filesize: |
38.87 KB |
| Viewed: |
1022 Time(s) |

|
| Description: |
|
| Filesize: |
83.56 KB |
| Viewed: |
1022 Time(s) |

|
| Description: |
| query summary on the edit host screen |
|
| Filesize: |
22.14 KB |
| Viewed: |
1022 Time(s) |

|
Last edited by btomjack on Wed Jul 23, 2008 3:33 pm; edited 1 time in total |
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12206 Location: Muenster, Germany
|
Posted: Thu Jul 10, 2008 9:21 am Post subject: |
|
|
Please verify, that your httpd's user is allowed to update cacti.log. Then, please visit again the "Create Graphs for this Host" page and see, if any error message is found in cacti.log
Reinhard
|
|
| Back to top |
|
 |
btomjack
Joined: 13 Aug 2007 Posts: 19
|
Posted: Thu Jul 10, 2008 10:44 am Post subject: |
|
|
i went ahead and turned up the logging to debug and clicked around on that host's page, however it resulted in no messages in the log file specificly relating to the host i was looking at there were errors in the log file, and they are as follows:
07/10/2008 10:41:35 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT name, file, function FROM plugin_hooks WHERE status = 1 AND hook = 'poller_bottom'"
07/10/2008 10:41:35 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT name, file, function FROM plugin_hooks WHERE status = 1 AND hook = 'poller_on_demand'"
07/10/2008 10:41:35 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT name, file, function FROM plugin_hooks WHERE status = 1 AND hook = 'poller_output'"
these are the only critical items that appeared.
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12206 Location: Muenster, Germany
|
Posted: Fri Jul 11, 2008 3:02 pm Post subject: |
|
|
That's from PIA only. That does not relate to your bug
Reinhard
|
|
| Back to top |
|
 |
btomjack
Joined: 13 Aug 2007 Posts: 19
|
Posted: Fri Jul 18, 2008 11:22 am Post subject: |
|
|
| any other ideas? i guess i dont really want to have to start all from scratch, including the sql db. to fix this unless its my last option.
|
|
| Back to top |
|
 |
killshoot
Joined: 26 Mar 2008 Posts: 34
|
Posted: Mon Jul 21, 2008 4:09 am Post subject: |
|
|
Hi,
I've exactly the same problem since today !
@btomjack :
have you find a workaround ?
Best regards,
Vince
|
|
| Back to top |
|
 |
killshoot
Joined: 26 Mar 2008 Posts: 34
|
Posted: Mon Jul 21, 2008 6:56 am Post subject: |
|
|
Ok I've (momently ?) solved the problem :
1. Stop poller
2. run
php repair_database.php => no errors found
3. run
mysqlcheck --auto-repair --databases cacti
4. run
myisamchk -r host_snmp_cache.MYI
5. rebuild poller cache
6 restart poller
http://forums.cacti.net/viewtopic.php?t=27374
|
|
| Back to top |
|
 |
btomjack
Joined: 13 Aug 2007 Posts: 19
|
Posted: Tue Jul 22, 2008 12:33 pm Post subject: |
|
|
| Quote: | Ok I've (momently ?) solved the problem :
1. Stop poller
2. run
php repair_database.php => no errors found
|
same result for me.
| Quote: |
3. run
mysqlcheck --auto-repair --databases cacti
|
all databases processed porperly
| Quote: |
4. run
myisamchk -r host_snmp_cache.MYI
|
ran it on the specific MYI file with no result in the end so i also tried it with *.MYI
| Quote: |
5. rebuild poller cache
6 restart poller |
unfortunately after all that nothing seems to have changed. i agree that it is something to do with the SQL database, because this all started happening after a power outage hit the city where this server is, and after 4 hours on battery the computer lost power, however none of the checkers or repair utilities report any of the tables having any issues.
|
|
| Back to top |
|
 |
btomjack
Joined: 13 Aug 2007 Posts: 19
|
Posted: Tue Jul 22, 2008 1:28 pm Post subject: |
|
|
| though, i did notice my poller cache showed empty when i viewed it before clearing it. however, running a show command on the poller's sql table showed there was data inside of it.
|
|
| Back to top |
|
 |
btomjack
Joined: 13 Aug 2007 Posts: 19
|
Posted: Wed Jul 23, 2008 3:32 pm Post subject: |
|
|
after playing around a little bit i rebuilt the poller cache from the command line, as opposed to in the web interface, and now things appear to be relatively normal again. i can create graphs, and the pages are no longer contradicting themselves with the information they are displaying.
thanks for the help with this Vince!
|
|
| Back to top |
|
 |
|