Discussion:
[rsnapshot-discuss] monitoring, nagios plugins
Marcus Schopen
2014-09-05 16:25:45 UTC
Permalink
Hi,

are there any good nagios plugins or other monitoring scripts to verify
rsnapshot runs?

Ciao
Marcus
Christopher Barry
2014-09-05 20:23:15 UTC
Permalink
On Fri, 05 Sep 2014 18:25:45 +0200
Post by Marcus Schopen
Hi,
are there any good nagios plugins or other monitoring scripts to verify
rsnapshot runs?
Ciao
Marcus
<snip...>

So, there's this cool tool called google.

http://exchange.nagios.org/directory/Plugins/Backup-and-Recovery/rsnapshot#/

found this in less time than it took for you to ask.

--
Regards,
Christopher Barry

Random geeky fortune:
Corry's Law:
Paper is always strongest at the perforations.
Marcus Schopen
2014-09-08 17:20:47 UTC
Permalink
Hi Christopher,
Post by Christopher Barry
On Fri, 05 Sep 2014 18:25:45 +0200
Post by Marcus Schopen
Hi,
are there any good nagios plugins or other monitoring scripts to verify
rsnapshot runs?
Ciao
Marcus
<snip...>
So, there's this cool tool called google.
http://exchange.nagios.org/directory/Plugins/Backup-and-Recovery/rsnapshot#/
found this in less time than it took for you to ask.
Thanks a lot for your remote hands service. I know those scripts; I
should have written that.

The only one on nagios exchange which seems up to date is
"check_rsnapshot.php" which is php based and I don't want to install php
on a backup server.

Ciao
Marcus
Paul Mackinney
2014-09-09 20:52:37 UTC
Permalink
Post by Christopher Barry
So, there's this cool tool called google.
Could you provide the URL next time? I had to look it up on Bing ;-}
Post by Christopher Barry
I don't want to install php on a backup server
Don't see why not. You don't have to install the whole LAMP package -- by
itself PHP is just an interpreted scripting language.

As it happens I do use Nagios, and have written some custom monitors
(connect to the Areca RAID via SNMP & extract status, temp, & fan speed --
it's a horrible hack). But it never occurred to me to do that for
Rsnapshot. I just check the logs every morning.

I'm curious if anyone has a clear grasp of a spec for parsing the Rsnapshot
log into a Nagios status. I run my sync operations in a wrapper that
continues on exit code 0 or 2, so I'd want something different than people
who don't use sync_first or aren't willing to ignore the 2 exit code.

Still, this thread got me thinking, thank! PM
Post by Christopher Barry
Hi Christopher,
Post by Christopher Barry
On Fri, 05 Sep 2014 18:25:45 +0200
Post by Marcus Schopen
Hi,
are there any good nagios plugins or other monitoring scripts to verify
rsnapshot runs?
Ciao
Marcus
<snip...>
So, there's this cool tool called google.
http://exchange.nagios.org/directory/Plugins/Backup-and-Recovery/rsnapshot#/
Post by Christopher Barry
found this in less time than it took for you to ask.
Thanks a lot for your remote hands service. I know those scripts; I
should have written that.
The only one on nagios exchange which seems up to date is
"check_rsnapshot.php" which is php based and I don't want to install php
on a backup server.
Ciao
Marcus
------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
rsnapshot-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
--
Paul Mackinney
Systems & Quality Manager
O.N. Diagnostics, LLC
2150 Shattuck Ave. Suite 610, Berkeley, CA 94704
510-204-0688 (phone) | 510-356-4349 (fax)
_____________________________________________
If you receive this message in error, please delete it immediately. This
message may contain information that is privileged, confidential and exempt
from disclosure and dissemination under applicable law.
James Abbott
2014-09-11 13:36:17 UTC
Permalink
Hello,
Post by Paul Mackinney
I'm curious if anyone has a clear grasp of a spec for parsing the
Rsnapshot log into a Nagios status. I run my sync operations in a
wrapper that continues on exit code 0 or 2, so I'd want something
different than people who don't use sync_first or aren't willing to
ignore the 2 exit code.
This thread has prompted me to finally submit my nagios rsnapshot plugin
to nagios exchange. It is perl-based, and works by parsing various
values from the rsnapshot config file, and reports primarily based upon
the last entry for each interval in the logfile, so if a problem
occurred on a daily snapshot, this would be in a warning state until the
next time this interval ran, whereas errors in weekly/monthly intervals
persist for rather longer unless you manually fix the problem and rerun
them. It also tracks the number of snapshots existing on disk matches
those listed in the configuration.

We've been using this to monitor >20 different rsnapshot configurations
for a number of years now, and it seems to work ok for our purposes in
that is draws attention to backups situations which should be double
checked. You still need to keep an eye on your nagios monitoring since
errors reported by frequent backup intervals don't hang around for that
long!

The submission to nagios exchange is currently pending approval, but if
anyone wants to try it before it appears up there, drop me a message
off-list rather than be spamming the list with attachments...

Cheers,
James
--
Dr. James Abbott
Lead Bioinformatician
Bioinformatics Support Service
Imperial College, London
Marcus Schopen
2016-01-18 10:08:51 UTC
Permalink
Post by Marcus Schopen
Hi,
are there any good nagios plugins or other monitoring scripts to verify
rsnapshot runs?
just some feedback after a while: I use check_logfiles [1] with "sticky"
option to search rsnapshot logs for warning or error messages and
standard plugin check_file_age to monitor rotation/timestamps of
rsnapshot dirs.

Ciao!

[1] https://labs.consol.de/de/nagios/check_logfiles/index.html

Loading...