Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6816805
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:58:11+00:00 2026-05-26T20:58:11+00:00

I have a postgres function that returns two columns result, data (int), (text) If

  • 0

I have a postgres function that returns two columns

result, data
(int), (text)

If I run this command from postgres it returns the proper values and if I run it from the linux command line like this:

/usr/local/nagios/libexec/check_postgres.pl -H $HOSTADDRESS$ -u postgres -db monitordb –action=custom_query –critical=1 –query=”SELECT * from ops_get_status();”

It also return the proper values – at least it seems to and I don’t get any errors.

But when I insert it in the commands.cfg and watch this through the Nagios frontend
it return (null).

The log file doesn’t contain any detailed information for debugging this. So, what can I do to get to the bottom of this issue – any help greatly appreciated

result

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T20:58:11+00:00Added an answer on May 26, 2026 at 8:58 pm

    I just had this same problem. Removing the semi-colon from the end of the query got it working.

    Mail archives reference here:

    https://mail.endcrypt.com/pipermail/check_postgres/2011-February/000726.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a function that takes two arguments and returns a SETOF result.
I have a PostgresQL function that returns multiple resultsets. I can extract these resultsets
I have discovered a strange behavior in postgres's crosstab function that I cannot explain,
Just a little confused here... I have a function in postgres, and when I'm
I have a postgres database that I want to know some quick stats. For
I currently have a Postgres 8.4 database that contains a varchar(10000) column. I'd like
is is possible in postgres to have a trigger on CREATE TABLE that will
I have a table in an Openoffice Database, containing two date columns. I'm trying
I have a number of tables that use the Postgres Partitioning feature. I want
I have a postgres table that looks in part like: Year | Month |

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.