(Updated to be zone-friendly)
While playing around with Nagios, I figured it was time to learn how SMF
works a bit more, and brush on Solaris packaging while I was at it.
I've created an SMF package for Nagios, which I hope others find useful.
The first pass at this allows you to specify the location where nagios is install (detecting /usr/local/nagios is the default action).
In addition, you can specify the username and group that nagios is launched by.
Download:
Without further ado: GTnagios-smf-1.1.pkg.gz
Version 1.1 will create the startup files in /opt/GTnagios-smf, which can be installed in a zone by itself, or made globally available (pkgadd -G).
The first version (if you dont require zones) can be used GTnagios-smf-1.0.pkg.gz Zones are useful, so I'm updating the SMF packages I've written to adhere to their rules.
Manual Installation
Decompress:
# gunzip GTnagios-smf-1.1.pkg.gz
Add the Package:
# pkgadd -d GTnagios-smf-1.1.pkg
Verify SMF sees it:
# svcs nagios
Startup nagios:
# svcadm enable nagios
Check logs:
# tail -f /var/svc/log/network-nagios\:default.log
Automated Install
Automated installs are common, here's how to automate pkgadd.
Create a response file like this gtresponse.cf:
NAGIOS_HOME=/usr/local/nagios
NAGIOS_USER=nagios
NAGIOS_GROUP=nagios
Run pkgadd using response file:
# echo y | pkgadd -r gtresponse.cf -d GTnagios-smf-1.1.pkg GTnagios-smf
I'll publish the "how to make an smf package installer" soon as well.
Cheers
Brian
Showing posts with label opensolaris smf nagios package. Show all posts
Showing posts with label opensolaris smf nagios package. Show all posts
Friday, April 13, 2007
Subscribe to:
Posts (Atom)