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
Host and Service Dependencies
Re: Host and Service Dependencies
Can you please clarify what you are trying to do? Dependencies in Nagios are not required to run any particular plugin.
Former Nagios employee
Re: Host and Service Dependencies
OK~
sorry for not being cleared when asking~
here the guideline provided :
here the dependencies
sorry for not being cleared when asking~
here the guideline provided :
I able to follow all the step except no 5. I'm still confused which configuration file I need to put the dependencies1) 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.
here the dependencies
Thanksdefine 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
}
Re: Host and Service Dependencies
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