Hey guys!
Is it possible to disable passive and active checks and notifications from the command line?
I backup my pri server and restore it to the secondary, and I want to add line(s) to it that will disable the above for me so the restored server wont fire up running checks and sending notifications.
Thanks!
how to disable active passive checks and notifications
how to disable active passive checks and notifications
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
Re: how to disable active passive checks and notifications
You can simply modify the main config file (nagios.cfg), and set:
# To disable active host/service checks
# To stop accepting host/service passive checks
# To disable notifications globally
Then restart nagios.
To learn more about the main configuration file options, please review our official Nagios Core documentation here:
https://assets.nagios.com/downloads/nag ... gmain.html
# To disable active host/service checks
Code: Select all
execute_host_checks=0
execute_service_checks=0Code: Select all
accept_passive_host_checks=0
accept_passive_service_checks=0Code: Select all
enable_notifications=0Code: Select all
service nagios restarthttps://assets.nagios.com/downloads/nag ... gmain.html
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: how to disable active passive checks and notifications
hmm no command line eh? well maybe ill try using sed or awk in the script.
you can lock it bro and thanks for the info!
you can lock it bro and thanks for the info!
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion