opinkerfi / adagios Goto Github PK
View Code? Open in Web Editor NEWAdagios - Web Based Nagios Configuration
License: GNU Affero General Public License v3.0
Adagios - Web Based Nagios Configuration
License: GNU Affero General Public License v3.0
calling /rest/pynag//json (with two slashes) returns output not in json format.
Environment:
Request Method: POST
Request URL: http://localhost:8000/objectbrowser/edit_object/id=616306914500298923
Django Version: 1.3.1
Python Version: 2.7.3
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'adagios.okconfig_',
'adagios.objectbrowser',
'adagios.rest',
'adagios.misc']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware')
Traceback:
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
response = callback(request, _callback_args, *_callback_kwargs)
c['form'].save()
self.pynag_object.save()
self._event(level='write', message="%s '%s'." % (self.object_type, self['shortname'] ))
i.write( object_definition=self, message=message )
self._git_commit(filename, message)
return self._run_command(command=command)
raise BaseException( errorstring )
Exception Type: BaseException at /objectbrowser/edit_object/id=616306914500298923
Exception Value: Command 'git commit /etc/nagios3/okconfig/hosts/misc/bleh1.example.com-host.cfg -m 'service "bleh1.example.com/Running Processes".'' returned exit status 1.
stdout: # On branch master
no changes added to commit (use "git add" and/or "git commit -a")
stderr:
Changes were made to this code in commit 2206981, I tried to fix some of it with commit 0483e43. I was somewhat successfull but "Force" dowsn't work. When I printed the value of force, it says None. I checked the whole self.cleaned_data dict and it only contains a host_name.
def clean_host_name(self):
host_name = self.cleaned_data.get('host_name')
force = self.cleaned_data.get('force')
if not force and host_name in okconfig.get_hosts():
raise ValidationError("Host name %s already exists, use force to overwrite" % host_name)
return host_name
Both Delete and Update show no entries.
On top of the table where now is Select Visible and checkboxen
When clicking notifications tab, every field looks like it is missing a linebreak or something
broken in git commit:
commit 46888b6
Author: Pall Sigurdsson [email protected]
Date: Thu Aug 9 00:05:20 2012 +0000
I feel that when the install method is ssh (or any other non windows method) the Windows Domain field should not be visible.
I should be made to choose my install method and then if it's a windows box the Windows domain thing should appear.
As it stands now it makes me wonder if I should put the name of the corporate AD domain in there even tho this machine is not actually a part of the domain.
Should be dynamic to the python version off the machine
I followed the Install doc and installed Adagios. Now what? I presume I need to start some services? Nagios and httpd come to mind. I presume there is a management url I should connect to?
The doc needs more info.
[Thu Aug 16 13:30:55 2012] [warn] Useless use of AllowOverride in line 13 of /etc/httpd/conf.d/adagios.conf.
Also does LoadModule mod_wsgi have to be there ?
When attempting to add my first host via the add host wizard, there where no hostgroups available. So I aborted the add host setup and added hostgroup. I called it Linux-servers.
I then entered the object browser and selected groups and all of a sudden there where 6 groups available. And why didnt the add host gui allow me to select any of the pre-exsisting groups?
Ahh.. I just figured it out. It's mixing servicegroups and hostgroups with no way to tell them apart. Very confusing.
Only found for RHEL6 in adagios/INSTALL
When "downtime" is selected in notification_options, "d" is added to the list which is valid for hosts.
According to http://nagios.sourceforge.net/docs/nagioscore/3/en/objectdefinitions.html#service
s = send notifications when scheduled downtime starts and ends.
Missing save button.
This is very long list of check_commands, so confusing
Im in the Object browser. I see something added check for localhost and I've already added the machine by name.
I want to delete localhost. I see checkboxes next to each entry in the object browser and then there is a trashcan icon as well.
Confuses me. Do I check each localhost entry I want to delete and then click the transcan icon? or do I just ignore the checkboxes when deleting?
<select data-placeholder="Choose a country..." style="width:350px;" multiple class="chzn-select">
Open service in object browser:
Change service_description
Look at gitlog, notification options changed from "w u c r" to "w c u r"
Environment:
Request Method: POST
Request URL: http://localhost/adagios/objectbrowser/delete_object/id=5132972063635913045
Django Version: 1.4.1
Python Version: 2.7.3
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'adagios.okconfig_',
'adagios.objectbrowser',
'adagios.rest',
'adagios.misc')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware')
Traceback:
File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
111. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.7/site-packages/adagios/objectbrowser/views.py" in delete_object
519. my_obj.delete()
File "/usr/lib/python2.7/site-packages/pynag/Model/__init__.py" in delete
693. self._event(level="write", message="%s '%s' was deleted." %( self.object_type, self.get_shortname()))
File "/usr/lib/python2.7/site-packages/pynag/Model/__init__.py" in _event
1091. i.write( object_definition=self, message=message )
File "/usr/lib/python2.7/site-packages/pynag/Model/EventHandlers/__init__.py" in write
164. self._git_commit(filename, message)
File "/usr/lib/python2.7/site-packages/pynag/Model/EventHandlers/__init__.py" in _git_commit
158. return self._run_command(command=command)
File "/usr/lib/python2.7/site-packages/pynag/Model/EventHandlers/__init__.py" in _run_command
143. raise BaseException( errorstring )
Exception Type: BaseException at /objectbrowser/delete_object/id=5132972063635913045
Exception Value: Command 'git commit /etc/nagios/okconfig/hosts/default/bongo.com-host.cfg -m 'service "bongo.com/Disk Usage /" was deleted.'' returned exit status 128.
stdout:
stderr:
*** Please tell me who you are.
Run
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: empty ident name (for <[email protected]>) not allowed
Some links to not work if adagios is located under /adagios
set current version in adagios/init.py and display it in /rest/pynag/current_version
and maybe other pages as well
Asking for /pynag//json (with two slashes) leads to adagios returning output in string format
Åfter complaining to an Adagios developer I found the bulk actions menu. I still had two entries I wanted to delete so I selected them and then delete from the bulk action menu.
Then it spit out an error: "No matching records found" and still wanted me to confirm that I wanted to delete nothing :)
when page loads all buttons (for example notifications_enabled) are unclicked.
Side note: Should this be fixed in a javascript or server side ?
It took me a while to locate the add contact menu. The only way I could find to add a contact was via an add object button. Why are there wizards to add hosts and other object types and not contacts?
Sometimes throws a object not found when removing use or name attributes from an object.
This doesnt look right to me:
[root@babylon5 ~]# chkconfig nagios on
[root@babylon5 ~]# chkconfig httpd on
[root@babylon5 ~]# service httpd start
Starting httpd: [Thu Aug 23 19:27:05 2012] [warn] module wsgi_module is already loaded, skipping
[Thu Aug 23 19:27:05 2012] [warn] Useless use of AllowOverride in line 13 of /etc/httpd/conf.d/adagios.conf.
[ OK ]
[root@babylon5 ~]# service nagios start
Starting nagios: done.
I moved a bunch of configs into /etc/nagios/okconfig/tempates after okconfig was started, ran bulk update, opened objectbrowser and the following appears.
Environment:
Request Method: GET
Request URL: http://XXX.is/adagios/objectbrowser/
Django Version: 1.3.1
Python Version: 2.6.6
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'adagios.okconfig_',
'adagios.objectbrowser',
'adagios.rest',
'adagios.misc']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware')
Traceback:
File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py" in get_response
111. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.6/site-packages/adagios/objectbrowser/views.py" in list_object_types
84. all_instances = Class.objects.all
File "/usr/lib/python2.6/site-packages/pynag/Model/__init__.py" in get_all
258. if self.needs_reload():
File "/usr/lib/python2.6/site-packages/pynag/Model/__init__.py" in needs_reload
305. elif config is None or config.needs_reparse():
File "/usr/lib/python2.6/site-packages/pynag/Parsers/__init__.py" in needs_reparse
1038. if self.timestamps[k] != v:
Exception Type: KeyError at /objectbrowser/
Exception Value: '/etc/nagios/okconfig/templates/XXX-ilo3/services.cfg'
After adding a hostgroup, a host and then deleting another host in Adagios I changed over to the nagios screen. No changes. Isnt there a nagios reload involved anywhere? I cant find anything in Adagios to do this.
What adding a host in the wizard there is a template selection entry. Apparently I can choose multiple templates. Now the server I am adding is a Linux box, runs a few kvm guests and some other services. So I guess I should select standard linux checks. What are the others? Do I add standard nagios checks? The server is running a bind nameserver. Do I add standard dns checks? Some help here that descibes each selection would be very nice.
Fetch with /rest/pynag/get_objects
@palli add functionality so REST interface gives all fields instead of few.
adagios.js includes $().chosen..
Is there a way to detect this and notify the user that errors are because of selinux ?
How to reproduce:
Results:
Member is gone, but the warning remains
It is very hard to tell which button is active
When deleting multiple objects in the object browser, only one can be deleted at a time. Click the Object browser, then click the trashcan icon next to the check you want to remove. Then pops up a confirmation screen and then you are returned to the object browser after agreeing. When deleting 9 checks on localhost I had to go thru this cycle so many times, it hurt my fingers :)
selecting all the checks I wanted to delete and then clicking a trashcan did not help.
A mass delete button will help.
Theres a box on the right which shows actions but is empty. Remove or put something usefull in there.
Maybe a notification should be displayed to ask the user to create git repo ?
currently defaults to user adagios
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.