Page 1 of 1
How check Process Information using command
Posted: Mon Nov 26, 2018 10:13 am
by sandeepatil
Want check Nagios Core "Process Information" status check using command line.
How to check blow mention Process Information status using command line.
Service Checks Being Executed? [Yes/No]
Passive Service Checks Being Accepted? [Yes/No]
Host Checks Being Executed? [Yes/No]
Passive Host Checks Being Accepted? [Yes/No]
For reference please check attachment.
Re: How check Process Information using command
Posted: Mon Nov 26, 2018 10:51 am
by mcapra
Those are generally derived from your Nagios configuration:
https://github.com/NagiosEnterprises/na ... #L802-L811
Code: Select all
[root@capra_nag ~]# cat /usr/local/nagios/etc/nagios.cfg | grep execute_service_checks
execute_service_checks=1
[root@capra_nag ~]# cat /usr/local/nagios/etc/nagios.cfg | grep accept_passive_service_checks
accept_passive_service_checks=1
[root@capra_nag ~]# cat /usr/local/nagios/etc/nagios.cfg | grep execute_host_checks
execute_host_checks=1
[root@capra_nag ~]# cat /usr/local/nagios/etc/nagios.cfg | grep accept_passive_host_checks
accept_passive_host_checks=1
You could also parse status.dat for similar, but slightly different, information:
Code: Select all
[root@capra_nag ~]# cat /usr/local/nagios/var/status.dat | grep active_service_checks_enabled
active_service_checks_enabled=1
[root@capra_nag ~]# cat /usr/local/nagios/var/status.dat | grep passive_service_checks_enabled
passive_service_checks_enabled=1
[root@capra_nag ~]# cat /usr/local/nagios/var/status.dat | grep active_host_checks_enabled
active_host_checks_enabled=1
[root@capra_nag ~]# cat /usr/local/nagios/var/status.dat | grep passive_host_checks_enabled
passive_host_checks_enabled=1
Re: How check Process Information using command
Posted: Mon Nov 26, 2018 10:59 am
by sandeepatil
Shared details is very helpful,
passive_service_checks_enabled etc. status details will update in nagios.log ?
Re: How check Process Information using command
Posted: Mon Nov 26, 2018 4:51 pm
by mcapra
If you trigger an external command (or push a button in the GUI) to enable/disable those particular parameters, that should show up in the Nagios log.
Re: How check Process Information using command
Posted: Mon Nov 26, 2018 5:19 pm
by scottwilkerson
Yes, you should see the change in the log if you enable/disable these.
Re: How check Process Information using command
Posted: Wed Nov 28, 2018 12:19 pm
by sandeepatil
Thank for sharing details.
Please close the thread.
Re: How check Process Information using command
Posted: Wed Nov 28, 2018 1:10 pm
by scottwilkerson
sandeepatil wrote:Thank for sharing details.
Please close the thread.
great
Locking thread