Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. vicmad

    PHP script

    Thanks Jpadie. The first script works when SEVERITY = 5 and the result is available to a output text file. The second script does not work when I have a mixture of severity 5 and 4. The result is not available to a output text file. There are no error messages. Just at the left side bottom of...
  2. vicmad

    PHP script

    I'm running SNMP Zenoss connected to mysql database.I'm using a PHP script to select the device that fails the most based on the severity level 5 and 4 for a particular year and month. The script works when I select severity = 5 but does not work when i have a mixture of 5 and 4. Severity 5 is...
  3. vicmad

    SQL Query Statement

    Thanks Markros. That worked except i had to remove one statement "ORDER BY number_of_events DESC LIMIT 10" SELECT device, count(*) AS number_of_events from history where severity = 5 GROUP BY Device //ORDER BY number_of_events DESC LIMIT 10 UNION ALL SELECT device, count(*) AS number_of_events...
  4. vicmad

    SQL Query Statement

    Thanks. That did not work. Your query gives me the top 10 based on severity 4 for some reason. I am not looking for the top 10 of each. I need a mixturre of 4 and 5. Thanks again.
  5. vicmad

    SQL Query Statement

    I'm running SNMP Zenoss connected to mysql database.I'm trying to select the device that fails the most based on the sevrity level 5 and 4. Severity 5 is highest and 1 is the lowest. Table name is history. -Column name called "devices" has all the device names. -Column name called "events" has...
  6. vicmad

    Need Help with mysql query

    I like you thank everybody for all the help. You guys rock!!
  7. vicmad

    Need Help with mysql query

    I'm running SNMP Zenoss connected to mysql database.I'm trying to select the device that fails the most from the database. Column name called "devices" has all the device names. Column name called "events" has all the events that are generated. How can i write a query that will display the...
  8. vicmad

    Need Help with mysql query

    Please Help and Thanks in advance.
  9. vicmad

    Need Help with mysql query

    I had submitted this before: I'm running SNMP Zenoss connected to mysql database.I'm trying to select the device that fails the most from the database. Column name called "devices" has all the device names. Column name called "events" has all the events that are generated. How can i write a...
  10. vicmad

    Need Help with mysql query

    Thanks Peter - It works. One more thing is I need to display the result between the 1st of the month - 30th of the month and year should be 2010. Thanks
  11. vicmad

    Need Help with mysql query

    I'm running SNMP Zenoss connected to mysql database.I'm trying to select the device that fails the most from the database. Column name called "devices" has all the device names. Column name called "events" has all the events that are generated. How can i write a query that will display the...
  12. vicmad

    Need Help building a query

    Thanks for the feedback.
  13. vicmad

    Need Help building a query

    I'm running SNMP Zenoss connected to mysql. I'm trying to select the device that fails the most from the database. How do I do that? Please help. Thanks in advance

Part and Inventory Search

Back
Top