Trouble setting up Nagios to monitor Oracle services I've got an install of Nagios XI that doesn't seem to want to talk to any of my Oracle services here. I've pulled out the monitoring command and am running it manually, after setting ORACLE_HOME and LD_LIBDRARY_PATH of course, but it keeps generating the following error:

/usr/local/nagios # libexec/check_oracle_health --connect "oracle-server:1551" --username user --password "pass" --name OFFDB1 --mode tablespace-can-allocate-next --warning 20 --critical 30
CRITICAL - cannot connect to oracle-server:1551. ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA (DBD ERROR: OCIServerAttach)


I'm still fairly new to Oracle, but my googlings seem to indicate that SERVICE_NAME should match the GLOBAL_DBNAME in listener.ora, which is OFFDB1. Do I need to do something else here like modify the connect string?

As a note, there are multiple instances of oracle sharing the target box, but each seems to be intalled to separate partitions and are running their own listeners or various ports.
As Phil mentioned, I created $ORACLE_HOME/network/admin and tnsnames.ora.  I have something like this:

OFFDB1 =
  (DESCRIPTION =
    (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = oracle-server)(PORT = 1551))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = OFFDB1)
    )
  )


I then modified the monitoring commands:

/usr/local/nagios# libexec/check_oracle_health --connect=OFFDB1 --username user 
    --password "pass" --mode tablespace-can-allocate-next --warning 20 --critical 30