Nagios/Icinga GroupWise Plugin

0 Likes
Since GroupWise is not running under NetWare anymore and snmp is not the safest art of monitoring I wrote a plugin for nagios / icinga / shinken to monitor the GroupWise agents.

New download location: https://github.com/pdeneu/monitoringplugins

All checks are based on the http pages of the agent.

Based on different situations it's also possible to change port, enable/disable ssl, and use authentication pair.

In Version 0.9 the following options are available:
./check_groupwise.pl --help
Usage:
check_groupwise.pl -H <groupwise-server> [-S] [-u <user>] [-p <password]
[-P <port>] -m <mode> -l <command> [-w <warning>] [-c <critical>] [-V]
[-h]

Plugin to monitor GroupWise 2012 MTA, POA and GWIA
Options:
-H|--hostname
GroupWise Server Hostname or IP-Address

-S|--ssl
To use secure HTTPS connection

-u|--user
User for Agent HTTP Interface

-p|--password
Password for Agent HTTP Interface

-m|--mode
Type of agent to monitor: mta, poa, gwia

-P|--port
Port

-l|--command

Command for specified agent:
- MTA:
\- info
- process and version info
\- links
- status of mta links
\- uptime
- uptime of mta
\- msgprocessed
- messages processed since start
\- msgprocessed10
- messages processed last 10 minutes

- GWIA:
\- uptime
- uptime of gwia
\- queues
- e-mail queues of gwia
\- stats
- e-mail statistics of gwia since start
\- stats10
- e-mail statistics of gwia last 10 minutes

- POA:
\- uptime
- uptime of poa
\- users
- count of connected users

-h|--help
print help page

-V|--version
print plugin version

I've tested it with GroupWise 8 and GroupWise 2012, installed in english. If you've got problems or/and errors please report them to me with your GroupWise version and your language installed. It would also be nice to get the sourcecode from your http page.

I'm thankful for all your feedback and responses.

Labels:

How To-Best Practice
Comment List
  •  

    This looks like what I need to monitor GW.

    However my GW version is 18.2. Does it work with this version?

    And running with perl5 (revision 5 version 16 subversion 3) gives

    # ./check_groupwise.pl -H gwpoa -u admin -p password -m poa -l uptime
    Use of uninitialized value $1 in multiplication (*) at ./check_groupwise.pl line 332.
    Use of uninitialized value $2 in multiplication (*) at ./check_groupwise.pl line 332.
    Use of uninitialized value $3 in multiplication (*) at ./check_groupwise.pl line 332.
    Use of uninitialized value $poaname in concatenation (.) or string at ./check_groupwise.pl line 333.
    OK - up since 0 seconds|uptime=0;;;;
    # ./check_groupwise.pl -H gwpoa -u admin -p password -m poa -l users
    Use of uninitialized value $users in concatenation (.) or string at ./check_groupwise.pl line 350.
    Use of uninitialized value $users in concatenation (.) or string at ./check_groupwise.pl line 350.
    OK - connected C/S Users|users=;0;

    other errors with the gwia and mta modes also

  •  
    Dear Philipp, any news for the 2014 version ?

    Thanks,
    Patrice
  •   in reply to MigrationDeletedUser
    i am interresting in testing the 2014 version. Tx. Patrice
  •   in reply to ghoman
    Hey,

    yes theres a new version but i cant realy test if its stil compatible with older version.
    I can give you a test file if you want.

    Regards,
    Philipp
  •  
    Any update on a GroupWise 2014 version? Thanks.
  •   in reply to MigrationDeletedUser
    Hey,

    thank you.
    I’m working on the 2014 Version but there are some changes in the interfaces.
    Maybe i will use the new groupwise api instead of the html interfaces.

    regards,
    Philipp
  •  
    Hey,

    thank you.
    I'm working on the 2014 Version but there are some changes in the interfaces.
    Maybe i will use the new groupwise api instead of the html interfaces.

    regards,
    Philipp
  •  
    Nice plugin... Well done.

    Will it work on 2014?
  •  
    Very well done !!!
  •  
    Nice plugin, it appears the -w and -c are not being honored.

    ./check_groupwise.pl -H gwia-IP-here -u XXX -p XXXX -m gwia -l queues -w 30 -c 60
    CRITICAL - Outboundqueue: 0 Inboundqueue: 0 Sendqueue: 0 Receivequeue: 25 Delayedqueue: 0|outboundmsgqueue=0;10;25;0; inboundmsgqueue=0;10;25;0; smtpsendqueue=0;10;25;0; smtpreceivequeue=25;10;25;0; delayedmsqqueue=0;25;50;0;
Related
Recommended