Plugin check_oracle_health

Claudio Kuenzler ck at claudiokuenzler.com
Wed Nov 7 16:48:11 CET 2012


> So my question for someone who has made check_oracle_healt work is:
> How come all 4 invocation from CLI as nagios user work, but when Nagios
> runs them, only 2 of them work.
> I know that the error message tells me that there is some env variable
> path problem, but why are the first 2 calls of check_oracle_healt work then?
>
>
Can you, for completion, show your command definitions as well as the
service definition?

Just fyi: On my installation I used a different way to use --connect, I
used EZCONNECT.
See:
http://labs.consol.de/lang/de/blog/uncategorized/check_oracle_health-kann-ezconnect/

My command definition:

# check_oracle_health
define command {
    command_name    check_oracle_health
    command_line    $USER1$/check_oracle_health --username $USER3$
--password $USER4$ --mode $ARG1$ --connect $HOSTADDRESS$:$ARG2$/$ARG3$
    }

And one of the service definitions:

# Check Oracle
define service{
        use                            generic-service
        host_name                 myoraserver
        service_description      Oracle Connections
        check_command
check_oracle_health!connected-users!1521!SERVICENAME
        }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20121107/bfc116c0/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
-------------- next part --------------
_______________________________________________
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