Monitoring solution for drop/create of clone database.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
prateekagr1988
Posts: 62
Joined: Fri Sep 26, 2014 7:21 pm

Monitoring solution for drop/create of clone database.

Post by prateekagr1988 »

Please suggest if we there is a Nagios monitoring solution for drop/create of a clone database.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Monitoring solution for drop/create of clone database.

Post by sreinhardt »

Are you asking if nagios can drop and\or copy a database?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
prateekagr1988
Posts: 62
Joined: Fri Sep 26, 2014 7:21 pm

Re: Monitoring solution for drop/create of clone database.

Post by prateekagr1988 »

No.. we are performing a clone of database, and there are unix scripts (NetApp snapshot) running which creates/drops the clone.. we require a monitoring solution so as to ensure the create/drop has taken place correctly.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Monitoring solution for drop/create of clone database.

Post by tmcdonald »

If there is a Unix script you could edit, it should be pretty trivial to have it send a passive check back to Nagios using NRDP or something similar:

http://assets.nagios.com/downloads/nrdp ... erview.pdf
http://assets.nagios.com/downloads/nagi ... ith_XI.pdf
Former Nagios employee
prateekagr1988
Posts: 62
Joined: Fri Sep 26, 2014 7:21 pm

Re: Monitoring solution for drop/create of clone database.

Post by prateekagr1988 »

Hello.

In this case a database is created at a specific time in the morning, and dropped at another specific time in the evening.
Is there an option to monitor the database creation and drop ?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Monitoring solution for drop/create of clone database.

Post by slansing »

As has been mentioned, you could modify the script to add support for passively sending a check result to your Nagios server. Alternatively, you could create a plugin and either actively call it from XI to check a metric which tells you if the database has been created, or dropped, and then return that to you, or have it passively ran by cron via NRDP twice a day to check the same metric. Alternatively, depending on the software, you may be able to find a plugin that will already do that for you here:

http://exchange.nagios.org/
Locked