<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.apoyar.eu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=152.57.149.69</id>
	<title>Apoyar Wiki - User contributions [en-gb]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.apoyar.eu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=152.57.149.69"/>
	<link rel="alternate" type="text/html" href="https://wiki.apoyar.eu/index.php?title=Special:Contributions/152.57.149.69"/>
	<updated>2026-07-20T13:41:48Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://wiki.apoyar.eu/index.php?title=Adding_hosts_and_services_to_Nagios_-_Linux/BSD_hosts&amp;diff=262</id>
		<title>Adding hosts and services to Nagios - Linux/BSD hosts</title>
		<link rel="alternate" type="text/html" href="https://wiki.apoyar.eu/index.php?title=Adding_hosts_and_services_to_Nagios_-_Linux/BSD_hosts&amp;diff=262"/>
		<updated>2022-12-05T08:57:32Z</updated>

		<summary type="html">&lt;p&gt;152.57.149.69: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Adding Unix/Linux host to Nagios&lt;br /&gt;
--------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1.	Connect to Nagios  server (nagios.apoyar with neal username and apoyar.key)&lt;br /&gt;
&lt;br /&gt;
#cd /usr/local/etc/nagios/objects/machines&lt;br /&gt;
&lt;br /&gt;
#vi apoyar.cfg (depending on whether we are adding host for Apoyar or other customers)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2.	We did for apoyar unix server hostname (test-Linux)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3.	Copy the configuration format for linux server added before and e.dit the hostname and address for new host.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4.	Add the host name in member list to recognize Nagios probe for checks&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
Save file (:wq!) and exit vi editor&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
Go to below path&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
• cd /usr/local/etc/nagios/objects&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
• vi services.cfg&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5.	Add the new hostname to the services, which we need for new server in Nagios, for those services, which we need to monitor.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
6.	Go to that particular service configuration and enter new server name manually&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
Save file (:wq!) and exit vi editor&lt;br /&gt;
&lt;br /&gt;
Run below command on nagios server and check syntax errors with below command&lt;br /&gt;
&lt;br /&gt;
 /usr/local/bin/nagios -v /usr/local/etc/nagios/nagios.cfg&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: &lt;br /&gt;
&lt;br /&gt;
	Host machine should ping from Nagios server to confirm that servers are communicating each other.&lt;br /&gt;
&lt;br /&gt;
	One more thing that it can be SSH to test-Linux server from Nagios server without password.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
7.	Connect from test-Linux server from Nagios server using Nagios user account with password.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
8.	If user account is existing in test-Linux server it will access else it will not (due to Nagios user account doesn’t exist) &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
9.	Once configuration changes done on Nagios server, connect machine which you are adding to Nagios (test-Linux) server.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
10.	Need to create user name with home folder for user&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#adduser nagios&lt;br /&gt;
&lt;br /&gt;
Set password for nagios to access from Nagios server &lt;br /&gt;
&lt;br /&gt;
#passwd nagios&lt;br /&gt;
&lt;br /&gt;
#cd /home/nagios&lt;br /&gt;
&lt;br /&gt;
#mkdir .ssh&lt;br /&gt;
&lt;br /&gt;
#mkdir bin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
11.	After that need to change owner of those folder which is created by root.&lt;br /&gt;
&lt;br /&gt;
#chown nagios:nagios .ssh/ -R&lt;br /&gt;
&lt;br /&gt;
#chown nagios:nagios bin –R&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
12.	Copy public key (authorized_keys) file from any existing working server to access server password authentication less. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
13.	Once key file copied into test-Linux server.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
14.	Need to install nagios packages on host machine&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#dpkg –l | grep nagios # to check which packages to be installed&lt;br /&gt;
&lt;br /&gt;
Monitoring-plugins&lt;br /&gt;
&lt;br /&gt;
Nagios-plugins&lt;br /&gt;
&lt;br /&gt;
Using below commands&lt;br /&gt;
&lt;br /&gt;
# apt-get install nagios-plugins&lt;br /&gt;
&lt;br /&gt;
# apt-get install monitoring-plugins&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
15.	&lt;br /&gt;
&lt;br /&gt;
 So just will create soft links from actual installed folder to newly created bin folder on Nagios folder path.&lt;br /&gt;
&lt;br /&gt;
# ln –s /usr/lib/nagios/plugins/check_load /home/nagios/bin/&lt;br /&gt;
&lt;br /&gt;
# ln –s /usr/lib/nagios/plugins/check_users /home/nagios/bin/&lt;br /&gt;
&lt;br /&gt;
# ln –s /usr/lib/nagios/plugins/check_uptime /home/nagios/bin/&lt;br /&gt;
&lt;br /&gt;
# ln –s /usr/lib/nagios/plugins/check_disk /home/nagios/bin/&lt;br /&gt;
&lt;br /&gt;
# ln –s /usr/lib/nagios/plugins/check_swap /home/nagios/bin/&lt;br /&gt;
&lt;br /&gt;
# ln –s /usr/lib/nagios/plugins/check_procs /home/nagios/bin/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
16.	After that we need to copy some files from nagios server plugins folder path to hosted server into bin folder.&lt;br /&gt;
&lt;br /&gt;
Connect nagios server&lt;br /&gt;
&lt;br /&gt;
#su – nagios&lt;br /&gt;
&lt;br /&gt;
#cd plugins&lt;br /&gt;
&lt;br /&gt;
#scp check_debian_packages check_mem.pl check_uptime.sh test-Linux:/home/nagios/bin&lt;br /&gt;
&lt;br /&gt;
Once all these done change Nagios user account password on test-Linux server which we don’t use future as well it is more secure with password generator.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
17.	It will start checking service checks. If you want to add more services for monitoring like, Nginx, php, disk io status.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
18.	Copy check files from nagios server to test-Linux server bin path like above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#scp check_nginx_status.pl check_phpfpm_status.pl check_diskio.pl test-Linux:/home/nagios/bin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
19.	Once copied into test-Linux sevrer&lt;br /&gt;
&lt;br /&gt;
Execute those files&lt;br /&gt;
&lt;br /&gt;
# cd /home/nagios/bin&lt;br /&gt;
&lt;br /&gt;
#./check_nginx_status.pl       # .pl extension means perl programing language&lt;br /&gt;
&lt;br /&gt;
#./check_phpfpm_status.pl&lt;br /&gt;
&lt;br /&gt;
#./check_diskio.pl  # might be it will throw errors which is not installed supporting packages.&lt;br /&gt;
&lt;br /&gt;
Error will be Array/unique.pm missing&lt;br /&gt;
&lt;br /&gt;
# apt-cache search perl number::format             # to find pm extension packages list search using the above command format.&lt;br /&gt;
&lt;br /&gt;
# apr-cache search perl array::unique&lt;br /&gt;
&lt;br /&gt;
It will list package names and install it that.&lt;br /&gt;
&lt;br /&gt;
Similar way finds the missing packages and install it until there are no errors reported.&lt;br /&gt;
&lt;br /&gt;
# apt-get install libarray-unique-perl&lt;br /&gt;
&lt;br /&gt;
# ./check_diskio.pl     # without any error message it has to execute.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
20.	If Host server is using multi cores we have to copy check_cpu.py file from nagios to test-linux server&lt;br /&gt;
&lt;br /&gt;
#cd /home/nagios/bin/&lt;br /&gt;
&lt;br /&gt;
#. /check_cpu.py                   # py extension means python packages&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If the errors are reporting due to missing python packages install it.&lt;br /&gt;
&lt;br /&gt;
# apt-get install python-psutil&lt;br /&gt;
&lt;br /&gt;
Then it will be ok to monitor multiple cores which we did for Bleckmann MySQL which is having 32 cores.&lt;/div&gt;</summary>
		<author><name>152.57.149.69</name></author>
	</entry>
	<entry>
		<id>https://wiki.apoyar.eu/index.php?title=Adding_hosts_and_services_to_Nagios_-_Redhat_hosts&amp;diff=261</id>
		<title>Adding hosts and services to Nagios - Redhat hosts</title>
		<link rel="alternate" type="text/html" href="https://wiki.apoyar.eu/index.php?title=Adding_hosts_and_services_to_Nagios_-_Redhat_hosts&amp;diff=261"/>
		<updated>2022-12-05T08:56:15Z</updated>

		<summary type="html">&lt;p&gt;152.57.149.69: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Adding Redhat host to Nagios&lt;br /&gt;
--------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1.	Connect to Nagios  server (nagios.apoyar with neal username and apoyar.key)&lt;br /&gt;
&lt;br /&gt;
#cd /usr/local/etc/nagios/objects/machines&lt;br /&gt;
&lt;br /&gt;
#open and edit .cfg file (depending on whether we are adding host for Apoyar or other customers)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2.	Add the host name in member list to recognize Nagios probe for checks&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
Save file (:wq!) and exit vi editor&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
Go to below path&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
• cd /usr/local/etc/nagios/objects&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
• vi services.cfg&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3.	Add the new hostname to the services, which we need for new server in Nagios to monitor.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
Save file (:wq!) and exit vi editor&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
4.	Need to create user name with home folder for user&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#adduser nagios&lt;br /&gt;
&lt;br /&gt;
Set password for nagios to access from Nagios server &lt;br /&gt;
&lt;br /&gt;
#passwd nagios&lt;br /&gt;
&lt;br /&gt;
#cd /home/nagios&lt;br /&gt;
&lt;br /&gt;
#mkdir .ssh&lt;br /&gt;
&lt;br /&gt;
#mkdir bin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5.	After that need to change owner of those folder which is created by root.&lt;br /&gt;
&lt;br /&gt;
#chown nagios:nagios .ssh/ -R&lt;br /&gt;
&lt;br /&gt;
#chown nagios:nagios bin –R&lt;br /&gt;
&lt;br /&gt;
6. Copy public key (authorized_keys) file from any existing working server to access server password authentication less and change permissions on it as below&lt;br /&gt;
&lt;br /&gt;
chmod 500 /home/nagios/.ssh/authorized_keys&lt;br /&gt;
&lt;br /&gt;
chown nagios:nagios /home/nagios/.ssh/ authorized_keys&lt;br /&gt;
then try to ssh new server from nagios server (It should work)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
7. Need to install nagios packages on host machine&lt;br /&gt;
&lt;br /&gt;
yum install nagios-plugins&lt;br /&gt;
&lt;br /&gt;
yum install perl&lt;br /&gt;
&lt;br /&gt;
yum install python3-psutil&lt;br /&gt;
&lt;br /&gt;
ln -s /bin/python3 /usr/bin/python&lt;br /&gt;
&lt;br /&gt;
yum updateinfo&lt;br /&gt;
&lt;br /&gt;
dnf install perl-Array-Unique&lt;br /&gt;
&lt;br /&gt;
dnf install perl-File-Slurp&lt;br /&gt;
&lt;br /&gt;
dnf install perl-Number-Format&lt;br /&gt;
&lt;br /&gt;
dnf install perl-utils&lt;br /&gt;
&lt;br /&gt;
dnf install nagios-plugins-perl&lt;br /&gt;
&lt;br /&gt;
dnf install perl-LWP-Protocol-https&lt;br /&gt;
&lt;br /&gt;
8. Copy required plugins from existing server on new server into bin folder and change permissions on those plugins as below&lt;br /&gt;
&lt;br /&gt;
chmod 755 /home/nagios/bin/*&lt;br /&gt;
&lt;br /&gt;
chown nagios:nagios /home/nagios/bin/*&lt;br /&gt;
&lt;br /&gt;
9. Run below command on nagios server and check syntax errors with below command&lt;br /&gt;
&lt;br /&gt;
 /usr/local/bin/nagios -v /usr/local/etc/nagios/nagios.cfg&lt;br /&gt;
&lt;br /&gt;
10. If we got all errors and warning zero, then go to nagios dashboard (nagios.apoyar.eu) and restart the nagios process it.&lt;/div&gt;</summary>
		<author><name>152.57.149.69</name></author>
	</entry>
	<entry>
		<id>https://wiki.apoyar.eu/index.php?title=Adding_hosts_and_services_to_Nagios_-_Redhat_hosts&amp;diff=260</id>
		<title>Adding hosts and services to Nagios - Redhat hosts</title>
		<link rel="alternate" type="text/html" href="https://wiki.apoyar.eu/index.php?title=Adding_hosts_and_services_to_Nagios_-_Redhat_hosts&amp;diff=260"/>
		<updated>2022-12-05T08:33:36Z</updated>

		<summary type="html">&lt;p&gt;152.57.149.69: Created page with &amp;quot;Adding Redhat host to Nagios --------------------------------   1.	Connect to Nagios  server (nagios.apoyar with neal username and apoyar.key)  #cd /usr/local/etc/nagios/objects/machines  #open and edit .cfg file (depending on whether we are adding host for Apoyar or other customers)   2.	Add the host name in member list to recognize Nagios probe for checks    Save file (:wq!) and exit vi editor    Go to below path    • cd /usr/local/etc/nagios/objects    • vi servic...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Adding Redhat host to Nagios&lt;br /&gt;
--------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1.	Connect to Nagios  server (nagios.apoyar with neal username and apoyar.key)&lt;br /&gt;
&lt;br /&gt;
#cd /usr/local/etc/nagios/objects/machines&lt;br /&gt;
&lt;br /&gt;
#open and edit .cfg file (depending on whether we are adding host for Apoyar or other customers)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2.	Add the host name in member list to recognize Nagios probe for checks&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
Save file (:wq!) and exit vi editor&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
Go to below path&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
• cd /usr/local/etc/nagios/objects&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
• vi services.cfg&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3.	Add the new hostname to the services, which we need for new server in Nagios to monitor.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
Save file (:wq!) and exit vi editor&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
4.	Need to create user name with home folder for user&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#adduser nagios&lt;br /&gt;
&lt;br /&gt;
Set password for nagios to access from Nagios server &lt;br /&gt;
&lt;br /&gt;
#passwd nagios&lt;br /&gt;
&lt;br /&gt;
#cd /home/nagios&lt;br /&gt;
&lt;br /&gt;
#mkdir .ssh&lt;br /&gt;
&lt;br /&gt;
#mkdir bin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5.	After that need to change owner of those folder which is created by root.&lt;br /&gt;
&lt;br /&gt;
#chown nagios:nagios .ssh/ -R&lt;br /&gt;
&lt;br /&gt;
#chown nagios:nagios bin –R&lt;br /&gt;
&lt;br /&gt;
6. Copy public key (authorized_keys) file from any existing working server to access server password authentication less and change permissions on it as below&lt;br /&gt;
&lt;br /&gt;
chmod 500 /home/nagios/.ssh/authorized_keys&lt;br /&gt;
&lt;br /&gt;
chown nagios:nagios /home/nagios/.ssh/ authorized_keys&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
7. Need to install nagios packages on host machine&lt;br /&gt;
&lt;br /&gt;
yum install nagios-plugins&lt;br /&gt;
&lt;br /&gt;
yum install perl&lt;br /&gt;
&lt;br /&gt;
yum install python3-psutil&lt;br /&gt;
&lt;br /&gt;
ln -s /bin/python3 /usr/bin/python&lt;br /&gt;
&lt;br /&gt;
yum updateinfo&lt;br /&gt;
&lt;br /&gt;
dnf install perl-Array-Unique&lt;br /&gt;
&lt;br /&gt;
dnf install perl-File-Slurp&lt;br /&gt;
&lt;br /&gt;
dnf install perl-Number-Format&lt;br /&gt;
&lt;br /&gt;
dnf install perl-utils&lt;br /&gt;
&lt;br /&gt;
dnf install nagios-plugins-perl&lt;br /&gt;
&lt;br /&gt;
dnf install perl-LWP-Protocol-https&lt;br /&gt;
&lt;br /&gt;
8. Copy required plugins from existing server on new server into bin folder and change permissions on those plugins as below&lt;br /&gt;
&lt;br /&gt;
chmod 755 /home/nagios/bin/*&lt;br /&gt;
&lt;br /&gt;
chown nagios:nagios /home/nagios/bin/*&lt;/div&gt;</summary>
		<author><name>152.57.149.69</name></author>
	</entry>
	<entry>
		<id>https://wiki.apoyar.eu/index.php?title=Main_Page&amp;diff=259</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.apoyar.eu/index.php?title=Main_Page&amp;diff=259"/>
		<updated>2022-12-05T08:29:44Z</updated>

		<summary type="html">&lt;p&gt;152.57.149.69: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;strong&amp;gt;Apoyar Wiki main page.&amp;lt;/strong&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [[Infrastructure|Apoyar Infrastructure]]&lt;br /&gt;
* [[Complete step-by-step guides]]&lt;br /&gt;
* [[Developer guides]]&lt;br /&gt;
* [[Tips &amp;amp; Tricks]]&lt;br /&gt;
* [[Miscellaneous Information]]&lt;br /&gt;
* [[Installing Updates on Hyper V servers]]&lt;br /&gt;
* [[Connecting RDP servers, if license expired and extending grace period via regedit]]&lt;br /&gt;
* [[Website Hosting &amp;amp; SSL certificate installation]]&lt;br /&gt;
* [[Email Configuration and Issues (Windows)]]&lt;br /&gt;
* [[Providing SSL Certificates to Web Sites ]]&lt;br /&gt;
* [[Generating a LetsEncrypt certificate - both Linux and Windows]]&lt;br /&gt;
* [[Low Free Disk Space Issues (Windows, Linux, UNIX) &amp;amp; Resolution]]&lt;br /&gt;
* [[Zeb Live DB Restore Task]]&lt;br /&gt;
* [[Creating an SFTP user for www server]]&lt;br /&gt;
* [[Adding hosts and services to Nagios - Windows hosts]]&lt;br /&gt;
* [[Adding hosts and services to Nagios - Linux/BSD hosts]]&lt;br /&gt;
* [[Adding hosts and services to Nagios - Redhat hosts]]&lt;br /&gt;
* [[Upgrading from Windows 2008 R2 to 2016 - migrating MS SQL]]&lt;br /&gt;
* [[Upgrading major versions of Nginx,Mysql]]&lt;br /&gt;
* [[How to fix server authentication if it is broken( unable to login server)]]&lt;br /&gt;
* [[Snapshot restoration of VM&#039;s]]&lt;br /&gt;
* [[AWS CloudFront distributions Creation]]&lt;br /&gt;
* [[VPN configuration on organization level]]&lt;br /&gt;
* [[Fixing VM Issue from vcenter console with admin access in Clavister]]&lt;br /&gt;
* [[OS level checks on Nagios]]&lt;br /&gt;
* [[Certificate checks on Nagios]]&lt;br /&gt;
* [[SSL certificate CSR generation]]&lt;br /&gt;
* [[Applying a generated certificate on web server]]&lt;br /&gt;
* [[What if Office 365 doesn&#039;t respond to Magento test emails]]&lt;br /&gt;
* [[Killing CPU &#039;hungry&#039; processes on Zeb/PCR servers]]&lt;br /&gt;
* [[Auto Deployment from UAT to LIVE (dashboardsupportpod)]]&lt;br /&gt;
* [[Checking Failed Mails in Trend Micro]]&lt;br /&gt;
* [[Renewing Letsencrypt Certificate for Free BSD (nagios.apoyar)]]&lt;br /&gt;
* [[Upgrading Major Versions of PHP]]&lt;br /&gt;
* [[How to Make Dead RMG Back to Live (Scorpion)]]&lt;br /&gt;
* [[Disabling Expired Certificate on demo.apoyar]]&lt;br /&gt;
* [[How to Block 80 and 443 traffic for server]]&lt;br /&gt;
* [[AWS S3 Sync]]&lt;br /&gt;
* [[Checking System logs]]&lt;br /&gt;
* [[Root partition alerts]]&lt;br /&gt;
* [[SSL Certification Installation on Linux]]&lt;br /&gt;
* [[Renewing SSL Certificate on OpenVPN Server]]&lt;br /&gt;
* [[Updating the Demo server (has the outbound http/https traffic blocked)]]&lt;br /&gt;
* [[Performing restores from AWS using the N2WS backup software]]&lt;br /&gt;
* [[Renewing Commercial certificate on Exchange 2016-19]]&lt;br /&gt;
* [[Seizing the DC roles in the case the main DC fails]]&lt;br /&gt;
* [[Backend fetch failed 503 error &amp;amp; Webp,Webm conversion  little bit understandable]]&lt;br /&gt;
* [[Addidional steps to perform when moving services from one DC to another]]&lt;br /&gt;
* [[Check_defrag probe not working on Nagios]]&lt;br /&gt;
* [[JIRA File Upload issue]]&lt;br /&gt;
* [[Zeb_video sftp permissions check and fix]]&lt;br /&gt;
* [[Wise Geary Backups]]&lt;br /&gt;
* [[Extending Linux File System After Resizing the Volume – EC2]]&lt;br /&gt;
* [[Adding the missing host from HyperV console]]&lt;br /&gt;
* [[Setting Updates to Manual on HyperV]]&lt;br /&gt;
* [[awsbackup.apoyar.eu SSL Renew]]&lt;/div&gt;</summary>
		<author><name>152.57.149.69</name></author>
	</entry>
	<entry>
		<id>https://wiki.apoyar.eu/index.php?title=Main_Page&amp;diff=258</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.apoyar.eu/index.php?title=Main_Page&amp;diff=258"/>
		<updated>2022-12-05T08:29:22Z</updated>

		<summary type="html">&lt;p&gt;152.57.149.69: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;strong&amp;gt;Apoyar Wiki main page.&amp;lt;/strong&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [[Infrastructure|Apoyar Infrastructure]]&lt;br /&gt;
* [[Complete step-by-step guides]]&lt;br /&gt;
* [[Developer guides]]&lt;br /&gt;
* [[Tips &amp;amp; Tricks]]&lt;br /&gt;
* [[Miscellaneous Information]]&lt;br /&gt;
* [[Installing Updates on Hyper V servers]]&lt;br /&gt;
* [[Connecting RDP servers, if license expired and extending grace period via regedit]]&lt;br /&gt;
* [[Website Hosting &amp;amp; SSL certificate installation]]&lt;br /&gt;
* [[Email Configuration and Issues (Windows)]]&lt;br /&gt;
* [[Providing SSL Certificates to Web Sites ]]&lt;br /&gt;
* [[Generating a LetsEncrypt certificate - both Linux and Windows]]&lt;br /&gt;
* [[Low Free Disk Space Issues (Windows, Linux, UNIX) &amp;amp; Resolution]]&lt;br /&gt;
* [[Zeb Live DB Restore Task]]&lt;br /&gt;
* [[Creating an SFTP user for www server]]&lt;br /&gt;
* [[Adding hosts and services to Nagios - Windows hosts]]&lt;br /&gt;
* [[Adding hosts and services to Nagios - Linux/BSD hosts]]&lt;br /&gt;
[[Adding hosts and services to Nagios - Redhat hosts]]&lt;br /&gt;
* [[Upgrading from Windows 2008 R2 to 2016 - migrating MS SQL]]&lt;br /&gt;
* [[Upgrading major versions of Nginx,Mysql]]&lt;br /&gt;
* [[How to fix server authentication if it is broken( unable to login server)]]&lt;br /&gt;
* [[Snapshot restoration of VM&#039;s]]&lt;br /&gt;
* [[AWS CloudFront distributions Creation]]&lt;br /&gt;
* [[VPN configuration on organization level]]&lt;br /&gt;
* [[Fixing VM Issue from vcenter console with admin access in Clavister]]&lt;br /&gt;
* [[OS level checks on Nagios]]&lt;br /&gt;
* [[Certificate checks on Nagios]]&lt;br /&gt;
* [[SSL certificate CSR generation]]&lt;br /&gt;
* [[Applying a generated certificate on web server]]&lt;br /&gt;
* [[What if Office 365 doesn&#039;t respond to Magento test emails]]&lt;br /&gt;
* [[Killing CPU &#039;hungry&#039; processes on Zeb/PCR servers]]&lt;br /&gt;
* [[Auto Deployment from UAT to LIVE (dashboardsupportpod)]]&lt;br /&gt;
* [[Checking Failed Mails in Trend Micro]]&lt;br /&gt;
* [[Renewing Letsencrypt Certificate for Free BSD (nagios.apoyar)]]&lt;br /&gt;
* [[Upgrading Major Versions of PHP]]&lt;br /&gt;
* [[How to Make Dead RMG Back to Live (Scorpion)]]&lt;br /&gt;
* [[Disabling Expired Certificate on demo.apoyar]]&lt;br /&gt;
* [[How to Block 80 and 443 traffic for server]]&lt;br /&gt;
* [[AWS S3 Sync]]&lt;br /&gt;
* [[Checking System logs]]&lt;br /&gt;
* [[Root partition alerts]]&lt;br /&gt;
* [[SSL Certification Installation on Linux]]&lt;br /&gt;
* [[Renewing SSL Certificate on OpenVPN Server]]&lt;br /&gt;
* [[Updating the Demo server (has the outbound http/https traffic blocked)]]&lt;br /&gt;
* [[Performing restores from AWS using the N2WS backup software]]&lt;br /&gt;
* [[Renewing Commercial certificate on Exchange 2016-19]]&lt;br /&gt;
* [[Seizing the DC roles in the case the main DC fails]]&lt;br /&gt;
* [[Backend fetch failed 503 error &amp;amp; Webp,Webm conversion  little bit understandable]]&lt;br /&gt;
* [[Addidional steps to perform when moving services from one DC to another]]&lt;br /&gt;
* [[Check_defrag probe not working on Nagios]]&lt;br /&gt;
* [[JIRA File Upload issue]]&lt;br /&gt;
* [[Zeb_video sftp permissions check and fix]]&lt;br /&gt;
* [[Wise Geary Backups]]&lt;br /&gt;
* [[Extending Linux File System After Resizing the Volume – EC2]]&lt;br /&gt;
* [[Adding the missing host from HyperV console]]&lt;br /&gt;
* [[Setting Updates to Manual on HyperV]]&lt;br /&gt;
* [[awsbackup.apoyar.eu SSL Renew]]&lt;/div&gt;</summary>
		<author><name>152.57.149.69</name></author>
	</entry>
	<entry>
		<id>https://wiki.apoyar.eu/index.php?title=Adding_hosts_and_services_to_Nagios_-_Linux/BSD_hosts&amp;diff=257</id>
		<title>Adding hosts and services to Nagios - Linux/BSD hosts</title>
		<link rel="alternate" type="text/html" href="https://wiki.apoyar.eu/index.php?title=Adding_hosts_and_services_to_Nagios_-_Linux/BSD_hosts&amp;diff=257"/>
		<updated>2022-12-05T08:00:21Z</updated>

		<summary type="html">&lt;p&gt;152.57.149.69: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Adding Unix/Linux host to Nagios&lt;br /&gt;
--------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1.	Connect to Nagios  server (nagios.apoyar with neal username and apoyar.key)&lt;br /&gt;
&lt;br /&gt;
#cd /usr/local/etc/nagios/objects/machines&lt;br /&gt;
&lt;br /&gt;
#vi apoyar.cfg (depending on whether we are adding host for Apoyar or other customers)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2.	We did for apoyar unix server hostname (test-Linux)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3.	Copy the configuration format for linux server added before and e.dit the hostname and address for new host.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4.	Add the host name in member list to recognize Nagios probe for checks&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
Save file (:wq!) and exit vi editor&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
Go to below path&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
• cd /usr/local/etc/nagios/objects&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
• vi services.cfg&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5.	Add the new hostname to the services, which we need for new server in Nagios, for those services, which we need to monitor.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
6.	Go to that particular service configuration and enter new server name manually&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
Save file (:wq!) and exit vi editor&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: &lt;br /&gt;
&lt;br /&gt;
	Host machine should ping from Nagios server to confirm that servers are communicating each other.&lt;br /&gt;
&lt;br /&gt;
	One more thing that it can be SSH to test-Linux server from Nagios server without password.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
7.	Connect from test-Linux server from Nagios server using Nagios user account with password.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
8.	If user account is existing in test-Linux server it will access else it will not (due to Nagios user account doesn’t exist) &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
9.	Once configuration changes done on Nagios server, connect machine which you are adding to Nagios (test-Linux) server.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
10.	Need to create user name with home folder for user&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#adduser nagios&lt;br /&gt;
&lt;br /&gt;
Set password for nagios to access from Nagios server &lt;br /&gt;
&lt;br /&gt;
#passwd nagios&lt;br /&gt;
&lt;br /&gt;
#cd /home/nagios&lt;br /&gt;
&lt;br /&gt;
#mkdir .ssh&lt;br /&gt;
&lt;br /&gt;
#mkdir bin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
11.	After that need to change owner of those folder which is created by root.&lt;br /&gt;
&lt;br /&gt;
#chown nagios:nagios .ssh/ -R&lt;br /&gt;
&lt;br /&gt;
#chown nagios:nagios bin –R&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
12.	Copy public key (authorized_keys) file from any existing working server to access server password authentication less. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
13.	Once key file copied into test-Linux server.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
14.	Need to install nagios packages on host machine&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#dpkg –l | grep nagios # to check which packages to be installed&lt;br /&gt;
&lt;br /&gt;
Monitoring-plugins&lt;br /&gt;
&lt;br /&gt;
Nagios-plugins&lt;br /&gt;
&lt;br /&gt;
Using below commands&lt;br /&gt;
&lt;br /&gt;
# apt-get install nagios-plugins&lt;br /&gt;
&lt;br /&gt;
# apt-get install monitoring-plugins&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
15.	&lt;br /&gt;
&lt;br /&gt;
 So just will create soft links from actual installed folder to newly created bin folder on Nagios folder path.&lt;br /&gt;
&lt;br /&gt;
# ln –s /usr/lib/nagios/plugins/check_load /home/nagios/bin/&lt;br /&gt;
&lt;br /&gt;
# ln –s /usr/lib/nagios/plugins/check_users /home/nagios/bin/&lt;br /&gt;
&lt;br /&gt;
# ln –s /usr/lib/nagios/plugins/check_uptime /home/nagios/bin/&lt;br /&gt;
&lt;br /&gt;
# ln –s /usr/lib/nagios/plugins/check_disk /home/nagios/bin/&lt;br /&gt;
&lt;br /&gt;
# ln –s /usr/lib/nagios/plugins/check_swap /home/nagios/bin/&lt;br /&gt;
&lt;br /&gt;
# ln –s /usr/lib/nagios/plugins/check_procs /home/nagios/bin/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
16.	After that we need to copy some files from nagios server plugins folder path to hosted server into bin folder.&lt;br /&gt;
&lt;br /&gt;
Connect nagios server&lt;br /&gt;
&lt;br /&gt;
#su – nagios&lt;br /&gt;
&lt;br /&gt;
#cd plugins&lt;br /&gt;
&lt;br /&gt;
#scp check_debian_packages check_mem.pl check_uptime.sh test-Linux:/home/nagios/bin&lt;br /&gt;
&lt;br /&gt;
Once all these done change Nagios user account password on test-Linux server which we don’t use future as well it is more secure with password generator.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
17.	It will start checking service checks. If you want to add more services for monitoring like, Nginx, php, disk io status.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
18.	Copy check files from nagios server to test-Linux server bin path like above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#scp check_nginx_status.pl check_phpfpm_status.pl check_diskio.pl test-Linux:/home/nagios/bin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
19.	Once copied into test-Linux sevrer&lt;br /&gt;
&lt;br /&gt;
Execute those files&lt;br /&gt;
&lt;br /&gt;
# cd /home/nagios/bin&lt;br /&gt;
&lt;br /&gt;
#./check_nginx_status.pl       # .pl extension means perl programing language&lt;br /&gt;
&lt;br /&gt;
#./check_phpfpm_status.pl&lt;br /&gt;
&lt;br /&gt;
#./check_diskio.pl  # might be it will throw errors which is not installed supporting packages.&lt;br /&gt;
&lt;br /&gt;
Error will be Array/unique.pm missing&lt;br /&gt;
&lt;br /&gt;
# apt-cache search perl number::format             # to find pm extension packages list search using the above command format.&lt;br /&gt;
&lt;br /&gt;
# apr-cache search perl array::unique&lt;br /&gt;
&lt;br /&gt;
It will list package names and install it that.&lt;br /&gt;
&lt;br /&gt;
Similar way finds the missing packages and install it until there are no errors reported.&lt;br /&gt;
&lt;br /&gt;
# apt-get install libarray-unique-perl&lt;br /&gt;
&lt;br /&gt;
# ./check_diskio.pl     # without any error message it has to execute.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
20.	If Host server is using multi cores we have to copy check_cpu.py file from nagios to test-linux server&lt;br /&gt;
&lt;br /&gt;
#cd /home/nagios/bin/&lt;br /&gt;
&lt;br /&gt;
#. /check_cpu.py                   # py extension means python packages&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If the errors are reporting due to missing python packages install it.&lt;br /&gt;
&lt;br /&gt;
# apt-get install python-psutil&lt;br /&gt;
&lt;br /&gt;
Then it will be ok to monitor multiple cores which we did for Bleckmann MySQL which is having 32 cores.&lt;/div&gt;</summary>
		<author><name>152.57.149.69</name></author>
	</entry>
</feed>