Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-1802

HTTP monitor nits

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.1
    • Fix Version/s: 1.9.91
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: All
    • Bugzilla Id:
      1727

      Description

      Doesn't deal with a bogus response code (I accidentally threw back "HTTP/1.0" from netcat and got
      this):

      2006-11-28 14:31:08,607 ERROR [DefaultQuartzScheduler_Worker-8] org.quartz.core.JobRunShell: Job
      pollJobGroup.12:172.16.1.210:HTTP threw an unhandled Exception:
      java.util.NoSuchElementException
      at java.util.StringTokenizer.nextToken(StringTokenizer.java:332)
      at org.opennms.netmgt.poller.monitors.HttpMonitor.poll(HttpMonitor.java:182)
      at org.opennms.netmgt.poller.remote.DefaultPollService.poll(DefaultPollService.java:35)
      at org.opennms.netmgt.poller.remote.support.DefaultPollerFrontEnd.doPoll
      (DefaultPollerFrontEnd.java:185)
      at org.opennms.netmgt.poller.remote.support.DefaultPollerFrontEnd.pollService
      (DefaultPollerFrontEnd.java:161)
      at org.opennms.netmgt.poller.remote.PollJob.executeInternal(PollJob.java:14)
      at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:79)
      at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
      2006-11-28 14:31:08,611 ERROR [DefaultQuartzScheduler_Worker-8] org.quartz.core.ErrorLogger: Job
      (pollJobGroup.12:172.16.1.210:HTTP threw an exception.
      org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception:
      java.util.NoSuchElementException]
      at org.quartz.core.JobRunShell.run(JobRunShell.java:206)
      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)

      • Nested Exception (Underlying Cause) ---------------
        java.util.NoSuchElementException
        at java.util.StringTokenizer.nextToken(StringTokenizer.java:332)
        at org.opennms.netmgt.poller.monitors.HttpMonitor.poll(HttpMonitor.java:182)
        at org.opennms.netmgt.poller.remote.DefaultPollService.poll(DefaultPollService.java:35)
        at org.opennms.netmgt.poller.remote.support.DefaultPollerFrontEnd.doPoll
        (DefaultPollerFrontEnd.java:185)
        at org.opennms.netmgt.poller.remote.support.DefaultPollerFrontEnd.pollService
        (DefaultPollerFrontEnd.java:161)
        at org.opennms.netmgt.poller.remote.PollJob.executeInternal(PollJob.java:14)
        at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:79)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)

      Don't log full stack backtrace for connection exceptions:

      2006-11-28 14:41:58,860 WARN [DefaultQuartzScheduler_Worker-7]
      org.opennms.netmgt.poller.monitors.HttpMonitor: Connection exception for wheels.int.gregor.com/
      172.16.1.210:80:Connection refused
      java.net.ConnectException: Connection refused
      at org.opennms.netmgt.poller.monitors.HttpMonitor.poll(HttpMonitor.java:257)
      at org.opennms.netmgt.poller.remote.DefaultPollService.poll(DefaultPollService.java:35)
      at org.opennms.netmgt.poller.remote.support.DefaultPollerFrontEnd.doPoll
      (DefaultPollerFrontEnd.java:185)
      at org.opennms.netmgt.poller.remote.support.DefaultPollerFrontEnd.pollService
      (DefaultPollerFrontEnd.java:161)
      at org.opennms.netmgt.poller.remote.PollJob.executeInternal(PollJob.java:14)
      at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:79)
      at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)

        Attachments

          Activity

            People

            • Assignee:
              seth Seth Leger
              Reporter:
              dgregor DJ Gregor
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: