Difference between revisions of "Nagios CentOS install"

From Teknologisk videncenter
Jump to: navigation, search
m
m (start apache og nagios)
 
(6 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
[root@merkur tmp]# <input>yum install nagios nagios-plugins nagios-plugins-nrpe nagios-devel</input>
 
[root@merkur tmp]# <input>yum install nagios nagios-plugins nagios-plugins-nrpe nagios-devel</input>
 
</source>
 
</source>
{{#css: 
+
== Password ==
    pre {  font-family: Lucida Console; font-weight: bold; font-size: 14px; color: #00FF00; background: black; margin: 10px 50px; width: 800px; line-height: 200%; overflow: auto;}
+
<source lang=cli>
}}
+
[root@merkur tmp] <input>htpsswd -c /etc/nagios/htpasswd.users nagiosadmin</input>
[[Category:CentOS]]
+
New password: <input>Secret</input>
 +
password: <input>Secret</input>
 +
</source>
 +
== http config ==
 +
* Linien til nagios udkommenteres i /etc/httpd/conf/http.conf
 +
 
 +
== start apache og nagios ==
 +
<source lang=cli>
 +
[root@merkur tmp]# <input>service httpd start</input>
 +
[root@merkur tmp]# <input>service nagios start</input>
 +
</source>
 +
{{Source cli}}
 +
[[Category:CentOS]][[Category:Network Management]]

Latest revision as of 15:33, 1 April 2010

[root@merkur tmp]# <input>yum update</input>
[root@merkur tmp]# <input>rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm</input>
[root@merkur tmp]# <input>yum clean all</input>
[root@merkur tmp]# <input>yum install nagios nagios-plugins nagios-plugins-nrpe nagios-devel</input>

Password

[root@merkur tmp] <input>htpsswd -c /etc/nagios/htpasswd.users nagiosadmin</input>
New password: <input>Secret</input>
password: <input>Secret</input>

http config

  • Linien til nagios udkommenteres i /etc/httpd/conf/http.conf

start apache og nagios

[root@merkur tmp]# <input>service httpd start</input>
[root@merkur tmp]# <input>service nagios start</input>