今天在安装完nagios后,通过nagios网页界面点击主机.服务.问题页面时.均报错,报错的内容都差不多.如点击服务,报错: It appears as though you do not have permission to view information for any of the services you requested... 如下图所示: 百度了下,好多文章基本都是一样,改/usr/local/nagios/etc/cgi.cfg文件里的一个参数 use_authent…
最近在看Extension相关知识的时候,自己写了个小demo 发现[UIApplication sharedApplication]这个方法敲不出来了, 总是报错:'sharedApplication' is unavailable: not available on iOS (App Extension) - Use view controller based..... 在网上找了一些觉得办法,大多都是在说把cocoapods卸载了重装的 但很明显 我的问题不是由于这个原因导致的 然后我问…
Django 报错 Reverse for 'content' not found. 'content' is not a valid view function or pattern name. 我这边的原因是由于命名空间的错误导致的bug from django.urls import path from . import views app_name = 'energy' # 给app命名空间 urlpatterns = [ path('search/', views.search, na…
zabbix监控搭建完后打开web界面http://xxx/zabbix报错: zabbix server is not running: the information displayed may not be current! 1 . 遇到这个问题,首先不要去直接搜,我们查看下zabbix server的log日志: connection to database 'zabbix' failed: [1045] Access denied for user 'root'(using passw…