service dependencies and failover
Phil Costelloe
philc at foundation-it.com
Fri Jun 1 15:59:56 CEST 2007
From: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Masoud
Tabrizi
> Trying to monitor db services in a cluster/failover environment using
check_oracle
> plug-in; all NRPE checks are done against the virtual IP of the DB; I
would like to
> enable the same services on the secondary host yet with a dependency
on the file
> system mount point which would make the DB available. Theoretically
once the file
> system is available then the services should become active on the
secondary host and
> inactive on the other.
>
> Any idea how to do this?
If I'm understanding what you want correctly, one way to do it would be
to write a wrapper script for the checks that would look first at
whether the filesystem is mounted. If it isn't, return OK and a message
like "Currently inactive". If it is, call the actual plugin requested
and return whatever that outputs.
Phil
--------------------------------------------------------
Phil Costelloe
Technical Consultant
philc at foundation-it.com
http://www.foundation-it.com
Foundation IT
Foundation Court
Old Street
Oare
Hermitage Berkshire RG18 9SE
Switch: +44 (0) 1635 203700
Helpdesk: +44 (0) 800 0121099
DDI: +44 (0) 1635 203719
Fax: +44 (0) 8700 543537
Mobile: +44 (0) 7884 236299
--------------------------------------------------------
This message contains confidential information and is intended only for Nagios-users at lists.sourceforge.net. If you are not Nagios-users at lists.sourceforge.net you should not disseminate, distribute or copy this e-mail. Please notify Foundation IT immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. Foundation IT therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.
Foundation IT
Registered Office: Foundation Court, Old Street, Oare, Hermitage, Berkshire, RG18 9SE
Registered in England Number 3281803
--------------------------------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list