itrs-group / monitor-ninja Goto Github PK
View Code? Open in Web Editor NEWNinja is Now Just Awesome - a modern web GUI for Naemon
License: Other
Ninja is Now Just Awesome - a modern web GUI for Naemon
License: Other
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
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
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
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
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
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
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
Configure /etc/op5/*.yml files; livestatus.yml should point to your livestatus socket. Look at the other files so they match your system.
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.