How check Process Information using command

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

How check Process Information using command

Postby sandeepatil » Mon Nov 26, 2018 10:13 am

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.
Attachments
nagioscore.PNG
sandeepatil
 
Posts: 138
Joined: Tue Dec 27, 2016 3:12 am

Re: How check Process Information using command

Postby mcapra » Mon Nov 26, 2018 10:51 am

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
Former Nagios employee
http://www.mcapra.com/
User avatar
mcapra
 
Posts: 3462
Joined: Thu May 05, 2016 3:54 pm

Re: How check Process Information using command

Postby sandeepatil » Mon Nov 26, 2018 10:59 am

Shared details is very helpful,

passive_service_checks_enabled etc. status details will update in nagios.log ?
sandeepatil
 
Posts: 138
Joined: Tue Dec 27, 2016 3:12 am

Re: How check Process Information using command

Postby mcapra » Mon Nov 26, 2018 4:51 pm

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.
Former Nagios employee
http://www.mcapra.com/
User avatar
mcapra
 
Posts: 3462
Joined: Thu May 05, 2016 3:54 pm

Re: How check Process Information using command

Postby scottwilkerson » Mon Nov 26, 2018 5:19 pm

Yes, you should see the change in the log if you enable/disable these.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 12594
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: How check Process Information using command

Postby sandeepatil » Wed Nov 28, 2018 12:19 pm

Thank for sharing details.

Please close the thread.
sandeepatil
 
Posts: 138
Joined: Tue Dec 27, 2016 3:12 am

Re: How check Process Information using command

Postby scottwilkerson » Wed Nov 28, 2018 1:10 pm

sandeepatil wrote:Thank for sharing details.

Please close the thread.


great

Locking thread
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 12594
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises


Return to Nagios Core

Who is online

Users browsing this forum: Bing [Bot], Exabot [Bot], Fess [Nagios Bot], prkngs and 26 guests