Skip to content

Python script to have Nagios check the online status of a DAPNET transmitter

Notifications You must be signed in to change notification settings

pe2kmv/check_dapnet_tx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

check_dapnet_tx

Python script to have Nagios check the online status of a DAPNET transmitter

Python version

This script is based on Python 3

Usage

From the command line

python check_dapnet_tx.py -t ab0cde

Within Nagios

Copy the script to the libexec directory. Then create a new command in the file commands.cfg

define command {
	command_name    check_dapnet_tx
  	command_line	python3 /usr/local/nagios/libexec/check_dapnet.py -t $ARG1$
}

Add the status check as service of the DAPNET host by editing the file [hostname].cfg (and add parameters as you like)

define service {
        use                     local-service
        host_name               you_host_name
        service_description     DAPNET TX Status
        check_command           check_dapnet_tx!ab0cde
        contact_groups          admins
}

About

Python script to have Nagios check the online status of a DAPNET transmitter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages