Skip to content

Running on FreeBSD #14

@bmccorkle

Description

@bmccorkle

Great module! This is exactly what I've been looking for to help me straighten out my parent dependencies as I've migrated from our Nagios system. It's been frustrating to keep finding missing dependencies in Icinga and this makes it really easy to see if something doesn't have a dependency. Is there any active development still going on for this? I attempted to add to our installation on FreeBSD but had several issues with the code. In case anyone else is trying to get it running on FreeBSD, this is what I had to modify and it seems to be working correctly so far. FreeBSD uses some different paths

`dependency_plugin/public/js/errorManager.js
Line 7:
Old: window.location.replace('./kickstart')
New: window.location.replace('./dependency_plugin/module/kickstart')

Line 57:
Old: window.location.replace('./kickstart')
New: window.location.replace('./dependency_plugin/module/kickstart')

dependency_plugin/application/controllers/ModuleController.php
Line 147:
Old: $resourcesfile = fopen("/etc/icingaweb2/resources.ini", 'r'); //get icinga resources (databases)
New: $resourcesfile = fopen("/usr/local/etc/icingaweb2/resources.ini", 'r'); //get icinga resources (databases)

Line 183:
Old: $resourcesfile = fopen('/etc/icingaweb2/modules/dependency_plugin/config.ini', 'r'); //get icinga resources (databases)
New: $resourcesfile = fopen('/usr/local/etc/icingaweb2/modules/dependency_plugin/config.ini', 'r'); //get icinga resources (databases)

Line 187:
Old: if(!file_exists('/etc/icingaweb2/modules/dependency_plugin/')){//config not created, module not kickstarted
New: if(!file_exists('/usr/local/etc/icingaweb2/modules/dependency_plugin/')){//config not created, module not kickstarted

dependency_plugin/public/js/kickstartManager.js
Line 42:
Old: window.location.replace('./network')
New: window.location.replace('./dependency_plugin/module/network')

dependency_plugin/public/js/graphManager.js
Line 434:
Old: location.href = './network#!' + hostMonitoringAddress + params.nodes[0]; //redirect to host info page.
New: location.href = './dependency_plugin/module/network#!' + hostMonitoringAddress + params.nodes[0]; //redirect to host info page.

Line 493:
Old: window.location.replace("./network"); //on succes redirect to network.
New: window.location.replace("./dependency_plugin/module/network"); //on succes redirect to network.

Line 534:
Old: window.location.replace("./network?showFullscreen");
New: window.location.replace("./dependency_plugin/module/network?showFullscreen");

Line 536:
Old: window.location.replace("./statusGrid?showFullscreen")
New: window.location.replace("./dependency_plugin/module/statusGrid?showFullscreen")`

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