Get Nagios Process Information om commandline

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
basd
Posts: 4
Joined: Sun Jan 26, 2014 11:59 am

Get Nagios Process Information om commandline

Post 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 ?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Get Nagios Process Information om commandline

Post by abrist »

You could parse the status.dat file: /uar/local/nagios/var/status.dat
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked