{"id":5130,"date":"2013-06-14T20:44:15","date_gmt":"2013-06-14T18:44:15","guid":{"rendered":"https:\/\/ingmarverheij.com\/?p=5130"},"modified":"2013-11-30T12:44:58","modified_gmt":"2013-11-30T11:44:58","slug":"monitor-atlantis-ilio-via-snmp","status":"publish","type":"post","link":"https:\/\/ingmarverheij.com\/en\/monitor-atlantis-ilio-via-snmp\/","title":{"rendered":"Monitor Atlantis ILIO via SNMP"},"content":{"rendered":"<p>Atlantis <a href=\"https:\/\/www.atlantiscomputing.com\/products\/ILIOCenter\" target=\"_blank\">ILIO Center<\/a> can <strong>monitor <\/strong>the health and availability of ILIO Session- and <a href=\"https:\/\/ingmarverheij.com\/en\/demystifying-the-atlantis-ilio-replication-host-part-1\/\" target=\"_blank\">Replication hosts<\/a>. If necessary ILIO Center sends alerts via SMTP (aka Mail) or via a SNMP <strong>trap <\/strong>(push). However, if the ILIO Center experiences an unexpected shutdown or network connectivity is lost, a SNMP trap is never sent (or in case of lost of network connectivity: the monitoring system does not receive the trap).<\/p>\n<p>Additional monitoring can be done via <a href=\"https:\/\/en.wikipedia.org\/wiki\/Ping_(networking_utility)\" target=\"_blank\">ping<\/a> or by monitoring the state of the VM. However, verifying the availability of a machine via ping could result in false-positives and not each monitoring system can monitor the state of a VM, therefore you might want to monitor via SNMP polling (pull).<\/p>\n<p>A vanilla installation of Atlantis ILIO (Center) does not have an <a href=\"https:\/\/en.wikipedia.org\/wiki\/Simple_Network_Management_Protocol\" target=\"_blank\">SNMP<\/a> agent installed, therefore I wrote a script that can push the agent and\/or update the configuration. <em>You can find the <strong>download <\/strong>at the bottom of this article.<\/em><\/p>\n<p><!--more--><\/p>\n<h1>Packages<\/h1>\n<p>The script is assuming that the ILIO appliances are <strong><em>not<\/em> <\/strong>connected to the internet so the packages (the redistributables) are <strong>included <\/strong>in the download.<\/p>\n<p>Each product + version is a separate appliance, the version of some packages (like perl) differ. Therefore different versions of <a href=\"https:\/\/www.net-snmp.org\/\" target=\"_blank\">net-snmp<\/a> are installed.<\/p>\n<table width=\"414\" border=\"1\" cellspacing=\"0\" cellpadding=\"1\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"208\"><strong>Product<\/strong><\/td>\n<td valign=\"top\" width=\"57\"><strong>Version<\/strong><\/td>\n<td valign=\"top\" width=\"147\"><strong>net-snmp version<\/strong><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"208\">Atlantis ILIO Center<\/td>\n<td valign=\"top\" width=\"57\">4.0.19<\/td>\n<td valign=\"top\" width=\"147\">5.4.3~dfsg-2_amd64<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"208\">Atlantis ILIO for Diskless VDI<\/td>\n<td valign=\"top\" width=\"57\">3.2.0.5<\/td>\n<td valign=\"top\" width=\"147\">5.4.3~dfsg-2.7_amd64<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"208\">Atlantis ILIO Persistent VDI<br \/>\n<em>Session and Replication Host<\/em><\/td>\n<td valign=\"top\" width=\"57\">4.0.0.1<\/td>\n<td valign=\"top\" width=\"147\">5.4.3~dfsg-2.7_amd64<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><em>If you have a newer version and the script doesn\u2019t work, please run dpkg \u2013l and mail me the output.<\/em><\/p>\n<p>The benefit of including the packages in the script is that it\u2019s fast(er) and an internet connection is not required. The downside is that if Atlantis updates their appliances with a different Linux of Perl version, the script might need to be updated.<\/p>\n<p>&nbsp;<\/p>\n<h1>Configuration<\/h1>\n<p>A default configuration is applied allowing <strong>all machines <\/strong>to query only system and hrSystem group data using the community string <em>public <\/em>(default). The configuration is stored in the <em>snmpd.conf<\/em> file (see <a href=\"https:\/\/www.net-snmp.org\/docs\/man\/snmpd.examples.html\" target=\"_blank\">examples<\/a>) included in the download.<\/p>\n<p>For instance you might want to change the default<\/p>\n<pre> rocommunity public default -V systemonly<\/pre>\n<p>to<\/p>\n<pre> rocommunity mysecret 10.0.0.1 -V systemonly<\/pre>\n<p>to set the community string to <em>mysecret<\/em> and only allow host <em>10.0.0.1<\/em> to query the appliance. If you want to retrieve additional information, like processor, disk or memory usage, you might want to remove <span style=\"font-family: 'Courier New';\">-V systemonly<\/span>.<\/p>\n<p>The script is build so you can easily push the new configuration to your ILIO Center, Session- and Replication hosts.<\/p>\n<p>&nbsp;<\/p>\n<h1>Distribute and install<\/h1>\n<p>To use the script you need to upload the content of the archive (for download see the bottom of the article) to your ILIO Center machine using SCP (for instance <a href=\"https:\/\/winscp.net\/eng\/docs\/lang:nl\" target=\"_blank\">WinSCP<\/a>).<\/p>\n<ol>\n<li>Connect to your ILIO Center machine via SCP<\/li>\n<li>Upload the files to \/opt\/Support\/snmp<\/li>\n<li>Enable the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Filesystem_permissions#Symbolic_notation\" target=\"_blank\">eXecution bit<\/a> for InstallSNMP.py (0744)<\/li>\n<\/ol>\n<p><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2013\/06\/2013-06-13-15_03_49-snmp-rootSAHXSIC6598-WinSCP.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; margin: 0px 5px 0px 0px; display: inline; padding-right: 0px; border: 0px;\" title=\"\/opt\/Support\/snmp\" alt=\"\/opt\/Support\/snmp\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2013\/06\/2013-06-13-15_03_49-snmp-rootSAHXSIC6598-WinSCP_thumb.png\" width=\"265\" height=\"104\" border=\"0\" \/><\/a><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2013\/06\/2013-06-13-09_09_08-Eigenschappen-van-InstallSNMP.py_.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; margin: 0px 5px 0px 0px; display: inline; padding-right: 0px; border: 0px;\" title=\"InstallSNMP.py permissions\" alt=\"InstallSNMP.py permissions\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2013\/06\/2013-06-13-09_09_08-Eigenschappen-van-InstallSNMP.py_thumb.png\" width=\"86\" height=\"104\" border=\"0\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>To run the script you need to setup a terminal session via SSH and execute the InstallSNMP.py script.<\/p>\n<ol>\n<li>Connect to your ILIO Center machine via SSH<\/li>\n<li>Change the directory to \/opt\/Support\/snmp<\/li>\n<li>Execute the script .\/InstallSNMP<\/li>\n<\/ol>\n<p><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2013\/06\/2013-06-14-20_31_00-.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; margin: 0px 5px 0px 0px; display: inline; padding-right: 0px; border: 0px;\" title=\"2013-06-14 20_31_00-\" alt=\"2013-06-14 20_31_00-\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2013\/06\/2013-06-14-20_31_00-_thumb.png\" width=\"265\" height=\"68\" border=\"0\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h1>Usage<\/h1>\n<p>On execution the script will first ask you if you want to install (or update the configuration of) SNMP on the <em><strong>ILIO Center machine<\/strong>.<\/em><\/p>\n<p><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2013\/06\/Install-ILIO-Center.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; margin: 0px 5px 0px 0px; display: inline; padding-right: 0px; border: 0px;\" title=\"Install ILIO Center\" alt=\"Install ILIO Center\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2013\/06\/Install-ILIO-Center_thumb.png\" width=\"265\" height=\"86\" border=\"0\" \/><\/a><\/p>\n<p>Next it will ask if you want to update the other ILIO hosts (Session- and\/or <a href=\"https:\/\/ingmarverheij.com\/en\/demystifying-the-atlantis-ilio-replication-host-part-1\/\" target=\"_blank\">Replication hosts<\/a>). If yes, the script will ask for the master password. If you don\u2019t have a master password (the passwords are not equal for all hosts) just leave it blank, the script will ask for the password for each host.<\/p>\n<p><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2013\/06\/Install-other-hosts.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; margin: 0px 5px 0px 0px; display: inline; padding-right: 0px; border: 0px;\" title=\"Install other hosts\" alt=\"Install other hosts\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2013\/06\/Install-other-hosts_thumb.png\" width=\"265\" height=\"209\" border=\"0\" \/><\/a><\/p>\n<p>As mentioned in the previous chapter, in case SNMP is already installed (and running) the installation is skipped and only the new configuration is applied.<\/p>\n<p><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2013\/06\/Skip-if-installed.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; margin: 0px 5px 0px 0px; display: inline; padding-right: 0px; border: 0px;\" title=\"Skip if installed\" alt=\"Skip if installed\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2013\/06\/Skip-if-installed_thumb.png\" width=\"265\" height=\"152\" border=\"0\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h1 id=\"download\">Download<\/h1>\n<a  data-e-disable-page-transition=\"true\" class=\"download-link\" title=\"Version 1.0\" href=\"https:\/\/ingmarverheij.com\/en\/download\/5833\/?tmstv=1776618877\" rel=\"nofollow\" id=\"download-link-5833\" data-redirect=\"false\" >\n\tInstallSNMP.zip<\/a>\n\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>Atlantis ILIO Center can monitor the health and availability of ILIO Session- and Replication hosts. If necessary ILIO Center sends alerts via SMTP (aka Mail) or via a SNMP trap (push). However, if the ILIO Center experiences an unexpected shutdown or network connectivity is lost, a SNMP trap is never sent (or in case of [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-container-style":"default","site-container-layout":"default","site-sidebar-layout":"default","disable-article-header":"default","disable-site-header":"default","disable-site-footer":"default","disable-content-area-spacing":"default","footnotes":""},"categories":[557,303],"tags":[558,559,230,570],"class_list":["post-5130","post","type-post","status-publish","format-standard","hentry","category-atlantis-ilio","category-scripting_programming","tag-atlantis","tag-ilio","tag-monitoring","tag-snmp"],"_links":{"self":[{"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/posts\/5130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/comments?post=5130"}],"version-history":[{"count":5,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/posts\/5130\/revisions"}],"predecessor-version":[{"id":5873,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/posts\/5130\/revisions\/5873"}],"wp:attachment":[{"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/media?parent=5130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/categories?post=5130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/tags?post=5130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}