Pages: 1 2 3 4 5 6 7 8 9 10 11 ... 39 >>
Good Morning


Location: 2.518528, 103.975687
Cheers
Daniel
Yesterday i was fighting with a Solaris 10 (SPARC) machine and NRPE. :-)
Thought i share the steps on how to make this work.
(not a step by step guide... just show you the right direction).
First you need to download the pre-compiled NRPE and Nagios plugins from our website:
(this packages are compiled for SUN Solaris 10 on SPARC)
NRPE 2.12
Nagios-Plugins 1.4.15
The packages are pre-compiled and you don't need to build them.
Just copy them to /usr/local/nagios/libexec (for the plugins) and
/usr/local/nagios/bin (for the nrpe daemon).
----------------------------------------------------------
Steps:
create user nagios and group nagios
create two diretcories:
/usr/local/nagios/libexec
/usr/local/nagios/bin
chown -R nagios:nagios /usr/local/nagios
copy the nrpe and plugins into the respective directories
make all files executable
add nrpe 5666/tcp # NRPE in /etc/services
Then add the following line to the end of /etc/inet/inetd.conf:
nrpe stream tcp nowait nagios /usr/sfw/sbin/tcpd
/usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -i
Next, you need to convert it to SMF:
# inetconv
nrpe -> /var/svc/manifest/network/nrpe-tcp.xml
Importing nrpe-tcp.xml …Done
# inetconv -e
svc:/network/nrpe/tcp:default enabled
check to make sure it went "online":
# svcs svc:/network/nrpe/tcp:default
STATE STIME FMRI
online 15:53:39 svc:/network/nrpe/tcp:default
# netstat -a | grep nrpe
*.nrpe *.* 0 0 49152 0 LISTEN
Check the default parameters:
# inetadm -l svc:/network/nrpe/tcp:default
SCOPE NAME=VALUE
name=”nrpe”
endpoint_type=”stream”
proto=”tcp”
isrpc=FALSE
wait=FALSE
exec=”/usr/sfw/sbin/tcpd -c /usr/local/nagios/etc/nrpe.cfg -i”
arg0=”/usr/local/nagios/bin/nrpe”
user=”nagios”
default bind_addr=”"
default bind_fail_max=-1
default bind_fail_interval=-1
default max_con_rate=-1
default max_copies=-1
default con_rate_offline=-1
default failrate_cnt=40
default failrate_interval=60
default inherit_env=TRUE
default tcp_trace=FALSE
default tcp_wrappers=FALSE
default connection_backlog=10
make it uses tcp_wrappers:
# inetadm -m svc:/network/nrpe/tcp:default tcp_wrappers=TRUE
# inetadm -l svc:/network/nrpe/tcp:default
SCOPE NAME=VALUE
name=”nrpe”
endpoint_type=”stream”
proto=”tcp”
isrpc=FALSE
wait=FALSE
exec=”/usr/sfw/sbin/tcpd -c /usr/local/nagios/etc/nrpe.cfg -i”
arg0=”/usr/local/nagios/bin/nrpe”
user=”nagios”
default bind_addr=”"
default bind_fail_max=-1
default bind_fail_interval=-1
default max_con_rate=-1
default max_copies=-1
default con_rate_offline=-1
default failrate_cnt=40
default failrate_interval=60
default inherit_env=TRUE
default tcp_trace=FALSE
tcp_wrappers=TRUE
default connection_backlog=10
Modify your hosts.allow and hosts.deny to only allow your nagios
server access to the NRPE port.
/etc/hosts.allow:
nrpe: LOCAL, 192.168.1.1
/etc/hosts.deny:
nrpe: ALL
Finally, check to make sure everything runs smoothly:
/usr/local/nagios/libexec/check_nrpe -n -H localhost
NRPE v2.12
(should return version information)
Attention: If you don't have the necessary SSL packages on Solaris you need to run the
check_nrpe with the -n parameter (no SSL)
Cheers
Daniel
As usual in Intuit we like to work hard but we also like to enjoy other things in live than work. Things like cheeeeeeeeeeeeeeeeeeeeeeeeseeee......
I never thought that my Malaysian colleagues would love cheese as i do. But i think after a while in Intuit you just need to like it :-)
Here some pictures from last night:

Even a couple of broken fingers don't stop Feroz from eating raclette....

Could be the next fondue add...

Our improvised Intuit kitchen in our engineering office.. you need to feed the army!


Cheers and enjoy your weekend!
Daniel
Our friend and supplier put our new panels up. He was proud to do it so fast.
Maybe a little to fast :-)


He will fix the spelling error tomorrow..
Cheers
Daniel
Today we celebrate the swiss national day here in Malaysia!
"Everyone" feels very patriotic and the flag at our house is up :-)

Looking forward to our friends and good BBQ food tonight.
More pictures soon.
Cheers and enjoy the weekend.
Daniel