This Nagios plugin tries to log into a given jabber server and reports status OK if it succeeds. It is able to connect to a hostname that is different from the domain part of the jabber ID, so it can be used to check particular servers from a jabber network.
The plugin can be downloaded at nagios-jabber.rb. Alternatively, you can check it out from github. You should place the file in the libexec directory of your nagios installation (probably /usr/local/nagios/libexec/) and make it executable for the user nagios is running as.
The plugin is written in ruby, so you will need a ruby installation on your monitoring server. Additionally, some ruby libraries are required:
./check_jabber_login -j <JID> [-p <password>] [-H <host>] [-P <port>] [-v]
or: ./check_jabber_login -h
-h, --help
Print this help message.
-j, --jid
Jabber ID to use for logging in.
-p, --password
Use this password for authenticating to the jabber server. If no password
is given, anonymous authentication will be assumed.
-H, --hostname
If you want the plugin to connect to a host that is different from the
domain part of the jabber id (e.g. to check a single jabber server from
a jabber network), use this option to specify it.
-P, --port
Use this port for connecting to the jabber server.
-v, --verbose
Print lots of text.
Feel free to contact us for any questions regarding this software.
Copyright 2009 Stephan Maka
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/gpl.txt.