{% extends "base.html" %} {% load i18n %} {% block title %}{% trans "Nagios Service" %}{% endblock %} {% block smallheader %}{% endblock %} {% block largeheader %}{% blocktrans %}Nagios Service is {{ friendly_status }}{% endblocktrans %}{% endblock %} {% block nav1 %}{% trans "Nagios Service" %}{% endblock %} {% block content %} {% if form %}
{% else %} {% trans "No form found" %} {% endif %} {% if command %}{{ stderr }}{% endif %} {% if stdout %}
{{ stdout }}{% endif %}
{% blocktrans %}Something does not smell right. We ran {{ command }} and got the error above. Usually when this happens there is a problem with sudoers configuration.{% endblocktrans %}
{% blocktrans %}Inspect webserver apache log and check if there are any sudo errors. Your /etc/sudoers.d/adagios should have something like this:{% endblocktrans %}
Defaults:{{ local_user }} !requiretty {{ local_user }} ALL = (root) NOPASSWD: /sbin/service nagios * {{ local_user }} ALL = (root) NOPASSWD: {{ nagios_bin }} -v *