<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Sig-I/O (Berichten over monitoring)</title><link>https://sig-io.nl/</link><description></description><atom:link href="https://sig-io.nl/nl/categories/monitoring.xml" rel="self" type="application/rss+xml"></atom:link><language>nl</language><copyright>Contents © 2022 &lt;a href="mailto:mark@sig-io.nl"&gt;Mark Janssen&lt;/a&gt; </copyright><lastBuildDate>Wed, 02 Mar 2022 20:43:24 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>A simple NRPE alternative, based on bash, cron and NSCA</title><link>https://sig-io.nl/nl/posts/a-simple-nrpe-alternative-based-on-bash-cron-and-nsca/</link><dc:creator>Mark Janssen</dc:creator><description>&lt;p&gt;Monitoring remote hosts with Nagios can be done with various methods, ranging from snmp, ssh, nrpe, of a custom solution. To monitor some ‘black-box’ appliances with a very minimal OS-environment it wasn’t possible to install/run the NRPE agent. Since I seem to be using more and more passive nagios checks with the nagios service check acceptor (NSCA), it seemed like a good idea to try and use that.&lt;/p&gt;
&lt;p&gt;I copied most of the checks to the system and setup the NSCA configuration (/etc/send_nsca.cfg), then I created a simple bash script which is scheduled to run from cron and loops through a list of service-checks to execute.&lt;/p&gt;
&lt;p&gt;The check-results are then fed into send_nsca to finally arrive at the monitoring system. This way you only need to allow incoming traffic on 1 port to the nagios monitoring host and have no connections going into the device being monitored.&lt;/p&gt;
&lt;p&gt;Update: The code has been updated and moved to my github account. You can find it at: &lt;a class="reference external" href="https://github.com/sigio/sysadmin"&gt;https://github.com/sigio/sysadmin&lt;/a&gt; in the files monitor.sh and monitor.rc&lt;/p&gt;</description><guid>https://sig-io.nl/nl/posts/a-simple-nrpe-alternative-based-on-bash-cron-and-nsca/</guid><pubDate>Mon, 08 Oct 2012 21:01:54 GMT</pubDate></item></channel></rss>