<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.apoyar.eu/index.php?action=history&amp;feed=atom&amp;title=OS_level_checks_on_Nagios</id>
	<title>OS level checks on Nagios - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.apoyar.eu/index.php?action=history&amp;feed=atom&amp;title=OS_level_checks_on_Nagios"/>
	<link rel="alternate" type="text/html" href="https://wiki.apoyar.eu/index.php?title=OS_level_checks_on_Nagios&amp;action=history"/>
	<updated>2026-07-20T14:09:32Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://wiki.apoyar.eu/index.php?title=OS_level_checks_on_Nagios&amp;diff=188&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;Ubuntu OS Release Check ------------------------  Login to server  •	cd /home/Nagios/bin/  •	ls  We can see here different file in red and purple color  - Purple color fil...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.apoyar.eu/index.php?title=OS_level_checks_on_Nagios&amp;diff=188&amp;oldid=prev"/>
		<updated>2021-06-30T11:14:46Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Ubuntu OS Release Check ------------------------  Login to server  •	cd /home/Nagios/bin/  •	ls  We can see here different file in red and purple color  - Purple color fil...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Ubuntu OS Release Check&lt;br /&gt;
------------------------&lt;br /&gt;
&lt;br /&gt;
Login to server&lt;br /&gt;
&lt;br /&gt;
•	cd /home/Nagios/bin/&lt;br /&gt;
&lt;br /&gt;
•	ls&lt;br /&gt;
&lt;br /&gt;
We can see here different file in red and purple color&lt;br /&gt;
&lt;br /&gt;
- Purple color file – Already installed plugins&lt;br /&gt;
&lt;br /&gt;
- Red color file – We have configured that&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Also we have created symlink for purple color files, which have already installed plugins.&lt;br /&gt;
&lt;br /&gt;
Purpose of symlink is, if installed some server updates or restarts server, then also we don’t have replace that plugins again at /home/Nagios/bin/&lt;br /&gt;
&lt;br /&gt;
If we have to check OS release, then run below command &lt;br /&gt;
&lt;br /&gt;
•	./check_os_release.py&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Configuring OS Release Check for Server&lt;br /&gt;
&lt;br /&gt;
Ex. for dev.apoyar&lt;br /&gt;
&lt;br /&gt;
Login to nagios.apoyar&lt;br /&gt;
&lt;br /&gt;
•	As nagios user and enter password (Locutus1)&lt;br /&gt;
&lt;br /&gt;
•	cd /plugins&lt;br /&gt;
&lt;br /&gt;
Copy python config file from Nagios.apoyar to dev.apoyar using below command&lt;br /&gt;
&lt;br /&gt;
•	scp  check_os_release.py dev.apoyar:/home/nagios/bin/&lt;br /&gt;
&lt;br /&gt;
Then exit Nagios user and login as neal&lt;br /&gt;
&lt;br /&gt;
•	su&lt;br /&gt;
&lt;br /&gt;
•	Password –  ap0yar&lt;br /&gt;
&lt;br /&gt;
•	Go to below path&lt;br /&gt;
&lt;br /&gt;
•	cd /usr/local/etc/nagios/objects/&lt;br /&gt;
&lt;br /&gt;
•	vi services.cfg&lt;br /&gt;
&lt;br /&gt;
and add server name (ApoyarDev) under OS Release in hostnames&lt;br /&gt;
&lt;br /&gt;
save and exit file (:wq!)&lt;br /&gt;
&lt;br /&gt;
Run below command for syntax error check&lt;br /&gt;
&lt;br /&gt;
•	/usr/local/bin/nagios -v /usr/local/etc/nagios/nagios.cfg&lt;br /&gt;
&lt;br /&gt;
And at last restart Nagios process fom nagios.apoyar.net&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>