After settinp up a DAPNET client for the POCSAG Amateur Radio paging network I was looking for some good source for interesting information to be sent to my pager. I already had a Nagios monitoring solution set up in order to monitor several D-Star service and repeaters in my area. So I wanted to get Nagios to inform me as soon as one of these services changes state to critical.
The solution is to implement a second method for nagios to send a notification. The original method to send an alarm via email was left as it is.
In order to accomplish this you need to define a notification command. On my Ubuntu 14.04.2 system it is defined in /etc/nagios3/command.cfg. I added:
The actual script that does send out the alarm is /usr/local/bin/nagios-funkruf.sh:
In order to use that script I defined a new contact in /etc/nagios3/conf.d/contacts_nagios2.cfg:
This contact is then added to a group named DF2ET (further down the same file):
The contact group “DF2ET” and thus the contact “df2et” gets informed via page and via email. This contact group can be used while defining services by just adding it to the contact_groups. For example:
That should make you end up with alarm calls via hampager.de and the DAPNET master run by RWTH Aachen.