Coder Social home page Coder Social logo

itrs-group / monitor-ninja Goto Github PK

View Code? Open in Web Editor NEW
31.0 12.0 16.0 53.95 MB

Ninja is Now Just Awesome - a modern web GUI for Naemon

License: Other

HTML 0.07% Makefile 0.09% PHP 60.72% CSS 5.19% JavaScript 27.02% C 0.37% Ruby 1.47% Python 0.07% Shell 0.15% Gherkin 4.84%
monitoring gui dashboard metrics reporting ninja php livestatus naemon

monitor-ninja's People

Contributors

ageric avatar atj avatar avillalbaitrs avatar axelbolle avatar chelmertz avatar erikdsjostrom avatar euniceremoquillo avatar fnordpojk avatar hackcasa avatar hsmederod avatar hspolanderw avatar jacobbaungard avatar jdagemark avatar jdumalaonitrs avatar jimorie avatar johanthoren avatar kdnilsson avatar lgrn avatar lgrn5 avatar mkop5 avatar phiekl avatar psharmaop5 avatar rameshop5 avatar rbw avatar rhagman avatar sgbeal avatar sjoegren avatar sni avatar swedieman avatar webdevelin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

monitor-ninja's Issues

Compile on nagios core

It will be possible that it can work with nagios and livestatus, because I see they make a lot of reference to the nagios configuration

Missing BINDIR during installation

In the Makefile there is

mkdir -m 0755 -p $(BINDIR)

but no pre-defined BINDIR. It causes error while running 'make install', see below:

# make install
mkdir -m 0755 -p /usr/local/share/php
cp -a src/op5 /usr/local/share/php/op5
mkdir -m 770 -p /etc/op5
cp -R etc/* /etc/op5
chown -R apache:apache /etc/op5
mkdir -m 0755 -p
mkdir: missing operand
Try `mkdir --help' for more information.
make: *** [install-bin] Error 1

I dont wanna use merlin. LMD (Live status) or naemon on same host

Hey,

I am having some issues to check the status for the merlin, naemon and LMD etc. Actually I am containerzing everything in docker. All required stuff is available on host machine. In docker the ninja is install. I am always getting error Issues encountered, check LMD, Naemon and Merlin Logs for details or contact your administrator. which actually comes from the /application/views/template.php and there is no auth login page. Actually I wanna override this and do some customization. Can you tell me where the ninja checks these services status? I will late connect via socket but for now I just wanna make it work the login page. I wanna know what file first checks for the services and redirects to login page

thank you
Qaisar

Selecting actions on hostgroup gives error

Hello Guys,

When selecting the Actions Icon on a Hostgroups View (Menu Locatgion : Monitor/Hostgroups/All Hostgroups)
I receive the following error :
Fatal error: Call to undefined method HostGroup_Model::get_icon_image() in /var/www/html/ninja/modules/monitoring/controllers/extinfo.php on line 324

I managed to track down the problem here :
/var/www/html/ninja/modules/monitoring/models/base/basehostgroup.php
Therese ones seem to be missing :
private $icon_image = "";
private $icon_image_alt = "";

in comparison with /var/www/html/ninja/modules/monitoring/models/base/basehost.php .

Same goes for Servicegroups, same error same apparently incomplete class.
Making the changes manually to basehostgroup.php and baseservicegroup.php fixed the issue.
I suspect something happening at build, maybe you can have a look. I attached both files, modified and original to take a look.

Cheers,
Adrian

basehostgroup.php.zip

Cannot set downtime to service

Hi Guys,

Been trying to implement ninja with merlin and naemon and got stuck at downtime setting for services :
Selecting start time and endtime like this 2017-01-26 01:00:00 and 2017-01-27 01:00:00 I got the following error :

There was an error submitting your command to Ninja.
ERROR: 2017-01-26 00:00:00 is not a valid date, please adjust it

Tried different formats, it does not work .....

Log states :
Failed to submit command 'schedule_downtime' on (services) object 'hplj2605dn;PING' Output: 2017-01-26 01:00:00 is not a valid date, please adjust it

Any chance you can have a look at this ?

Thanks,
Adrian

make install error

When running make install I receive the following output:

mkdir -m 0755 -p /usr/local/share/php cp -a src/op5 /usr/local/share/php/op5 mkdir -m 770 -p /etc/op5 cp -R etc/* /etc/op5 chown -R apache:apache /etc/op5 mkdir -m 0755 -p mkdir: missing operand Try 'mkdir --help' for more information. make: *** [install-bin] Error 1

could not understand what need to do:

  1. Configure Ninja.
    Edit the database connection settings in ninja/application/config/database.php and the path to the livestatus socket in /etc/op5/livestatus.yml

  2. Configure /etc/op5/*.yml files; livestatus.yml should point to your livestatus socket. Look at the other files so they match your system.

showlog uses hardcoaded cgi.cfg not compatible with naemon

Hi Guys,

Please have a look at this line :
https://github.com/op5/ninja/blob/500b186445aba158ac1d8cc57072e785287e93be/modules/monitoring/helpers/showlog.php#L38 :
$etc_path = System_Model::get_nagios_etc_path();
$cgi_cfg = rtrim($etc_path, '/').'/cgi.cfg';

In a standard naemon install etc directory is here :
$config['nagios_etc_path'] = '/etc/naemon/';
as defined also in /var/www/html/ninja/application/config/config.php

showlog.php looks into this path for cgi.cfg : /etc/naemon/cgi.cfg but standard naemon install place cgi.cfg in /etc/thruk/cgi.cfg .

Quickfix is to create a symlink between /etc/thruk/cgi.cfg /etc/naemon/cgi.cfg but I would suggest cgi.cfg and nagios.cfg files not to be hardcoaded into the code but used as user defined variables in ninja/application/config/config.php .

The problem with cgi.cfg not being available to ninja is that Ninja will not display the Event Log in Menu : Report / EventLog

Cheers,
Adrian

Cannot find file op5/log.php

Hi,
After 'make && make install', I copied ninja folder to /var/www/html by following the READ.ME file. I got HTTP500 error. In the httpd error_log:

PHP Warning: require_once(op5/log.php): failed to open stream: No such file or directory in /var/www/html/ninja/system/core/Event.php on line 3

PHP Fatal error: require_once(): Failed opening required 'op5/log.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/ninja/system/core/Event.php on line 3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.