Page 1 of 1

nrpe not starting on Sol 10 machine

Posted: Mon Sep 14, 2015 7:39 am
by avijit_bhardwaj
Hi
I installed nrpe agent on Sol 10 machine as per the pdf :
https://assets.nagios.com/downloads/nag ... _Agent.pdf

However nrpe is not running on the server. Below are the logs:

# more /var/svc/log/application-nagios-nrpe:default.log
[ Aug 26 10:21:39 Disabled. ]
[ Aug 26 10:21:39 Rereading configuration. ]
[ Aug 26 10:22:11 Enabled. ]
[ Aug 26 10:22:11 Executing start method ("/lib/svc/method/nrpe start") ]
/sbin/sh: /lib/svc/method/nrpe: not found
[ Aug 26 10:22:11 Method "start" exited with status 1 ]
[ Aug 26 10:22:11 Executing start method ("/lib/svc/method/nrpe start") ]
/sbin/sh: /lib/svc/method/nrpe: not found
[ Aug 26 10:22:11 Method "start" exited with status 1 ]
[ Aug 26 10:22:11 Executing start method ("/lib/svc/method/nrpe start") ]
/sbin/sh: /lib/svc/method/nrpe: not found
[ Aug 26 10:22:11 Method "start" exited with status 1 ]


svc:/application/nagios/nrpe:default: Method "/lib/svc/method/nrpe start" failed with exit status 1.

Could you please let me know where I can look for the issue

Re: nrpe not starting on Sol 10 machine

Posted: Mon Sep 14, 2015 9:39 am
by jdalrymple
I can't verify because I've never used that particular document for installation, however my suspicion is that document assumes the use of inetd. You're probably not using that on your system.

If you want to use SMF to start Nagios you'll have to setup a manifest. There is a really good write-up on the process here:

http://taske.org/add-nagios-nrpe-solari ... ility-smf/

Alternatively you can enable inetd and add a line something like this to the configuration file /etc/inet/inetd.conf:

Code: Select all

nrpe stream tcp nowait nagios /usr/sfw/sbin/tcpd /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -i

Re: nrpe not starting on Sol 10 machine

Posted: Thu Sep 24, 2015 3:20 pm
by ssax
Locking because it has been moved into a ticket.