Ask Your Question
0

Monitoring Puppet Enterprise Server Components with Nagios

asked 2016-09-01 11:07:57 -0500

I have the latest Puppet Enterprise installed on a CentOS 7 system, and am wondering which of the many Puppet related processes I should monitor with Nagios. Obviously I'm not really interested in anything transient, but I'd like to have Nagios monitor the Puppet Server environment to make sure that all required and critical daemons and processes are present. Is it as simple as just monitoring the ones with PPID 1? Any advice or guidance is appreciated.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-10-12 01:41:50 -0500

rohithmn03 gravatar image

Hi,

YES.. You can manage your puppet master and agents from Nagios Core/NagiosXI. Example : To check whether the agent on nodes is enabled or disabled, you can have a small script that check the status of the agent. FYI..

> sudo cat `sudo puppet agent --configprint agent_disabled_lockfile`

There are a number of possible results.

result ::- cat: \path\to\lock: No such file or directory (Puppet is not disabled in this case)

Any other text means that puppet is disabled, and the text is the reason provided when puppet was disabled by puppet agent --disable 'reason'

One thing we need to make sure is your nrpe agent should be running on all puppet nodes.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-09-01 11:07:57 -0500

Seen: 72 times

Last updated: Oct 12 '16