Category5.TV Community Forum
adagios error upon access - Printable Version

+- Category5.TV Community Forum (
+-- Forum: NEMS - Nagios Enterprise Monitoring Server (
+--- Forum: Help and Support (
+--- Thread: adagios error upon access (/thread-367.html)

adagios error upon access - NickTheGreek - 11-07-2018

Hello there from Athens, Greece

after installing NEMS i try to click on Reporting > Adagios


and i get HTTP 500

"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at [no address given] to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.

NEMS_Linux/1.4 Server at {ip} Port 443"

i checked the following error.log file

/var/log/apache2/error.log and i read:

[wsgi:error] [pid 22403] [remote {IP}:64267] mod_wsgi (pid=22403): Exception occurred processing WSGI script '/var/www/adagios/apache/adagios.wsgi'.
[wsgi:error] [pid 22403] [remote {IP}:64267] Traceback (most recent call last):
[wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/", line 206, in __call__
[wsgi:error] [pid 22403] [remote {IP}:64267]     response = self.get_response(request)
[wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/", line 196, in get_response
[wsgi:error] [pid 22403] [remote {IP}:64267]     response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
[wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/", line 231, in handle_uncaught_exception
[wsgi:error] [pid 22403] [remote {IP}:64267]     return debug.technical_500_response(request, *exc_info)
[wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/views/", line 69, in technical_500_response
[wsgi:error] [pid 22403] [remote {IP}:64267]     html = reporter.get_traceback_html()
[wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/views/", line 324, in get_traceback_html
[wsgi:error] [pid 22403] [remote {IP}:64267]     return t.render©
[wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/template/", line 140, in render
[wsgi:error] [pid 22403] [remote {IP}:64267]     return self._render(context)
[wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/template/", line 134, in _render
[wsgi:error] [pid 22403] [remote {IP}:64267]     return self.nodelist.render(context)
[wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/template/", line 840, in render
[wsgi:error] [pid 22403] [remote {IP}:64267]     bit = self.render_node(node, context)
[wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/template/", line 78, in render_node
[wsgi:error] [pid 22403] [remote {IP}:64267]     return node.render(context)
[wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/template/", line 88, in render
[wsgi:error] [pid 22403] [remote {IP}:64267]     output = self.filter_expression.resolve(context)
[wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/template/", line 613, in resolve
[wsgi:error] [pid 22403] [remote {IP}:64267]     new_obj = func(obj, *arg_vals)
[wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/template/", line 705, in date
[wsgi:error] [pid 22403] [remote {IP}:64267]     return format(value, arg)
[wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/utils/", line 312, in format
[wsgi:error] [pid 22403] [remote {IP}:64267]     return df.format(format_string)
[wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/utils/", line 35, in format
[wsgi:error] [pid 22403] [remote {IP}:64267]     pieces.append(force_text(getattr(self, piece)()))
[wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/utils/", line 216, in r
[wsgi:error] [pid 22403] [remote {IP}:64267]     return self.format('D, j M Y H:iConfused O')
[wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/utils/", line 35, in format
[wsgi:error] [pid 22403] [remote {IP}:64267]     pieces.append(force_text(getattr(self, piece)()))
[Wed Nov 07 13:15:15.450152 2018] [wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/utils/", line 100, in force_text
[Wed Nov 07 13:15:15.450813 2018] [wsgi:error] [pid 22403] [remote {IP}:64267]     s = s.__unicode__()
[Wed Nov 07 13:15:15.450918 2018] [wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/utils/", line 138, in __text_cast
[Wed Nov 07 13:15:15.451592 2018] [wsgi:error] [pid 22403] [remote {IP}:64267]     return func(*self.__args, **self.__kw)
[Wed Nov 07 13:15:15.451783 2018] [wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/utils/translation/", line 76, in ugettext
[Wed Nov 07 13:15:15.452224 2018] [wsgi:error] [pid 22403] [remote {IP}:64267]     return _trans.ugettext(message)
[Wed Nov 07 13:15:15.452333 2018] [wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/utils/translation/", line 281, in ugettext
[Wed Nov 07 13:15:15.453314 2018] [wsgi:error] [pid 22403] [remote {IP}:64267]     return do_translate(message, 'ugettext')
[Wed Nov 07 13:15:15.453446 2018] [wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/utils/translation/", line 263, in do_translate
[Wed Nov 07 13:15:15.453563 2018] [wsgi:error] [pid 22403] [remote {IP}:64267]     _default = translation(settings.LANGUAGE_CODE)
[Wed Nov 07 13:15:15.453648 2018] [wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/utils/translation/", line 177, in translation
[Wed Nov 07 13:15:15.453723 2018] [wsgi:error] [pid 22403] [remote {IP}:64267]     default_translation = _fetch(settings.LANGUAGE_CODE)
[Wed Nov 07 13:15:15.453808 2018] [wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/utils/translation/", line 159, in _fetch
[Wed Nov 07 13:15:15.453921 2018] [wsgi:error] [pid 22403] [remote {IP}:64267]     app = import_module(appname)
[Wed Nov 07 13:15:15.453966 2018] [wsgi:error] [pid 22403] [remote {IP}:64267]   File "/usr/local/lib/python2.7/dist-packages/django/utils/", line 40, in import_module
[Wed Nov 07 13:15:15.454351 2018] [wsgi:error] [pid 22403] [remote {IP}:64267]     __import__(name)

any ideas ? seems as if this is python related in relation to my hardware ? ( RaspBerry Pi 3 B+ )

The requested URL /nagios/map.php was not found on this server. - NickTheGreek - 11-07-2018

I am trying to see a device from NEMS - Nagios screen and click option see on map

then i get

The requested URL /nagios/map.php was not found on this server.

RE: adagios error upon access - Robbie Ferguson - 11-08-2018

Hello, from Canada, NickTheGreek. Welcome to NEMS! Sorry you've hit some snags.

A couple things to check...
- First things first, I suspect you may have a bad image. Can you run an md5sum on the file you burnt to the SD card and ensure its MD5 matches? See the list here:
- If that's not it... did you see any errors while running nems-init?
- Being from Greece, I just have to ask; is there any chance you used any characters in your username or password which may cause issues for our nice little western-built image? I try to think of everything, but I sometimes encounter things like that ... and promptly fix them. Let me know if that's the case so I can see about patching.
- If nothing above helps, please submit a support.nems file. This will help me understand (and fix?) what's happening.


RE: adagios error upon access - NickTheGreek - 11-08-2018

Thank you very very much on getting back to me on this

today we reinstalled the image and everything runs smoothly, adagios and map included

We even setup email ( there was had a really funny issue when sendemail password included an english question mark thus breaking variable setand causing alerts not delivering while nems email test worked )

the only thing i am still unable to fix is telegram notification despite all efforts

i am ok with API even chat id but still no alerts in the group

My best


RE: adagios error upon access - NickTheGreek - 11-08-2018

please let me know how to invoke this command from prompt populating with variables manually


i read all this but i am missing something obvious probably

RE: adagios error upon access - Robbie Ferguson - 11-08-2018

Hmm, a question mark... yeah that could be trouble. I'll need to do some testing. Thanks for pointing that out.

I am currently working with Kaganishu on the Telegram documentation and some improvements for NEMS 1.5. Watch the docs / changelog for that. Don't waste too much time on it because I'll be fixing it very soon and adding the docs.


RE: adagios error upon access - NickTheGreek - 11-08-2018

thank you Robbie, i am really eager to see how this works and implement with telegram as telegram is part of my daily online activity and work for quite some time

RE: adagios error upon access - Robbie Ferguson - 11-08-2018

Good to know. I've never used Telegram (I use Pushover and email notifications, personally) - so I rely on the community for Telegram :) I've made sure it's on the to-do list for 1.5.


RE: adagios error upon access - NickTheGreek - 11-09-2018

Robbie a colleague figured this out and if you add


to the Bot API key it works !

tested a while ago :)

RE: adagios error upon access - Robbie Ferguson - 11-09-2018

Cheers. This will be added programatically in NEMS 1.5.

You're welcome to upgrade the plugin directly if you like:

Let me know if you're not sure how.