Nagios core eventhandlers
Posted: Wed Feb 28, 2018 2:00 am
I am wondering how eventhandlers dir/files gets copied over to Nagios core during an installation from source
& rpm.
** Install from source **
For Nagios core installation from source, I noticed there is a step that copies /contrib/eventhandlers to /usr/local/nagios/libexec
https://assets.nagios.com/downloads/nag ... Source.pdf
All systems:
make all
make install
make install-init
make install-config
make install-commandmode
make install-webconf
cp -R contrib/eventhandlers/ /usr/local/nagios/libexec/
chown -R nagios:nagios /usr/local/nagios/libexec/eventhandlers
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
** rpmbuild **
If I downloaded nagios-4.3.4.tar, modified the spec file and used rpmbuild to build my custom rpms (with custom UID, GID, & location/prefix), an installation via the resulting rpms would add the "eventhandlers" dir & corresponding files. I wonder if rpmbuild somehow bundle everything up (so that we don't need to copy them over).
<$HOME>/lib64/nagios/plugins/eventhandlers
<$HOME>/lib64/nagios/plugins/eventhandlers/disable_active_service_checks
<$HOME>/lib64/nagios/plugins/eventhandlers/disable_notifications
<$HOME>/lib64/nagios/plugins/eventhandlers/distributed-monitoring
<$HOME>/lib64/nagios/plugins/eventhandlers/distributed-monitoring/obsessive_svc_handler
<$HOME>/lib64/nagios/plugins/eventhandlers/distributed-monitoring/submit_check_result_via_nsca
<$HOME>/lib64/nagios/plugins/eventhandlers/enable_active_service_checks
<$HOME>/lib64/nagios/plugins/eventhandlers/enable_notifications
<$HOME>/lib64/nagios/plugins/eventhandlers/redundancy-scenario1
<$HOME>/lib64/nagios/plugins/eventhandlers/redundancy-scenario1/handle-master-host-event
<$HOME>/lib64/nagios/plugins/eventhandlers/redundancy-scenario1/handle-master-proc-event
<$HOME>/lib64/nagios/plugins/eventhandlers/submit_check_result
<$HOME>/lib64/nagios/plugins/eventhandlers/submit_check_result.orig
Thanks!
& rpm.
** Install from source **
For Nagios core installation from source, I noticed there is a step that copies /contrib/eventhandlers to /usr/local/nagios/libexec
https://assets.nagios.com/downloads/nag ... Source.pdf
All systems:
make all
make install
make install-init
make install-config
make install-commandmode
make install-webconf
cp -R contrib/eventhandlers/ /usr/local/nagios/libexec/
chown -R nagios:nagios /usr/local/nagios/libexec/eventhandlers
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
** rpmbuild **
If I downloaded nagios-4.3.4.tar, modified the spec file and used rpmbuild to build my custom rpms (with custom UID, GID, & location/prefix), an installation via the resulting rpms would add the "eventhandlers" dir & corresponding files. I wonder if rpmbuild somehow bundle everything up (so that we don't need to copy them over).
<$HOME>/lib64/nagios/plugins/eventhandlers
<$HOME>/lib64/nagios/plugins/eventhandlers/disable_active_service_checks
<$HOME>/lib64/nagios/plugins/eventhandlers/disable_notifications
<$HOME>/lib64/nagios/plugins/eventhandlers/distributed-monitoring
<$HOME>/lib64/nagios/plugins/eventhandlers/distributed-monitoring/obsessive_svc_handler
<$HOME>/lib64/nagios/plugins/eventhandlers/distributed-monitoring/submit_check_result_via_nsca
<$HOME>/lib64/nagios/plugins/eventhandlers/enable_active_service_checks
<$HOME>/lib64/nagios/plugins/eventhandlers/enable_notifications
<$HOME>/lib64/nagios/plugins/eventhandlers/redundancy-scenario1
<$HOME>/lib64/nagios/plugins/eventhandlers/redundancy-scenario1/handle-master-host-event
<$HOME>/lib64/nagios/plugins/eventhandlers/redundancy-scenario1/handle-master-proc-event
<$HOME>/lib64/nagios/plugins/eventhandlers/submit_check_result
<$HOME>/lib64/nagios/plugins/eventhandlers/submit_check_result.orig
Thanks!