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!
Nagios core eventhandlers
Re: Nagios core eventhandlers
I noticed it's the nagios-contrib rpm that has the eventhandlers files.
So, it seems like manual installation (from source) requires a copying of the files to the proper dir
and installation via rpm would have the files setup already. Can someone confirm?
$ rpm -qlp nagios-contrib-4.3.4-3.el7.x86_64.rpm
warning: nagios-contrib-4.3.4-3.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY
/usr/lib64/nagios/cgi
/usr/lib64/nagios/cgi/daemonchk.cgi
/usr/lib64/nagios/cgi/traceroute.cgi
/usr/lib64/nagios/plugins/eventhandlers/disable_active_service_checks
/usr/lib64/nagios/plugins/eventhandlers/disable_notifications
/usr/lib64/nagios/plugins/eventhandlers/distributed-monitoring
/usr/lib64/nagios/plugins/eventhandlers/distributed-monitoring/obsessive_svc_handler
/usr/lib64/nagios/plugins/eventhandlers/distributed-monitoring/submit_check_result_via_nsca
/usr/lib64/nagios/plugins/eventhandlers/enable_active_service_checks
/usr/lib64/nagios/plugins/eventhandlers/enable_notifications
/usr/lib64/nagios/plugins/eventhandlers/redundancy-scenario1
/usr/lib64/nagios/plugins/eventhandlers/redundancy-scenario1/handle-master-host-event
/usr/lib64/nagios/plugins/eventhandlers/redundancy-scenario1/handle-master-proc-event
/usr/lib64/nagios/plugins/eventhandlers/submit_check_result
/usr/share/doc/nagios-contrib-4.3.4
/usr/share/doc/nagios-contrib-4.3.4/README.contrib
Thanks!
So, it seems like manual installation (from source) requires a copying of the files to the proper dir
and installation via rpm would have the files setup already. Can someone confirm?
$ rpm -qlp nagios-contrib-4.3.4-3.el7.x86_64.rpm
warning: nagios-contrib-4.3.4-3.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY
/usr/lib64/nagios/cgi
/usr/lib64/nagios/cgi/daemonchk.cgi
/usr/lib64/nagios/cgi/traceroute.cgi
/usr/lib64/nagios/plugins/eventhandlers/disable_active_service_checks
/usr/lib64/nagios/plugins/eventhandlers/disable_notifications
/usr/lib64/nagios/plugins/eventhandlers/distributed-monitoring
/usr/lib64/nagios/plugins/eventhandlers/distributed-monitoring/obsessive_svc_handler
/usr/lib64/nagios/plugins/eventhandlers/distributed-monitoring/submit_check_result_via_nsca
/usr/lib64/nagios/plugins/eventhandlers/enable_active_service_checks
/usr/lib64/nagios/plugins/eventhandlers/enable_notifications
/usr/lib64/nagios/plugins/eventhandlers/redundancy-scenario1
/usr/lib64/nagios/plugins/eventhandlers/redundancy-scenario1/handle-master-host-event
/usr/lib64/nagios/plugins/eventhandlers/redundancy-scenario1/handle-master-proc-event
/usr/lib64/nagios/plugins/eventhandlers/submit_check_result
/usr/share/doc/nagios-contrib-4.3.4
/usr/share/doc/nagios-contrib-4.3.4/README.contrib
Thanks!
Re: Nagios core eventhandlers
These scripts specifically:
Are actually part of Naemon, a fork of Nagios Core. They are not part of Nagios Core and are therefore not included in the Nagios Core source. I do not believe the maintainers of Nagios Core are involved with the production of any RPMs; That's all third parties to my knowledge. A support tech might correct me on this.
Code: Select all
/usr/lib64/nagios/plugins/eventhandlers/disable_active_service_checks
/usr/lib64/nagios/plugins/eventhandlers/disable_notifications
/usr/lib64/nagios/plugins/eventhandlers/distributed-monitoring
/usr/lib64/nagios/plugins/eventhandlers/distributed-monitoring/obsessive_svc_handler
/usr/lib64/nagios/plugins/eventhandlers/distributed-monitoring/submit_check_result_via_nsca
/usr/lib64/nagios/plugins/eventhandlers/enable_active_service_checks
/usr/lib64/nagios/plugins/eventhandlers/enable_notifications
/usr/lib64/nagios/plugins/eventhandlers/redundancy-scenario1
/usr/lib64/nagios/plugins/eventhandlers/redundancy-scenario1/handle-master-host-event
/usr/lib64/nagios/plugins/eventhandlers/redundancy-scenario1/handle-master-proc-event
/usr/lib64/nagios/plugins/eventhandlers/submit_check_resultFormer Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Nagios core eventhandlers
That is correct we are not involved in that at all, and have never look at those scripts