AIX

 View Only
Expand all | Collapse all

Nextract plus error

  • 1.  Nextract plus error

    Posted Mon November 22, 2021 03:09 PM
    Hello , 
    I have nextract_plus script (from Mr nmon) , with python 3 installed (on Aix) with requests packages.

    I also configure influxdb and Grafana.

    When i run the script on hmc config , i got this message .

    Any suggestions ?

    ------------------------------
    OUSSAMA NAZIH
    ------------------------------


  • 2.  RE: Nextract plus error

    Posted Tue December 07, 2021 08:00 AM
    From error message it is clear that request module is not found. 
    Can you verify if request module is installed. You can try importing that on python3 prompt.

    ------------------------------
    SANKET RATHI
    ------------------------------



  • 3.  RE: Nextract plus error

    Posted Tue January 24, 2023 03:26 PM

    Hi,
    Hopefully, you got this working and Sanket is right.

    hmc_pcm.py comes with nextract_plus.
    Put it in the same directory as nextract_plus

    Actually, I have them both in the same directory and run netract_plus.py from that directory.

    Please upgrade to nextract plus version 41  - it is much better.
    Downloadable from here: https://www.ibm.com/support/pages/nextract-plus-hmc-rest-api-performance-statistics

    Cheers, Nigel



    ------------------------------
    Nigel Griffiths
    ------------------------------



  • 4.  RE: Nextract plus error

    Posted Tue July 11, 2023 01:14 PM

    Hi, I used a nextrac 41 with influxdb version1, now I've a update for version 2, and I received this message of error:

    Traceback (most recent call last):
      File "/opt/hmc/nextract_plus.py", line 110, in <module>
        client = InfluxDBClient(iurl, iorg, itoken)
    NameError: name 'iurl' is not defined

    This is a part of the conf:

    "comment1": "Valid setting for output_influx = 0 (off), 1 or 2",
    "output_influx": 2,
    "comment3": "InfluxDB 2.x options",
    "iurl": "http://10.0.0.17:8086",
    "ibucket": "hmc",
    "iorg": "hmc",
    "itoken": "WWT5QNUKdYE7CcFv_IPcrIEyrvMqw_K0akg1MA==",
    "comment4": "other parameters are ignored"



    ------------------------------
    Marcell Rafael Pinto
    ------------------------------



  • 5.  RE: Nextract plus error

    Posted Sun July 16, 2023 11:48 AM

    Marcell Rafael Pinto Thanks for reporting this.

    Just added nextract_plus_v43.py to Source Forge with the fix.

    Find it at https://sourceforge.net/projects/nmon/files/

    Let me know if that worked. You can also email me at nigelargriffiths@hotmail.com



    ------------------------------
    Nigel Griffiths
    ------------------------------



  • 6.  RE: Nextract plus error

    Posted Wed July 26, 2023 01:34 PM

    Hello Nigel, I used the new version V43, but a new error occurred !

    /opt/hmc/nextract_plus2.py opening config file:hmc_conf_2.json
    Traceback (most recent call last):
      File "/opt/hmc/nextract_plus2.py", line 131, in <module>
        client = InfluxDBClient(iurl, str(iorg), itoken)
      File "/usr/local/lib/python3.6/site-packages/influxdb/client.py", line 115, in __init__
        self.__port = int(port)
    ValueError: invalid literal for int() with base 10: 'asset'



    ------------------------------
    Marcell Rafael Pinto
    ------------------------------



  • 7.  RE: Nextract plus error

    Posted Fri October 13, 2023 04:27 PM
    Hello Nigel, please give your support if this error was overcome, I am also getting the same thing.
     
    Greetings.


    ------------------------------
    Victor Guzman
    ------------------------------



  • 8.  RE: Nextract plus error