Details

    • Bug
    • Resolution: Cannot Reproduce
    • Critical
    • None
    • None
    • Poller

    Description

      no data for servers using the unix agent for a couple of weeks now. have Observium build 3397 installed.

      running poller update on a specific server in debug mode reveals the apparent problem:

      including: includes/polling/unix_agent.inc.php
      PHP Warning: include(includes/polling/unix_agent.inc.php): failed to open stream: No such file or directory in /opt/observium/includes/polling/functions.inc.php on line 192

      Warning: include(includes/polling/unix_agent.inc.php): failed to open stream: No such file or directory in /opt/observium/includes/polling/functions.inc.php on line 192
      PHP Warning: include(): Failed opening 'includes/polling/unix_agent.inc.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /opt/observium/includes/polling/functions.inc.php on line 192

      Warning: include(): Failed opening 'includes/polling/unix_agent.inc.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /opt/observium/includes/polling/functions.inc.php on line 192

      Fixed (worked around) by doing:

      ln -s /opt/observium/includes/polling/unix-agent.inc.php /opt/observium/includes/polling/unix_agent.inc.php

      Attachments

        Activity

          [OBS-154] unix agent polling broken

          I can not reproduce this error and line 192 of function files says:

          foreach ($config['poller_modules'] as $module => $module_status)
          {
          if ($attribs['poll_'.$module] || ( $module_status && !isset($attribs['poll_'.$module])))
          {
          if ($debug)

          { echo("including: includes/polling/$module.inc.php\n"); }

          192 >>> include('includes/polling/'.$module.'.inc.php');
          } elseif (isset($attribs['poll_'.$module]) && $attribs['poll_'.$module] == "0")

          { echo("Module [ $module ] disabled on host.\n"); }

          else

          { echo("Module [ $module ] disabled globally.\n"); }

          }
          }

          So i don't know why you would load a module with the name unix_agent when it is unix-agent

          codekiller Dennis de Houx added a comment - I can not reproduce this error and line 192 of function files says: foreach ($config ['poller_modules'] as $module => $module_status) { if ($attribs ['poll_'.$module] || ( $module_status && !isset($attribs ['poll_'.$module] ))) { if ($debug) { echo("including: includes/polling/$module.inc.php\n"); } 192 >>> include('includes/polling/'.$module.'.inc.php'); } elseif (isset($attribs ['poll_'.$module] ) && $attribs ['poll_'.$module] == "0") { echo("Module [ $module ] disabled on host.\n"); } else { echo("Module [ $module ] disabled globally.\n"); } } } So i don't know why you would load a module with the name unix_agent when it is unix-agent

          People

            adama Adam Armstrong
            cstone Chris Stone
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: