Hi all
i have just installed Nagious on gentoo using emerge command.
but i want to configure that so that i can monitor different services. as i am new to nagios so can any one help me by providing me information how to configure it.
thanks
Hi all
i have just installed Nagious on gentoo using emerge command.
but i want to configure that so that i can monitor different services. as i am new to nagios so can any one help me by providing me information how to configure it.
thanks
Short, practical Gentoo-oriented checklist to get Nagios actually monitoring services — expands on ’s point about the learning curve and ties into ’s note that Nagios scales well (Gentoo paths/ebuilds differ from CentOS).
Install and pick USE flags, then read the ebuild output. Example quick install:
# USE="apache2 web" emerge --ask net-analyzer/nagios net-analyzer/nagios-plugins
# emerge --ask net-analyzer/nagios-plugins-snmp # if you need SNMP checks Follow the ebuild’s post-install notes (they tell you to add Nagios to your runlevel). (wiki.gentoo.org)
Enable the web UI and secure it. The Gentoo ebuild expects the webserver to have read access to /etc/nagios; add a Nagios admin user and restrict access via Apache (or nginx/lighttpd) per the wiki. Start services with the init scripts and add Nagios to the default runlevel:
# htpasswd2 -c /etc/nagios/auth.users nagiosadmin
# chown nagios:nagios /etc/nagios/auth.users
# rc-update add nagios default
# /etc/init.d/nagios start && /etc/init.d/apache2 start (ebuild/postinst will remind you about these steps). (wiki.gentoo.org)
Work in small, verifiable steps. Put one host file in a cfg_dir and add one service definition. Always run the pre-flight check before reload:
# nagios -v /etc/nagios/nagios.cfg Fix reported errors until “Things look okay” then reload. Use templates, hostgroups and command defs to avoid repetition as you scale. (assets.nagios.com)
Remote checks: NRPE, SSH (check_by_ssh) or SNMP are common choices. Gentoo provides an nrpe ebuild and examples; if you use NRPE, restrict allowed hosts, use TLS/encryption where possible, and keep NRPE updated (histor vulnerabilities exist — patch promptly). Example command template:
define command {
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
} Quick troubleshooting tips: verify plugin paths ($USER1$), check file ownership (nagios:www-group), run nagios -v after every edit, and inspect Nagios log files for line numbers the verifier reports. These small loops make the initial setup manageable and repeatable. (assets.nagios.com)
Jump to Post— blud 82Nagios, like linux, is a very powerful program. The only problem with 'powerful' programs, is they take a lot of dedication to setup the way you want them, but once they are, you don't have to touch it for a very long time.
Even Nagios says in it's documentation …
Nagios, like linux, is a very powerful program. The only problem with 'powerful' programs, is they take a lot of dedication to setup the way you want them, but once they are, you don't have to touch it for a very long time.
Even Nagios says in it's documentation the following statement to beginners:
"Relax - its going to take some time. Don't expect to be able to compile Nagios and start it up right off the bat. Its not that easy. In fact, its pretty difficult. If you don't want to spend time learning how things work and getting things running smoothly, don't bother using this software. Instead, pay someone to monitor your network for you or hire someone to install Nagios for you. :-)"
I would advise browsing their documentation over at
This will help you with the basic, and in-depth configuration of the program.
Hello,
Actually i do not know what stage you are but nagios is the right choice for monitoring. Especially you do not want to pay thousands of dollars to other softwares. And you can do whatever with nagios.
We use Nagios+Opsview to monitor our systems. now there are about 400 server and services over 2 thousands that we actively monitor!
I think it is not diffucult to install and configure nagios. But i don't know about Gentoo Linux! We use Centos Linux.
That's really great to use open sourse software :) Centos+nagios+opsview+mysql, ...
And very informative to work with open source software. I learn a lot.
if you want me to help you, i will try to :)
Of course i am not expert on this systems but i am trying to experince and learn much!
Anyway,
Goodbye
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.