Skip to content

Check correct working of PHP?? #18

Open

Description

@fredhohenstein

How can I check that the php part of this application is working correctly?

When I run the powershell script I receive the following inforamtion:
PS C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\EXEXML> C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\EXEXML\PRTG-Scheduler.ps1

[31.10.2018 19:06:40]|_ PHP 7.2.8 | CodeIgniter 3.1.5 | PRTG Scheduler 1.0
[31.10.2018 19:06:40]|__ No sensors with configured maintenances found.
[31.10.2018 19:06:40]|__ No devices with configured maintenances found.
[31.10.2018 19:06:40]|__ No groups with configured maintenances found.
[31.10.2018 19:06:40]|__ Maintenance list is empty, creating a new one.
[31.10.2018 19:06:40]|__ Active maintenances couldn't be updated. Error: (0)
[31.10.2018 19:06:40]|__ Maintenance list is empty, creating a new one.
[31.10.2018 19:06:40]|__ Active maintenances couldn't be updated. Error: (0)
[31.10.2018 19:06:40]|__ Maintenance list is empty, creating a new one.
[31.10.2018 19:06:40]|__ Active maintenances couldn't be updated. Error: (0)
{"prtg":{"result":[{"Channel":"Sensor Maintenance(s)","Value":0},{"Channel":"Device Maintenances(s)","Value":0},{"Channel":"Group Maintenances(s)","Val
ue":0},{"Channel":"Total Maintenances(s)","Value":0},{"Channel":"Erroneous Definition(s)","Value":0}],"text":""}}

When I enable logging .. no debug file is created..

The Configuration Report: Maintenance Windows is visible but no maintenance entries are listed

I only followed the installation steps on: https://github.com/PRTG/PRTGScheduler/wiki/1.-Installation
Question: Is an extra webserver needed for PHP?  I am running this utlility on the server running the PRTG components.

Please help!

Grtz Fred

Activity

  1. stephanlinke commented on Nov 1, 2018

    @stephanlinke
    Collaborator

    Seemingly, the installation was done correctly. Did you already define some maintenance windows that are not reflected in the log? Did you enable the log file in PRTG? Then it should be in PRTG's data directory. As for PHP, you don't need an extra webserver, as I'm executing the index.php directly via PHP.

  2. fredhohenstein commented on Nov 1, 2018

    @fredhohenstein
    Author
    1. Did you already define some maintenance windows that are not reflected in the log: ==> Yes I did, Three (3) mainenance windows are defind, only two (2) are visible by quering with the call: https://xxxx.xxxx..nl/api/table.json?content=sensors&output=jsonolumns=objid,basetype,name,device,group,status,baselink,probe,comments,parentid,probe,parent&sortby=-objid&filter_comments=@sub(maintenance)&username=prtgscheduler&passhash=xxxxxx

    Maybe I made a type in the 3th maintenance deffinition..

    1. Did you enable the log file in PRTG?: ==> Do you mean logging of the sensor status/error etc? ==> This is enabled ==>
      [01.11.2018 17:59:33]|_ PHP 7.2.11 | CodeIgniter 3.1.5 | PRTG Scheduler 1.0
      [01.11.2018 17:59:33]|__ No sensors with configured maintenances found.
      [01.11.2018 17:59:33]|__ No devices with configured maintenances found.
      [01.11.2018 17:59:33]|__ No groups with configured maintenances found.
      [01.11.2018 17:59:33]|__ Maintenance list is empty, creating a new one.
      [01.11.2018 17:59:33]|__ Active maintenances couldn't be updated. Error: (0)
      [01.11.2018 17:59:33]|__ Maintenance list is empty, creating a new one.
      [01.11.2018 17:59:33]|__ Active maintenances couldn't be updated. Error: (0)
      [01.11.2018 17:59:33]|__ Maintenance list is empty, creating a new one.
      [01.11.2018 17:59:33]|__ Active maintenances couldn't be updated. Error: (0)
      {"prtg":{"result":[{"Channel":"Sensor Maintenance(s)","Value":0},{"Channel":"Device Maintenances(s)","Value":0},{"Channel":"Group Maintenances(s)","Value":0},{"Channel":"Total Maintenances(s)","Value":0},{"Channel":"Erroneous Definition(s)","Value":0}],"text":""}}

    Or do yoe mean another logfile?

    GRt Fred

  3. stephanlinke commented on Nov 5, 2018

    @stephanlinke
    Collaborator

    I can confirm that this seemingly is broken in the current code. I'm currently implementing this add-on in Ruby and it will most likely be a lot easier to maintain/configure/install. I hope to have a running version in the next two weeks, please bear with me for the time being :) I'll publish it here when it's ready.

  4. fredhohenstein commented on Nov 5, 2018

    @fredhohenstein
    Author

    Thanks for the feedback!!

    Good luck and happy debugging!!

    Grtz Fred

  5. josh-stephens commented on Feb 8, 2019

    @josh-stephens

    Any news on this addon? Really wish PRTG would support this directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions