{"id":215,"date":"2011-06-25T02:44:00","date_gmt":"2011-06-25T02:44:00","guid":{"rendered":"http:\/\/pheonixsolutions.com\/?p=215"},"modified":"2011-06-25T02:44:00","modified_gmt":"2011-06-25T02:44:00","slug":"nagios-installation","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/nagios-installation\/","title":{"rendered":"Nagios installation."},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left;\" trbidi=\"on\">How to install NAGIOS in linux or windows server?<\/p>\n<p>Solution.<\/p>\n<p>INSTALLATION<\/p>\n<p>Download the latest version of nagios from the following link<br \/>http:\/\/www.nagios.org\/download\/<br \/>Then, unpack the Nagios distribution, use the following command<br \/>#tar xzf nagios-2.6.tar.gz<br \/>Navigate\u00c2\u00a0 to the newly created directory<br \/>#cd nagios-version (nagios-2.6)<br \/>Run the configure script<br \/># .\/configure &#8211;prefix=\/usr\/local\/nagios &#8211;with-cgiurl=\/nagios\/cgi-bin &#8212;<br \/>with-htmurl=\/nagios\/ &#8211;with-nagios-user=nagios &#8211;with-nagios-<br \/>group=nagios &#8211;with-command-group=nagios<\/p>\n<p>where<br \/>&#8211;prefix=\/usr\/local\/nagios is the Nagios root folder<br \/>&#8211;with-cgiurl=\/nagios\/cgi-bin is the Nagios CGI folder<br \/>&#8211;with-htmurl=\/nagios\/ is the Nagios HTML\/Website folder<br \/>&#8211;with-nagios-user=nagios is the Nagios user<br \/>&#8211;with-nagios-group=nagios is the Nagios group<br \/>&#8211;with-command-group=nagios is the Nagios command group which has <br \/>webserver user (Apache) and the nagios user as members.<br \/>If we want more options just type the following command<br \/>#.\/configure &#8211;help<\/p>\n<p>#make all<br \/>this will Compile Nagios and the CGIs<br \/>#make install<br \/>This will Install the binaries and HTML files (documentation and main <br \/>web page)<br \/>#make install-init<br \/>This will install the Startup scripts(to \/etc\/rc.d\/init.d\/nagios)<br \/># make install-commandmode<br \/>This will Create the required directory for command file and assign <br \/>appropriate permissions to it for the external commands.<br \/># make install-config<\/p>\n<p>This installs SAMPLE config files in \/usr\/local\/nagios\/etc .We&#8217; &#8216;ll have to <br \/>modify these sample files before we can use Nagios.<br \/>This will complete the installation Now we need to know the Directory <br \/>Structure and File locations. After navigating to\u00c2\u00a0 \/usr\/local\/nagios , we <br \/>would see 5 sub-directories:<br \/>* bin\/ Nagios core program<br \/>* etc\/ Main, resource, object, and CGI configuration files should be put <br \/>here<br \/>* sbin\/ CGIs<br \/>* share\/ HTML files (for web interface and online documentation)<br \/>* var\/ Empty directory for the log file, status file, retention file,etc.<\/p>\n<p>Next thing we need to concentrate is \/usr\/local\/nagios\/etc directory <br \/>where all the sample configuration files like nagios.cfg-sample,cgi.cfg-<br \/>sample stores.<br \/>So, we need to rename these sample configuration files to .cfg files.<br \/>Hence, the basic installation of nagios is completed.<\/p>\n<p>INSTALL NAGIOS PLUGINS:<\/p>\n<p>Plugins are usually installed in the libexec\/ directory of your Nagios <br \/>installation (i.e. \/usr\/local\/nagios\/libexec).<br \/>a) Download Nagios Plugins<br \/>b) Untar the downloaded file and navigate to nagios plugin dir.<br \/>c) .\/configure and make &#038;&#038; make install<br \/>This should install the plugins in the \/usr\/local\/nagios\/libexec directory.<\/p>\n<p>SETTING UP THE WEB INTERFACE FOR NAGIOS:<\/p>\n<p>1) Create configuration entries for nagios in httpd.conf<br \/>2) Restart Apache<br \/>3) Setup User Authentication:\u00c2\u00a0 This can be done by,<br \/># htpasswd -c \/usr\/local\/nagios\/etc\/htpasswd.users nagiosadmin<\/p>\n<p>Enter the required password when prompted. This will setup htaccess <br \/>on the site by creating a new file named htpasswd.users under <br \/>\/usr\/local\/nagios\/etc\/ with the first user nagios admin. <br \/>You can add as many user you wish by<br \/># htpasswd \/usr\/local\/nagios\/etc\/htpasswd.users (username)<\/p>\n<p>For the CGIs to use Authentication on Nagios, edit the file <br \/>\/usr\/local\/nagios\/etc\/cgi.cfg and set\u00c2\u00a0 \u00e2\u20ac\u0153use_authentication=1\u00e2\u20ac\u009d<\/p>\n<p>You can now access the web interface at http:\/\/<IPADDRESS OR <br \/>HOSTNAME>\/nagios\/<\/p>\n<p>NAGIOS CONFIGURATION:<\/p>\n<p>Main Configuration file:\u00c2\u00a0 nagios.cfg<br \/>Resource File: resource.cfg<br \/>Commands Config File: commands.cfg<\/p>\n<p>Other Object Configuration files are:<br \/>\u00c2\u00a0hosts.cfg<br \/>\u00c2\u00a0hostgroup.cfg<br \/>\u00c2\u00a0services.cfg<br \/>\u00c2\u00a0servicegroup.cfg<br \/>\u00c2\u00a0contacts.cfg<br \/>\u00c2\u00a0contactsgroup.cfg<br \/>\u00c2\u00a0timeperiod.cfg<\/p>\n<p>Syntax Check and Nagios Reload:<br \/>\/usr\/local\/\/nagios\/bin\/nagios -v \/usr\/local\/\/nagios\/etc\/nagios.cfg<br \/>\/etc\/rc.d\/init.d\/nagios reload<\/p>\n<p>HOSTS.CFG<\/p>\n<p>define host{<br \/>\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 host_name\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 my-host<br \/>\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 alias\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 my-host.domain.ac.uk<br \/>\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 address\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 168.192.0.1<br \/>\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 check_command\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 check-host-alive<br \/>\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 max_check_attempts\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 10<br \/>\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 check_period\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 24&#215;7<br \/>\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 notification_interval\u00c2\u00a0\u00c2\u00a0 120<br \/>\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 notification_period\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 24&#215;7<br \/>\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 notification_options\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 d,r<br \/>\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 contact_groups\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 unix-admins<br \/>\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 register\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 1<br \/>\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 }<\/p>\n<p>SERVICES.CFG<\/p>\n<p>\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 define service{<br \/>\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 name\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 ping-service<br \/>\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 service_description\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 PING<br \/>\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 is_volatile\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 0<br \/>\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 check_period\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 24&#215;7<br \/>\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 max_check_attempts\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 4<br \/>\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 normal_check_interval\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 5<br \/>\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 retry_check_interval\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 1<br \/>\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 contact_groups\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 unix-admins<br \/>\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 notification_options\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 w,u,c,r<br \/>\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 notification_interval\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 960<br \/>\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 notification_period\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 24&#215;7<br \/>\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 check_command\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 check_ping!100.0,20%!500.0,60%<br \/>\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 hosts\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 my-host<br \/>\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 register\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 1<br \/>\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 }<\/p>\n<p>HOSTGROUPS.CFG<\/p>\n<p># &#8216;hong-kong&#8217; host group definition<br \/>define hostgroup{<br \/>hostgroup_name hong-kong<br \/>alias Hong Kong Group<br \/>contact_groups hk-admins*<br \/>members HK1,HK2<br \/>}<\/p>\n<p># &#8216;new-york&#8217; host group definition<br \/>define hostgroup{<br \/>hostgroup_name new-york<br \/>alias New York Group<br \/>contact_groups ny-admins*<br \/>members NY1,NY2<br \/>}<\/p>\n<p>NAGIOS LOG FILES<\/p>\n<p>Nagios.log <br \/>Status Log:\u00c2\u00a0 nagios\/var\/status.log<br \/>Downtime Log File:\u00c2\u00a0 nagios\/var\/downtime.log<br \/>Comment log File: nagios\/var\/comment.log<br \/>Nagios Lock File: nagios.lock => Nagios creates this file when it runs as <br \/>a daemon. This file contains the process id (PID) number of the running <br \/>Nagios process. <br \/>State Retention File: nagios\/var\/status.sav\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 This <br \/>is the file that Nagios will use for storing service and host state <br \/>information before it shuts down. When Nagios is restarted it will use the <br \/>information stored in this file for setting the initial states of services and <br \/>hosts before it starts monitoring anything.<\/p>\n<p>NAGIOS DEFAULT PLUGINS<\/p>\n<p>Some of the common plugins installed by default with installation of <br \/>Nagios are: <br \/>check_by_ssh: execute a command on a remote host using SSH<br \/>check_disk: check the percent of used disk space on a mounted file <br \/>system and generate an alert if percentage is above one of the threshold <br \/>values.<br \/>check_dns: uses the nslookup program to obtain the IP address for the <br \/>given host\/domain query.<br \/>check_ftp: tests FTP connections with the specified host.<br \/>check_http: tests the HTTP service on the specified host.<br \/>check_load: tests the current system load average.<br \/>check_ping: Use ping to check connection statistics for a remote host.<br \/>check_pop: This plugin tests POP connections with the specified host.<br \/>check_smtp:\u00c2\u00a0 tests the SMTP service on the specified host.<br \/>check_time:\u00c2\u00a0 Checks time on the specified host.<br \/>check_imap : Tests the IMAP connections with the specified host.<\/p>\n<p>NAGIOS EVENT HANDLER<\/p>\n<p>&#8211; optional commands that are executed whenever a host or service state <br \/>change occurs.<br \/>&#8211; ability for Nagios to proactively fix problems before anyone is notified<br \/>&#8211; logs service or host events to an external database.<\/p>\n<p>Event Handlers are executed when a service or host is in a &#8216;soft&#8217; state , <br \/>initially goes to a &#8216;hard state&#8217; or recovers from a soft or hard state.<\/p>\n<p>E.g:<br \/>define service{<br \/>\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 host_name\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 somehost<br \/>\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 service_description\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 HTTP<br \/>\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 max_check_attempts\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 4<br \/>\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 event_handler\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 restart-httpd<br \/>\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 &#8230;other service variables&#8230;<br \/>\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 }<\/p>\n<p>===========================================<br \/>\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <br \/>\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 Thank you \ud83d\ude42<\/div>\n","protected":false},"excerpt":{"rendered":"<p>How to install NAGIOS in linux or windows server? Solution. INSTALLATION Download the latest version of nagios from the following linkhttp:\/\/www.nagios.org\/download\/Then, unpack the Nagios distribution, use the following command#tar xzf nagios-2.6.tar.gzNavigate\u00c2\u00a0 to the newly created directory#cd nagios-version (nagios-2.6)Run the configure script# .\/configure &#8211;prefix=\/usr\/local\/nagios &#8211;with-cgiurl=\/nagios\/cgi-bin &#8212;with-htmurl=\/nagios\/ &#8211;with-nagios-user=nagios &#8211;with-nagios-group=nagios &#8211;with-command-group=nagios where&#8211;prefix=\/usr\/local\/nagios is&hellip; <a href=\"https:\/\/pheonixsolutions.com\/blog\/nagios-installation\/\" class=\"more-link read-more\" rel=\"bookmark\">Continue Reading <span class=\"screen-reader-text\">Nagios installation.<\/span><i class=\"fa fa-arrow-right\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":{"0":"post-215","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-uncategorized","7":"h-entry","9":"h-as-article"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Pheonix Solutions - We Empower Your Business Growth<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/pheonixsolutions.com\/blog\/nagios-installation\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Pheonix Solutions - We Empower Your Business Growth\" \/>\n<meta property=\"og:description\" content=\"How to install NAGIOS in linux or windows server? Solution. INSTALLATION Download the latest version of nagios from the following linkhttp:\/\/www.nagios.org\/download\/Then, unpack the Nagios distribution, use the following command#tar xzf nagios-2.6.tar.gzNavigate\u00c2\u00a0 to the newly created directory#cd nagios-version (nagios-2.6)Run the configure script# .\/configure &#8211;prefix=\/usr\/local\/nagios &#8211;with-cgiurl=\/nagios\/cgi-bin &#8212;with-htmurl=\/nagios\/ &#8211;with-nagios-user=nagios &#8211;with-nagios-group=nagios &#8211;with-command-group=nagios where&#8211;prefix=\/usr\/local\/nagios is&hellip; Continue Reading Nagios installation.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/pheonixsolutions.com\/blog\/nagios-installation\/\" \/>\n<meta property=\"og:site_name\" content=\"PHEONIXSOLUTIONS\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/\" \/>\n<meta property=\"article:published_time\" content=\"2011-06-25T02:44:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/09\/PX2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"3837\" \/>\n\t<meta property=\"og:image:height\" content=\"2540\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@pheonixsolution\" \/>\n<meta name=\"twitter:site\" content=\"@pheonixsolution\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/nagios-installation\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/nagios-installation\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/0ffa33d73c869faec2d50e79c24e3503\"},\"headline\":\"Nagios installation.\",\"datePublished\":\"2011-06-25T02:44:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/nagios-installation\\\/\"},\"wordCount\":996,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/nagios-installation\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/nagios-installation\\\/\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/nagios-installation\\\/\",\"name\":\"Pheonix Solutions - We Empower Your Business Growth\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#website\"},\"datePublished\":\"2011-06-25T02:44:00+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/nagios-installation\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/nagios-installation\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/nagios-installation\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Nagios installation.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\",\"name\":\"Pheonix Solutions\",\"description\":\"We Empower Your Business Growth\",\"publisher\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\",\"name\":\"PheonixSolutions\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/logo.png\",\"width\":454,\"height\":300,\"caption\":\"PheonixSolutions\"},\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/PheonixSolutions-209942982759387\\\/\",\"https:\\\/\\\/x.com\\\/pheonixsolution\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/0ffa33d73c869faec2d50e79c24e3503\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"http:\\\/\\\/blog.pheonixsolutions.com\"],\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Pheonix Solutions - We Empower Your Business Growth","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/pheonixsolutions.com\/blog\/nagios-installation\/","og_locale":"en_US","og_type":"article","og_title":"Pheonix Solutions - We Empower Your Business Growth","og_description":"How to install NAGIOS in linux or windows server? Solution. INSTALLATION Download the latest version of nagios from the following linkhttp:\/\/www.nagios.org\/download\/Then, unpack the Nagios distribution, use the following command#tar xzf nagios-2.6.tar.gzNavigate\u00c2\u00a0 to the newly created directory#cd nagios-version (nagios-2.6)Run the configure script# .\/configure &#8211;prefix=\/usr\/local\/nagios &#8211;with-cgiurl=\/nagios\/cgi-bin &#8212;with-htmurl=\/nagios\/ &#8211;with-nagios-user=nagios &#8211;with-nagios-group=nagios &#8211;with-command-group=nagios where&#8211;prefix=\/usr\/local\/nagios is&hellip; Continue Reading Nagios installation.","og_url":"https:\/\/pheonixsolutions.com\/blog\/nagios-installation\/","og_site_name":"PHEONIXSOLUTIONS","article_publisher":"https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/","article_published_time":"2011-06-25T02:44:00+00:00","og_image":[{"width":3837,"height":2540,"url":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/09\/PX2.png","type":"image\/png"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@pheonixsolution","twitter_site":"@pheonixsolution","twitter_misc":{"Written by":"admin","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pheonixsolutions.com\/blog\/nagios-installation\/#article","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/blog\/nagios-installation\/"},"author":{"name":"admin","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/person\/0ffa33d73c869faec2d50e79c24e3503"},"headline":"Nagios installation.","datePublished":"2011-06-25T02:44:00+00:00","mainEntityOfPage":{"@id":"https:\/\/pheonixsolutions.com\/blog\/nagios-installation\/"},"wordCount":996,"commentCount":0,"publisher":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#organization"},"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/pheonixsolutions.com\/blog\/nagios-installation\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/pheonixsolutions.com\/blog\/nagios-installation\/","url":"https:\/\/pheonixsolutions.com\/blog\/nagios-installation\/","name":"Pheonix Solutions - We Empower Your Business Growth","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#website"},"datePublished":"2011-06-25T02:44:00+00:00","breadcrumb":{"@id":"https:\/\/pheonixsolutions.com\/blog\/nagios-installation\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/pheonixsolutions.com\/blog\/nagios-installation\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/pheonixsolutions.com\/blog\/nagios-installation\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/pheonixsolutions.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Nagios installation."}]},{"@type":"WebSite","@id":"https:\/\/pheonixsolutions.com\/blog\/#website","url":"https:\/\/pheonixsolutions.com\/blog\/","name":"Pheonix Solutions","description":"We Empower Your Business Growth","publisher":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pheonixsolutions.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/pheonixsolutions.com\/blog\/#organization","name":"PheonixSolutions","url":"https:\/\/pheonixsolutions.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/12\/logo.png","contentUrl":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/12\/logo.png","width":454,"height":300,"caption":"PheonixSolutions"},"image":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/","https:\/\/x.com\/pheonixsolution"]},{"@type":"Person","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/person\/0ffa33d73c869faec2d50e79c24e3503","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g","caption":"admin"},"sameAs":["http:\/\/blog.pheonixsolutions.com"],"url":"https:\/\/pheonixsolutions.com\/blog\/author\/admin\/"}]}},"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p7F4uM-3t","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/215","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=215"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/215\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=215"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=215"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}