[arm-allstar] Nagios Client Packages?
Lee Woldanski
ve7fet at tparc.org
Sun Dec 24 10:10:11 EST 2017
Hi Doug,
I'm not knocking the reliability of Asterisk/Allstar.
That said, there is continual development on the software and packages.
There is always the risk of something going sideways.
It may have nothing to do at all with the software issues, it could ice on
the microwave link antenna killing ethernet to the site, or someone
unplugging the wrong cable on the switch to plug in their laptop looking
for internet.
I have Nagios running and checking the health of all the devices in our
network that I am concerned with, microwave link radios, switches, servers,
etc. This is just another box to add to the monitoring system. I even run
NRPE checks on remote packet nodes over 19k2 UHF links to ensure they are
alive and well.
I'd rather have Nagios tell me that something is not right with my
repeater, than my users. One of the golden rules of working in telecom is,
"don't let your users tell you that you have a problem". :)
Merry Christmas!
Lee
On Sat, Dec 23, 2017 at 7:41 PM, "Doug Crompton via arm-allstar" <
arm-allstar at hamvoip.org> wrote:
> 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
> >
> _______________________________________________
>
> 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
More information about the arm-allstar
mailing list