using check_oracle_health : How to get query result history

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

using check_oracle_health : How to get query result history

Post by Frédéric GRANAT »

Hi,

I created a service like that :

source /usr/local/nagiosxi/etc/configwizards/oracle/oracle && $USER1$/check_oracle_health $ARG1$
$ARG1$ =
--connect 'xxxxxxxx:1523/Xxxxxxxx' --username 'xxxxxxx' --password 'xxxxxxx' --mode sql --name="select bytes/1024/1024 size_mo from dba_data_files where tablespace_name = 'CIVIROLB'" --warning 1000 --critical 2000

that service help me to monitor the tablespace growth in oracle
My service reached the critical limit and I would like to get my query result history (size_mo), particularly when there were big steps of growing.

How can I get that in NagiosXI ?

Frederic
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: using check_oracle_health : How to get query result hist

Post by ssax »

If the state never changed you would only see the data as plot points in the graphs (which is averaged).

If the state actually changed you would see the data in the Event Log and State History reports.

You can enable State Stalking on the host/service to log extra, see here:

https://assets.nagios.com/downloads/nag ... lking.html

That's about it other than querying the RRD through the API endpoint.
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

Re: using check_oracle_health : How to get query result hist

Post by Frédéric GRANAT »

Hi,

Event Log and State don't meet my expectations (query value on a range of time).
Please see the attachment.
How can I do to get all the values ?
You do not have the required permissions to view the files attached to this post.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: using check_oracle_health : How to get query result hist

Post by cdienger »

State stalking is the option you would want but it would need to have been enabled prior to the events.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

Re: using check_oracle_health : How to get query result hist

Post by Frédéric GRANAT »

Hi,
Thanks,
'State stalking is the option you would want but it would need to have been enabled prior to the events.'
How can I activate it ?
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: using check_oracle_health : How to get query result hist

Post by benjaminsmith »

Hi,

You can enable the stalking options for the host or service in the CCM under the alert settings tab.
stalking.png
Let us know if you have any other questions.
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

Re: using check_oracle_health : How to get query result hist

Post by Frédéric GRANAT »

Thanks,
And the next time I will have an alert, where do I have to go in NagiosXI to see the query values ?
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: using check_oracle_health : How to get query result hist

Post by benjaminsmith »

Hi,

As Sean mentioned, you can check the Event Log or the State History Reports or if you want to look directly at the nagios.log, go to:

Code: Select all

/usr/local/nagios/var/nagios.log
Let us know if you have any other questions.

Regards,
Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

Re: using check_oracle_health : How to get query result hist

Post by Frédéric GRANAT »

Hi,

Thanks you can close the post.

Frederic
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: using check_oracle_health : How to get query result hist

Post by scottwilkerson »

Frédéric GRANAT wrote:Hi,

Thanks you can close the post.

Frederic
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart