On Tue, 20 Aug 2013, Joao Eduardo Luis wrote:
> On 08/20/2013 10:24 AM, Valery Tschopp wrote:
> > Hi,
> >
> > For the ones using Nagios to monitor their ceph cluster, I've written a
> > 'ceph health' Nagios plugin:
> >
> > https://github.com/valerytschopp/ceph-nagios-plugins
> >
> > The plugin is written in python, and allow to specify a client user id
> > and keyring to execute the plugin as user 'nagios' or other...
>
> Might be interesting to point out that those informations are available in a
> structured format, if you specify '--format <json|xml>'.
>
> With Dumpling, all monitor commands now support formatted output as well.
There is another plugin here:
https://github.com/ceph/ceph-nagios-plugin
It also doesn't use the structured output, IIRC.
Ideally one or the other of these should make it upstream into the nagios
plugin archive...
Thanks!
sage
>
> -Joao
>
> >
> > Usage
> > -----
> >
> > usage: check_ceph_health [-h] [-e EXE] [-c CONF] [-m MONADDRESS] [-i ID]
> > [-k KEYRING] [-d]
> >
> > 'ceph health' nagios plugin.
> >
> > optional arguments:
> > -h, --help show this help message and exit
> > -e EXE, --exe EXE ceph executable [/usr/bin/ceph]
> > -c CONF, --conf CONF alternative ceph conf file
> > -m MONADDRESS, --monaddress MONADDRESS
> > ceph monitor address[:port]
> > -i ID, --id ID ceph client id
> > -k KEYRING, --keyring KEYRING
> > ceph client keyring file
> > -d, --detail exec 'ceph health detail'
> >
> >
> > Example
> > -------
> >
> > nagios$ ./check_ceph_health --id nagios --keyring client.nagios.keyring
> > HEALTH WARNING: 1 pgs degraded; 1 pgs recovering; 1 pgs stuck unclean;
> > recovery 4448/28924462 degraded (0.015%); 2/9857830 unfound (0.000%);
> > nagios$ echo $?
> > 1
> >
> >
> > Any comments is welcome
> >
> > Cheers,
> > Valery
> >
> >
> >
> >
> > _______________________________________________
> > ceph-users mailing list
> > [email protected]
> > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
> >
>
>
> --
> Joao Eduardo Luis
> Software Engineer | http://inktank.com | http://ceph.com
> _______________________________________________
> ceph-users mailing list
> [email protected]
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>
>
_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com