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

Poll Outages "day of week" configuration not working

    Details

      Description

      Scheduled outages appear to not be working due to this exception found in output.log:

      Exception in thread "LegacyScheduler-Thread-13-of-900" java.lang.NumberFormatException: For input string: "monday"
      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
      at java.lang.Integer.parseInt(Integer.java:481)
      at java.lang.Integer.valueOf(Integer.java:570)
      at org.opennms.netmgt.config.BasicScheduleUtils.isTimeInSchedule(BasicScheduleUtils.java:110)
      at org.opennms.netmgt.config.PollOutagesConfigManager.isTimeInOutage(PollOutagesConfigManager.java:248)
      at org.opennms.netmgt.config.PollOutagesConfigManager.isTimeInOutage(PollOutagesConfigManager.java:235)
      at org.opennms.netmgt.poller.pollables.PollableServiceConfig.scheduledSuspension(PollableServiceConfig.java:244)
      at org.opennms.netmgt.scheduler.Schedule$ScheduleEntry.run(Schedule.java:78)
      at org.opennms.netmgt.scheduler.LegacyScheduler$1.run(LegacyScheduler.java:203)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at org.opennms.core.concurrent.LogPreservingThreadFactory$3.run(LogPreservingThreadFactory.java:107)
      at java.lang.Thread.run(Thread.java:679)

      here is the configuration:

      <outages xmlns="http://xmlns.opennms.org/xsd/config/poller/outages">
      <outage name="debtoct" type="weekly">
      <time day="monday" begins="16:15:00" ends="23:59:59"/>
      <time day="tuesday" begins="00:00:00" ends="08:30:00"/>
      <time day="tuesday" begins="16:15:00" ends="23:59:59"/>
      <time day="wednesday" begins="00:00:00" ends="08:30:00"/>
      <time day="wednesday" begins="16:15:00" ends="23:59:59"/>
      <time day="thursday" begins="00:00:00" ends="08:30:00"/>
      <time day="thursday" begins="16:15:00" ends="23:59:59"/>
      <time day="friday" begins="00:00:00" ends="08:30:00"/>
      <time day="friday" begins="16:15:00" ends="23:59:59"/>
      <time day="monday" begins="00:00:00" ends="08:30:00"/>
      <time day="sunday" begins="00:00:00" ends="23:59:59"/>
      <time day="saturday" begins="00:00:00" ends="23:59:59"/>
      <interface address="10.85.34.61"/>
      </outage>

        Attachments

          Activity

            People

            • Assignee:
              ranger Benjamin Reed
              Reporter:
              david David Hustace
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: