I have installed nagios and check_oracle
and can sucessfully run the following two commands I want to use from the command line.
What directory and file do i need to add them to have have nagios run them for me.
I did make a hosts.cfg file and added the following and restarted nagios but I do not see it when i show my hosts in nagios.
‘iputmyhostnamehere’ host definition
define host{
use generic-host
host_name iputmyhostnamehere
alias my name i made here
address 10.186.155.9
check_command check-host-alive
max_check_attempts 10
notification_interval 120
notification_period 24x7
notification_options d,u,r
}
Things look okay - No serious problems were detected during the pre-flight check
One of the first things in nagios.cfg i looked for was a link to hosts.cfg but there is not one, I may have inadvertantly deleted it at some point.
Can I just add it to the section below like so?
You can specify individual object config files as shown below:
ok I added the host file to that section and i now see the host in addition to the local host that i was seeing in the host section of the nagio webpage.
I am not seeing results from the check_oracle --login sid anywhere.
I have these 2 commands in /usr/local/nagios/etc/objects/commands.cfg, and this file is referenced in nagios.cfg.
yep that was the first thing I tried, was command line for check_oracle
it works perfectly. I am just not sure what cfg file to put it in and where to look in the cognos web interface to see the results