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:
1 2 3 4
The actual script that does send out the alarm is /usr/local/bin/nagios-funkruf.sh:
1 2 3 4 5 6 7 8 9 10
In order to use that script I defined a new contact in /etc/nagios3/conf.d/contacts_nagios2.cfg:
1 2 3 4 5 6 7 8 9
This contact is then added to a group named DF2ET (further down the same file):
1 2 3 4 5
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:
1 2 3 4 5
That should make you end up with alarm calls via hampager.de and the DAPNET master run by RWTH Aachen.