nrpe doesn't start after rebooting solaris server
Evgeny Stepanov
enst at mail.ru
Thu Aug 23 08:12:52 CEST 2007
There are 2 different ways of running nrpe, standalone daemon or through
inetd.
as most *nix flavours there has to be /etc/rcX.d/ directories with
symlinks to /etc.init.d/executable which has to start at particular
runlevel. So put symlink to your /etc/init.d/nrpe as /etc/rc3.d/S20nrpe
and i will start as standalone daemon at runlevel 3. Or, another
approach, make sure inetd daemon is running and you have configured nrpe
to start like you mentioned already. inetd needs to start the same way
as i decribed before. Good luck.
Lalita Drolia пишет:
>
> Hi,
>
> I rebooted a solaris server and nrpe did not start on its own. I was
> able to resolve it by doing the following on solaris 10-
>
> Add the following entry to /etc/inetd.conf:
>
> nrpe stream tcp nowait nagios /usr/local/nagios/nrpe -c
> /usr/local/nagios/nrpe.cfg --inetd
>
> Then run the following command-
>
> #inetconv -i /etc/inetd.conf
>
> But “inetconv” command is not available in solaris 9 and 8. so nrpe is
> not starting on those servers after a reboot.
>
> My configuration on solaris 8 and 9 boxes is-
>
> Add the following file “/nrpe/” under //etc/init.d /-
>
> #!/sbin/sh
>
> #
>
> # /etc/init.d/nagios startup script
>
> #
>
> case "$1" in
>
> start)
>
> [ -f /usr/local/nagios/nrpe.cfg ] || exit 0
>
> # start nagios
>
> cd /usr/local/nagios
>
> ./nrpe -c /usr/local/nagios/nrpe.cfg --daemon
>
> ;;
>
> stop)
>
> # stop nagios
>
> echo "use ps to kill nrpe"
>
> ;;
>
> *)
>
> echo "Usage: $0 { start | stop }"
>
> exit 1
>
> ;;
>
> esac
>
> exit 0
>
> now open nrpe.cfg in /usr/local/nagios and add server ip address
>
> *allowed_hosts=127.0.0.1, 172.22.48.7*
>
> Start nrpe as daemon in solaris by issuing following command-
>
> #/usr/local/nagios/nrpe -c /usr/local/nagios/nrpe.cfg --deamon
>
> I tried starting nrpe with –inetd switch instead of as a daemon but
> the process is not getting started.
>
> Kindly help.
>
> Regards,
>
> Lalita
>
>
> Notice: This email message, together with any attachments, may contain
> information of BEA Systems, Inc., its subsidiaries and affiliated
> entities, that may be confidential, proprietary, copyrighted and/or
> legally privileged, and is intended solely for the use of the
> individual or entity named in this message. If you are not the
> intended recipient, and have received this message in error, please
> immediately return this by email and then delete it.
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
--
С уважением,
Степанов Е.Н.
enst at mail.ru
icq 2899514
+7-985-2267458
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list