{"id":755,"date":"2015-08-19T17:54:55","date_gmt":"2015-08-19T15:54:55","guid":{"rendered":"http:\/\/www.mythryll.com\/?p=755"},"modified":"2015-08-19T17:54:55","modified_gmt":"2015-08-19T15:54:55","slug":"%ce%b5%ce%b3%ce%ba%ce%b1%cf%84%ce%ac%cf%83%cf%84%ce%b1%cf%83%ce%b7-nagios-4-1-0-%cf%83%ce%b5-ubuntu-server-14-04-3-lts-%ce%bc%ce%b5-plugins-check_nrpe-check_esxi_hardware-%ce%ba%ce%b1%ce%b9-nagiosgr","status":"publish","type":"post","link":"https:\/\/www.mythryll.com\/?p=755","title":{"rendered":"\u0395\u03b3\u03ba\u03b1\u03c4\u03ac\u03c3\u03c4\u03b1\u03c3\u03b7 Nagios 4.1.0 \u03c3\u03b5 Ubuntu Server 14.04.3 LTS \u03bc\u03b5 plugins, check_nrpe, check_esxi_hardware \u03ba\u03b1\u03b9 nagiosgraph"},"content":{"rendered":"<p>\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 \u03ad\u03c0\u03b9\u03b1\u03c3\u03b1 \u03be\u03b1\u03bd\u03ac \u03c4\u03bf \u03b8\u03ad\u03bc\u03b1 \u03c4\u03bf\u03c5 upgrade \u03c3\u03b5 Nagios 4 \u03ba\u03b1\u03b9 \u03ad\u03bc\u03b1\u03b8\u03b1 \u03cc\u03c4\u03b9 \u03c3\u03c4\u03b9\u03c2 18\/8 (\u03c7\u03b8\u03b5\u03c2) \u03b2\u03b3\u03ae\u03ba\u03b5 \u03c4\u03bf Nagios 4.1.0 stable.<\/p>\n<p>\u039e\u03b5\u03ba\u03af\u03bd\u03b7\u03c3\u03b1 (\u03bc\u03b5\u03c4\u03ac \u03b1\u03c0\u03cc \u03b4\u03bf\u03ba\u03b9\u03bc\u03ae \u03b3\u03b9\u03b1 upgrade) \u03ad\u03bd\u03b1 clean install \u03c3\u03c4\u03bf\u03bd ubunagios03 \u03bc\u03b5 \u03b5\u03b3\u03ba\u03b1\u03c4\u03ac\u03c3\u03c4\u03b1\u03c3\u03b7 \u03b1\u03c0\u03cc \u03c4\u03b7\u03bd \u03b1\u03c1\u03c7\u03ae \u03c4\u03bf\u03c5 Ubuntu Server 14.04.3 LTS \u03ba\u03b1\u03b9 nagios core 4.1.0 &amp; nagios plugins v.2.1.1<\/p>\n<p>\u03a0\u03c1\u03ce\u03c4\u03b1 \u03b5\u03bd\u03b5\u03c1\u03b3\u03bf\u03c0\u03bf\u03af\u03b7\u03c3\u03b1 \u03c4\u03bf \u03c7\u03c1\u03ae\u03c3\u03c4\u03b7 root \u03bc\u03b5 sudo passwd root.<\/p>\n<p>\u039c\u03b5\u03c4\u03ac \u03bc\u03b5 \u03c4\u03bf \u03c7\u03c1\u03ae\u03c3\u03c4\u03b7 root \u03b5\u03bd\u03b5\u03c1\u03b3\u03bf\u03c0\u03bf\u03af\u03b7\u03c3\u03b1 \u03c4\u03bf ssh login \u03b3\u03b9\u03b1 \u03c4\u03bf root \u03ba\u03ac\u03bd\u03bf\u03bd\u03c4\u03b1\u03c2 edit \u03c3\u03c4\u03bf \/etc\/ssh\/sshd_config \u03c4\u03bf PermitRootLogin \u03c3\u03b5 yes.<\/p>\n<p>\u0393\u03b9\u03b1 \u03c4\u03b7\u03bd \u03b5\u03b3\u03ba\u03b1\u03c4\u03ac\u03c3\u03c4\u03b1\u03c3\u03b7 \u03b2\u03c1\u03ae\u03ba\u03b1 \u03b4\u03b9\u03ac\u03c6\u03bf\u03c1\u03b1 strings \u03b3\u03b9\u03b1 \u03c4\u03b1 \u03c0\u03c1\u03bf\u03b1\u03c0\u03b1\u03b9\u03c4\u03bf\u03cd\u03bc\u03b5\u03bd\u03b1 \u03b1\u03bb\u03bb\u03ac \u03b1\u03c5\u03c4\u03cc \u03c0\u03bf\u03c5 \u03c4\u03b5\u03bb\u03b9\u03ba\u03ac \u03c7\u03c1\u03b5\u03b9\u03ac\u03b6\u03b5\u03c4\u03b1\u03b9 \u03b5\u03af\u03bd\u03b1\u03b9 \u03c4\u03bf :<\/p>\n<blockquote><p>apt-get install wget build-essential apache2 apache2-utils php5-gd libgd2-xpm-dev libapache2-mod-php5 libssl-dev zip<\/p><\/blockquote>\n<p>\u039c\u03b5\u03c4\u03ac<\/p>\n<blockquote><p>useradd nagios<br \/>\ngroupadd nagcmd<br \/>\nusermod -a -G nagcmd nagios<br \/>\nusermod -a -G nagcmd www-data<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<p>\u039a\u03ac\u03bd\u03bf\u03c5\u03bc\u03b5 \u03bc\u03b5\u03c4\u03b1\u03c6\u03bf\u03c1\u03ac \u03c4\u03c9\u03bd tar.gz \u03c4\u03c9\u03bd core &amp; plugins \u03c3\u03c4\u03bf \/usr\/local\/src.<\/p>\n<blockquote><p>tar -zxf nagios-4.1.0.tar.gz<br \/>\ncd nagios-4.1.0\/<\/p>\n<p>.\/configure &#8211;with-nagios-group=nagios &#8211;with-command-group=nagcmd &#8211;with-mail=\/usr\/sbin\/sendmail &#8211;with-httpd_conf=\/etc\/apache2\/conf-available<\/p><\/blockquote>\n<p>\u03a3\u03c4\u03b7 \u03c3\u03c5\u03bd\u03ad\u03c7\u03b5\u03b9\u03b1:<\/p>\n<blockquote><p>make all<\/p>\n<p>make install<\/p>\n<p>make install-init<\/p>\n<p>make install-config<\/p>\n<p>make install-commandmode<\/p>\n<p>make install-webconf<\/p>\n<p>cp -R contrib\/eventhandlers\/ \/usr\/local\/nagios\/libexec\/<br \/>\nchown -R nagios:nagios \/usr\/local\/nagios\/libexec\/eventhandlers<br \/>\n\/usr\/local\/nagios\/bin\/nagios -v \/usr\/local\/nagios\/etc\/nagios.cfg<br \/>\nln -s \/etc\/init.d\/nagios \/etc\/rcS.d\/S99nagios<\/p>\n<p>\u03a0\u03ac\u03bc\u03b5 \u03b3\u03b9\u03b1 \u03c4\u03b1 plugins<br \/>\ncd ..<br \/>\nmv \/tmp\/nagios-plugins-2.1.1.tar.gz .\/<br \/>\nls<br \/>\ntar -zxf nagios-plugins-2.1.1.tar.gz<br \/>\nls<br \/>\ncd nagios-<br \/>\ncd nagios-plugins-2.1.1\/<br \/>\nls<br \/>\n.\/configure &#8211;with-nagios-user=nagios &#8211;with-nagios-group=nagios &#8211;enable-perl-modules &#8211;enable-extra-opts<br \/>\nmake<br \/>\nmake install<\/p><\/blockquote>\n<p>\u0395\u03bd\u03b5\u03c1\u03b3\u03bf\u03c0\u03bf\u03b9\u03bf\u03cd\u03bc\u03b5 \u03c4\u03bf cgi module \u03c3\u03c4\u03bf\u03bd Apache2<\/p>\n<blockquote><p>a2enmod cgi<\/p><\/blockquote>\n<p>\u0394\u03b7\u03bc\u03b9\u03bf\u03c5\u03c1\u03b3\u03bf\u03cd\u03bc\u03b5 password \u03b3\u03b9\u03b1 \u03c4\u03bf \u03c7\u03c1\u03ae\u03c3\u03c4\u03b7 nagiosadmin \u03b3\u03b9\u03b1 \u03c4\u03b7\u03bd \u03c0\u03c1\u03cc\u03b2\u03b1\u03c3\u03b7 \u03c3\u03c4\u03bf nagios gui.<\/p>\n<blockquote><p>htpasswd -c \/usr\/local\/nagios\/etc\/htpasswd.users nagiosadmin<\/p><\/blockquote>\n<p>\u0391\u03bd\u03bf\u03af\u03b3\u03bf\u03c5\u03bc\u03b5 \u03c4\u03bf \u03c0\u03b1\u03c1\u03b1\u03ba\u03ac\u03c4\u03c9 \u03b1\u03c1\u03c7\u03b5\u03af\u03bf<\/p>\n<blockquote><p>vim \/etc\/apache2\/sites-enabled\/000-default.conf<\/p><\/blockquote>\n<p>\u039a\u03b1\u03b9 \u03c0\u03c1\u03bf\u03c3\u03b8\u03ad\u03c4\u03bf\u03c5\u03bc\u03b5 \u03c4\u03b7\u03bd \u03b5\u03be\u03b7\u03c2 \u03b3\u03c1\u03b1\u03bc\u03bc\u03ae:<\/p>\n<blockquote><p>Include conf-available\/nagios.conf<\/p><\/blockquote>\n<p>\u039a\u03ac\u03bd\u03bf\u03c5\u03bc\u03b5 restart \u03c4\u03bf apache2 service \u03ba\u03b1\u03b9 \u03b5\u03bd\u03b5\u03c1\u03b3\u03bf\u03c0\u03bf\u03b9\u03bf\u03cd\u03bc\u03b5 \u03c4\u03bf nagios service.<\/p>\n<blockquote><p>service apache2 restart<br \/>\nservice nagios start<\/p><\/blockquote>\n<p>\u0388\u03c4\u03bf\u03b9\u03bc\u03bf \u03c4\u03bf \u03b2\u03b1\u03c3\u03b9\u03ba\u03cc \u03ba\u03bf\u03bc\u03bc\u03ac\u03c4\u03b9 \u03c4\u03bf\u03c5 Nagios. \u0388\u03c7\u03bf\u03c5\u03bc\u03b5 \u03cc\u03bc\u03c9\u03c2 \u03ba\u03b1\u03b9 \u03ad\u03bd\u03b1 \u03b1\u03c1\u03b9\u03b8\u03bc\u03cc \u03b1\u03c0\u03cc plugins.<\/p>\n<p>\u03a3\u03c5\u03b3\u03ba\u03b5\u03ba\u03c1\u03b9\u03bc\u03ad\u03bd\u03b1 \u03c7\u03c1\u03b5\u03b9\u03b1\u03b6\u03cc\u03bc\u03b1\u03c3\u03c4\u03b5 \u03c4\u03bf Check_NRPE, \u03c4\u03bf Check_esxi_hardware \u03ba\u03b1\u03b9 \u03c4\u03bf nagiosgraph.<\/p>\n<p>\u0393\u03b9\u03b1 \u03c4\u03bf check_nrpe \u03c0\u03c1\u03ad\u03c0\u03b5\u03b9 \u03b5\u03b3\u03ba\u03b1\u03c4\u03b1\u03c3\u03c4\u03b1\u03b8\u03b5\u03af \u03c4\u03bf nrpe \u03b1\u03bb\u03bb\u03ac \u03bc\u03cc\u03bd\u03bf \u03c4\u03bf \u03ba\u03bf\u03bc\u03bc\u03ac\u03c4\u03b9 \u03c4\u03bf\u03c5 plugin (\u03cc\u03c7\u03b9 \u03bf server). \u0388\u03c4\u03c3\u03b9 \u03ba\u03b1\u03c4\u03b5\u03b2\u03ac\u03b6\u03bf\u03c5\u03bc\u03b5 \u03c4\u03bf NRPE \u03b1\u03c0\u03cc \u03c4\u03bf sourceforge (\u03ad\u03ba\u03b4\u03bf\u03c3\u03b7 2.15 \u03b5\u03b4\u03ce \u03ba\u03b1\u03b9 \u03b4\u03cd\u03bf \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1) \u03ba\u03b1\u03b9 \u03c4\u03bf \u03b1\u03c0\u03bf\u03c3\u03c5\u03bc\u03c0\u03b9\u03ad\u03b6\u03bf\u03c5\u03bc\u03b5:<\/p>\n<blockquote><p>\u00a0mv \/tmp\/nrpe-2.15.tar.gz \/usr\/local\/src<br \/>\ncd \/usr\/local\/src\/<br \/>\ntar -zxf nrpe-2.15.tar.gz<br \/>\ncd nrpe-2.15\/<\/p><\/blockquote>\n<p>\u0395\u03b3\u03ba\u03b1\u03b8\u03b9\u03c3\u03c4\u03bf\u03cd\u03bc\u03b5:<\/p>\n<blockquote><p>\u00a0.\/configure &#8211;with-ssl=\/usr\/bin\/openssl &#8211;with-ssl-lib=\/usr\/lib\/x86_64-linux-gnu<br \/>\nmake all<br \/>\nmake install-plugin<\/p><\/blockquote>\n<p>To plugin check_nrpe \u03b5\u03af\u03bd\u03b1\u03b9 \u03ad\u03c4\u03bf\u03b9\u03bc\u03bf \u03b3\u03b9\u03b1 \u03c7\u03c1\u03ae\u03c3\u03b7.<\/p>\n<p>\u03a4\u03bf check_esxi_hardware \u03c4\u03bf \u03ba\u03b1\u03c4\u03b5\u03b2\u03ac\u03b6\u03bf\u03c5\u03bc\u03b5 \u03b1\u03c0\u03cc \u03c4\u03bf nagios exchange.<\/p>\n<p>\u03a3\u03c4\u03b7 \u03c3\u03c5\u03bd\u03ad\u03c7\u03b5\u03b9\u03b1:<\/p>\n<blockquote><p>mv \/tmp\/check_esxi_hardware.py \/usr\/local\/nagios\/libexec\/<br \/>\nchown nagios:nagios check_esxi_hardware.py<br \/>\nchmod g+w check_esxi_hardware.py<\/p><\/blockquote>\n<p>\u039a\u03b1\u03bd\u03bf\u03bd\u03b9\u03ba\u03ac \u03c7\u03c1\u03b5\u03b9\u03b1\u03b6\u03cc\u03c4\u03b1\u03bd \u03b5\u03b3\u03ba\u03b1\u03c4\u03ac\u03c3\u03c4\u03b1\u03c3\u03b7 \u03ba\u03b1\u03b9 downgrade \u03c4\u03bf\u03c5 pywbem. \u03a4\u03ce\u03c1\u03b1 \u03b1\u03c0\u03bb\u03ce\u03c2 \u03b5\u03b3\u03ba\u03b1\u03b8\u03b9\u03c3\u03c4\u03bf\u03cd\u03bc\u03b5:<br \/>\napt install python-pywbem<\/p>\n<p>\u0388\u03c4\u03bf\u03b9\u03bc\u03bf \u03c4\u03bf plugin.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 \u03ad\u03c0\u03b9\u03b1\u03c3\u03b1 \u03be\u03b1\u03bd\u03ac \u03c4\u03bf \u03b8\u03ad\u03bc\u03b1 \u03c4\u03bf\u03c5 upgrade \u03c3\u03b5 Nagios 4 \u03ba\u03b1\u03b9 \u03ad\u03bc\u03b1\u03b8\u03b1 \u03cc\u03c4\u03b9 \u03c3\u03c4\u03b9\u03c2 18\/8 (\u03c7\u03b8\u03b5\u03c2) \u03b2\u03b3\u03ae\u03ba\u03b5 \u03c4\u03bf Nagios 4.1.0 stable. \u039e\u03b5\u03ba\u03af\u03bd\u03b7\u03c3\u03b1 (\u03bc\u03b5\u03c4\u03ac \u03b1\u03c0\u03cc \u03b4\u03bf\u03ba\u03b9\u03bc\u03ae \u03b3\u03b9\u03b1 upgrade) \u03ad\u03bd\u03b1 clean install \u03c3\u03c4\u03bf\u03bd ubunagios03 \u03bc\u03b5 \u03b5\u03b3\u03ba\u03b1\u03c4\u03ac\u03c3\u03c4\u03b1\u03c3\u03b7 \u03b1\u03c0\u03cc \u03c4\u03b7\u03bd \u03b1\u03c1\u03c7\u03ae \u03c4\u03bf\u03c5 Ubuntu Server 14.04.3 LTS \u03ba\u03b1\u03b9 nagios core 4.1.0 &amp; nagios plugins v.2.1.1 \u03a0\u03c1\u03ce\u03c4\u03b1 \u03b5\u03bd\u03b5\u03c1\u03b3\u03bf\u03c0\u03bf\u03af\u03b7\u03c3\u03b1 \u03c4\u03bf \u03c7\u03c1\u03ae\u03c3\u03c4\u03b7 root&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,21],"tags":[],"class_list":["post-755","post","type-post","status-publish","format-standard","hentry","category-it","category-monitoring-tools"],"_links":{"self":[{"href":"https:\/\/www.mythryll.com\/index.php?rest_route=\/wp\/v2\/posts\/755","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mythryll.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mythryll.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mythryll.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mythryll.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=755"}],"version-history":[{"count":1,"href":"https:\/\/www.mythryll.com\/index.php?rest_route=\/wp\/v2\/posts\/755\/revisions"}],"predecessor-version":[{"id":756,"href":"https:\/\/www.mythryll.com\/index.php?rest_route=\/wp\/v2\/posts\/755\/revisions\/756"}],"wp:attachment":[{"href":"https:\/\/www.mythryll.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=755"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mythryll.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=755"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mythryll.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=755"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}