Details

    • Bug
    • Resolution: Fixed
    • Major
    • None
    • None
    • API
    • None
    • debian squeeze, PHP 5.3.3-7+squeeze15

    Description

      calls to simple API result in error 500. debug output shows fatal error from PHP:

      Fatal error: Call to undefined function humanize_device() in /opt/observium/includes/common.inc.php on line 964

      Example request:

      wget "http://myserver.net/api.php?username=admin&password=xxx&module=bandwidth&portid=65516&range=day&action=graph&debug=1"

      Attachments

        1. wget.txt
          12 kB
        2. wget-rrdtool-error.txt
          25 kB

        Activity

          [OBS-957] Simple API fails fatal error
          mprice mark price added a comment -

          Sorry, you are right. I forgot that was our custom module I have fixed it (get_port_rrdfilename changed), thanks!!

          mprice mark price added a comment - Sorry, you are right. I forgot that was our custom module I have fixed it (get_port_rrdfilename changed), thanks!!

          We not have this module "bandwidth" for simple API in observium code.
          Where did you get it?

          landy Mike Stupalov added a comment - We not have this module "bandwidth" for simple API in observium code. Where did you get it?
          mprice mark price added a comment -

          wget "http://myhost/api.php?username=admin&password=bla&module=bandwidth&portid=1763&range=week&action=graph&debug=1"

          mprice mark price added a comment - wget "http://myhost/api.php?username=admin&password=bla&module=bandwidth&portid=1763&range=week&action=graph&debug=1"
          mprice mark price added a comment - - edited

          Mistake

          mprice mark price added a comment - - edited Mistake

          Should be fixed in r5742.

          Pls test.

          landy Mike Stupalov added a comment - Should be fixed in r5742. Pls test.
          mprice mark price added a comment -

          Observium 0.14.8.5741
          Apache 2.2.16 (Debian)
          PHP 5.3.3-7+squeeze15
          MySQL 5.1.66-0+squeeze1
          SNMP NET-SNMP version: 5.4.3
          RRDtool 1.4.3

          mprice mark price added a comment - Observium 0.14.8.5741 Apache 2.2.16 (Debian) PHP 5.3.3-7+squeeze15 MySQL 5.1.66-0+squeeze1 SNMP NET-SNMP version: 5.4.3 RRDtool 1.4.3

          People

            landy Mike Stupalov
            mprice mark price
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: