[arm-allstar] Nagios Client Packages?

Doug Crompton wa3dsp at gmail.com
Sat Dec 23 22:41:15 EST 2017


Lee,

 Just in case you haven't been using the hamvoip Allstar code for very
long... It is very reliable. I didn't want people to get the wrong
impression. I have many nodes running some with uptimes approaching a year
and hubs with 50+ users. These are on good UPS's and emergency generator
power. If you are experiencing failures and you are using hamvoip code you
probably have other issues beyond the software.


*73 Doug*

*WA3DSP*

*http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*


On Sat, Dec 23, 2017 at 7:57 PM, "Lee Woldanski via arm-allstar" <
arm-allstar at hamvoip.org> wrote:

> Ok, here is an update to close the loop.
>
> I have Nagios running on a server on our network, so all I wanted to do is
> be able to check my Allstar Pi, make sure it is alive, and make sure
> Asterisk is running. That calls for getting NRPE running on the Pi.
>
> Basic how-to on getting this going...
>
> Install the required packages from the available repository:
> pacman -S monitoring-plugins nrpe
>
>
> Edit /etc/nrpe/nrpe.cfg:
>
> Add your Nagios server to the allowed hosts...
> allowed_hosts=44.128.1.1,127.0.0.1
>
> Need to set this to 1:
> dont_blame_nrpe=1
>
> If you want to check the hard disk (flash card) and make sure it isn't
> getting full, hda1 isn't on dev/hda1, it is on mmcblk0p1... (just change
> the /dev so that stock scripts can still check_hda1):
> command[check_hda1]=/usr/lib/monitoring-plugins/check_disk -w 20% -c 10%
> -p
> /dev/mmcblk0p1
>
> Add a custom command down at the bottom to make sure one and only one
> process called 'asterisk' is running:
> command[check_asterisk]=/usr/lib/monitoring-plugins/check_procs -c 1:1 -C
> asterisk
>
> Save nrpe.cfg.
>
>
> Edit /etc/openvpn/firewall and add:
>
> ### Allow all Internet traffic for Nagios
> $IPTABLES -A INPUT -p tcp --dport 5666 -j ACCEPT
>
> ### Allow ICMP traffic from internet
> $IPTABLES -A INPUT -p ICMP --icmp-type 8 -j ACCEPT
>
> Run /etc/openvpn/firewall to re-load the firewall rules.
>
>
> Edit /etc/rc.local and add:
>
> # Start NRPE so Nagios can monitor us
> /usr/bin/nrpe -c /etc/nrpe/nrpe.cfg -d
>
> Start NRPE up, (/usr/bin/nrpe -c /etc/nrpe/nrpe.cfg -d).
>
>
> Now, go to your Nagios server and create your necessary object config file
> to monitor this new host. You can now use "check_command
>  check_nrpe!check_asterisk" to check if Asterisk is running on the Pi.
>
>
> Cheers!
>
>
> Lee
>
>
> On Sun, Dec 17, 2017 at 6:34 PM, "Don Backstrom AA7AU via arm-allstar" <
> arm-allstar at hamvoip.org> wrote:
>
> > On Sun 17-Dec-17 16:29, "Lee Woldanski via arm-allstar" wrote:
> >
> >> Has anyone got the Nagios client tools (nrpe) running on their Pi, yet?
> >>
> >
> >         I have had an on-going instance of Nagios3 service running on
> > Rasparian (Wheezy/Jesse) on a rPi (v1) for several years, monitoring a
> > number of different switches/servers/services in different locations -
> and
> > it really works great. It even includes some terrific internal monitoring
> > on the PI itself (even for the original Pi-1 models).
> >
> >         While it's been on my to-do list, I have not yet attempted an
> > install with the Hamvoip/Archlinux rPi3 so I can't add much to your
> > specific question. I will be *very* interested in what others have to add
> > in response to your question. Also it's on my list to use for my new
> AREDN
> > MeshNet proof-of-concept system.
> >
> >         In general, Nagios3 is a terrific add-on and well worth the
> effort
> > to configure/install as a linux-based service.
> >
> >         Cheers,
> >
> >         - Don - AA7AU
> > _______________________________________________
> >
> > arm-allstar mailing list
> > arm-allstar at hamvoip.org
> > http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
> >
> > Visit the BBB and RPi2/3 web page - http://hamvoip.org
> >
>
>
>
> --
> Lee Woldanski, AScT
> VE7FET
> _______________________________________________
>
> arm-allstar mailing list
> arm-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3 web page - http://hamvoip.org
>


More information about the arm-allstar mailing list