Quantcast
Channel: HowTo’s – phaq
Viewing all articles
Browse latest Browse all 13

Nagios/Icinga Plugin to check for DokuWiki Updates

$
0
0

Nagios/Icinga can also serve to send you friendly remindes, like for example that you need to perform software updates.

Here’s my little contribution, a simple plugins to monitor a given DokuWiki site and check against the release server for any upgrades.

Just fetch the check_dokuwiki-0.1 tarball and extract the check_dokuwiki script to your Nagios/Icinga plugin directory.
Then add a command config like this:

# 'check_dokuwiki' command definition
define command{
        command_name	check_dokuwiki
        command_line	/usr/local/libexec/nagios/check_dokuwiki -H $HOSTNAME
	}

Then simply add a service to one or more of your DokuWiki hosts (or hostgroups, whatever you prefer).

define service{
        use                     generic-service
        host_name               your_wiki_host_objects_list_here
        service_description     dokuwiki_version
        check_command           check_dokuwiki
        max_check_attempts      5
        check_interval          5
        retry_interval          3
        check_period            24x7
        notification_interval   0
        notification_period     24x7
        notification_options    w,c,r
        }

Restart Nagios/Icinga and you’re done.

Happy monitoring :-)


Viewing all articles
Browse latest Browse all 13

Trending Articles