Host and Service Dependencies

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
hazly92
Posts: 2
Joined: Tue Jul 26, 2016 10:57 pm

Host and Service Dependencies

Post by hazly92 »

Hi All,

Im having a bit confused about "Add dependencies to your nagios configuration", I want to use these plugin check_as400. where can i find config file to put the dependencies?


Thank You.

Hazly
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Host and Service Dependencies

Post by tmcdonald »

Can you please clarify what you are trying to do? Dependencies in Nagios are not required to run any particular plugin.
Former Nagios employee
hazly92
Posts: 2
Joined: Tue Jul 26, 2016 10:57 pm

Re: Host and Service Dependencies

Post by hazly92 »

OK~ :)
sorry for not being cleared when asking~ :)
here the guideline provided :
1) For languages other than English you will need to recompile the plugin before continuing. Refer to steps 1 and 2 of the Manual installation section below.
* Type
./install

2) Modify your $NAGIOS_PATH/libexec/.as400 with the correct user and password
3) Add the contents of the checkcommands.example file into your $NAGIOS/etc/checkcommands.cfg
4) Add services to your nagios configuration. There are examples in the services.example file.
5) Add dependencies to your nagios configuration. There are examples in the dependency.example file.
I able to follow all the step except no 5. I'm still confused which configuration file I need to put the dependencies

here the dependencies
define servicedependency{
host_name as400host
service_description Active Jobs
dependent_host_name as400host
dependent_service_description Login
execution_failure_criteria c,u
notification_failure_criteria c,u
}

#outq dependency
define servicedependency{
host_name prtis1
service_description AS400 OUTQ
dependent_host_name as400host
dependent_service_description Login
execution_failure_criteria c,u
notification_failure_criteria c,u
}

Thanks
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Host and Service Dependencies

Post by tmcdonald »

Dependency definitions can go into any file which Nagios is configured to read, but it makes sense to put them in the same file as the services which they are related to.
Former Nagios employee
Locked