Page 1 of 1

Get Nagios Process Information om commandline

Posted: Sun Jan 26, 2014 12:06 pm
by basd
Hi all,

I am new to this forum, but i am useing nagios core for years :-D
I primarly use it for for HCC!hobbynet the non-profit and oldest ISP for private users in the Netherlands

But engough of me :-D

Is there way i can get proces information like :
Program Version: 3.4.1
Program Start Time: 2014-01-26 17:41:25
Total Running Time: 0d 0h 22m 52s
Last External Command Check: 2014-01-26 18:04:15
Last Log File Rotation: N/A
Nagios PID 27012
Notifications Enabled?
YES
Service Checks Being Executed?
YES
Passive Service Checks Being Accepted?
YES
Host Checks Being Executed?
YES
Passive Host Checks Being Accepted?
YES
Event Handlers Enabled? Yes
Obsessing Over Services? No
Obsessing Over Hosts? No
Flap Detection Enabled? Yes
Performance Data Being Processed? No

from the command line, as special eventhandlers and notifications enabled or not ?

Re: Get Nagios Process Information om commandline

Posted: Mon Jan 27, 2014 11:29 am
by abrist
You could parse the status.dat file: /uar/local/nagios/var/status.dat