Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Nagios plugin to check the status of a Linode using the Linode API.

License

Notifications You must be signed in to change notification settings

Obsidian-StudiosInc/check_linode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

check_linode.sh

License Build Status

Nagios plugin to check the status of a Linode using the Linode API. Basic bash script using curl to check the status and return output for Nagios, and compatible.

Install

To install simply copy check_linode.sh into nagios plugins directory.

Example

wget https://raw.githubusercontent.com/Obsidian-StudiosInc/check_linode/master/check_linode.sh
chmod 755 check_linode.sh
mv check_linode.sh /usr/lib/nagios/plugins

Usage

CLI

To use simply run the script with a Linode API token using your linode's ID.

./check_linode.sh -t <token> -l <linode_id>

Nagios

For use in Nagios you can see the included example. You need to define a command to include the check_linode.sh. Then add the check to any hosts.

# check command
define command {
	command_name	check_linode
	command_line	$USER1$/check_linode.sh -t $_HOSTLINODE_TOKEN$ -l $_HOSTLINODE_ID$
}

Then add the check to any hosts.

# host template
define host {
        host_name				linode
        address                                 0.0.0.0
        _linode_token				007
        _linode_id				007
        check_command				check_linode
}

About

Nagios plugin to check the status of a Linode using the Linode API.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages