[Solved] host graph snmp query issues
Moderators: Developers, Moderators
[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.
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.
- Attachments
-
- query summary on the edit host screen
- edithost.JPG (22.14 KiB) Viewed 2990 times
-
- query in debug mode
- snmpquery.JPG (83.56 KiB) Viewed 2990 times
-
- when trying to add a new graph
- addgraph.JPG (38.87 KiB) Viewed 2990 times
Last edited by btomjack on Wed Jul 23, 2008 3:33 pm, edited 1 time in total.
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.
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.
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
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
same result for me.Ok I've (momently ?) solved the problem :
1. Stop poller
2. run
php repair_database.php => no errors found
all databases processed porperly3. run
mysqlcheck --auto-repair --databases cacti
ran it on the specific MYI file with no result in the end so i also tried it with *.MYI4. run
myisamchk -r host_snmp_cache.MYI
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.
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!
thanks for the help with this Vince!
Who is online
Users browsing this forum: No registered users and 3 guests