Talk:HOWTO Install Nagios with graphing services
From Gentoo Linux Wiki
Contents |
|
Pending tasks for Talk:HOWTO Install Nagios with graphing services | edit -history - watch - purge | |
|---|---|---|
[edit] Check Installation chmod code doesn't match exampleAt the tail end of the Check Installation section: It is suggested that permissions similar to this are applied: :drwxr-xr-x 2 nagios nagios 4096 Apr 10 06:35 /etc/nagios #chmod 711 /etc/nagios To achieve the suggested permissions, the chmod line should be changed to #chmod 755 /etc/nagios | ||
[edit] [Done] Added article to HowTO index
under Networks and Services subcat Services stillbourne 17:51, 12 June 2006 (UTC)
[edit] Problems solved
stillbourne Updated and Cleaned HowTO
-- added mysql -- client configuration for windows working on linux client installs. -- cleaned useless info -- added information regarding cgi.cfg -- some other stuff -- cleaned talk page hard to read what needs to be done
[edit] Problems to be solved
Add new problems here as the old comments seemed stale so I removed them. stillbourne
This HOWTO configures nagios to write status information to the DB, while in /etc/nagios/cgi.cfg the nagios_check_command variable refers to the status.log file which does not exist when DB status is enabled.
/usr/nagios/libexec/check_nagios_db.pl should instead be used. It takes two parameters,
- -c <path to cgi.cfg>
- -e <expire time in minutes>
| Code: /etc/nagios/cgi.cfg |
nagios_check_command=/usr/nagios/libexec/check_nagios_db.pl -c '/etc/nagios/cgi.cfg' |
I had to tinker with ownerships so that apache could to execute the plugin.
chown nagios:apache /usr/nagios/libexec/check_nagios_db.pl
This doc specifies that dependencies.cfg should be disabled in nagios.cfg - however the same applies for escalations.cfg (v1.4.1 at least)
[edit] Congrats
I run a pile of IDS and monitoring apps including Nagios and i thought i'd have a look here, just wanted to say great job. Even though I havent read through it all it looks great. --Ghettodev 11:44, 25 January 2006 (GMT)
[edit] Some Suggestions
- I was running into Could not open password file: /usr/nagios/etc/htpasswd.users I had to chgrp apache /etc/nagios
- CGI Troubleshooting tip - verify file permissions of object config files, if not all readable by apache, the cgi will fail silently with an error that can look like an authorization problem. Des09 18:34, 22 March 2006 (GMT)
- I took quite a bit of notes, and got it up and running -- mind if I add/update the page further? --SeeBQ
- I had to modify /etc/init.d/nagios so that it uses /var/run/nagios.pid instead of /var/nagios/nagios.lock. I had to modify both start() and stop(). I saw some chown and rm -f in there too. --Bering
[edit] Regarding Nagios core 2.10-r1
/etc/nagios/checkcommands.cfg /etc/nagios/misccommands.cfg
files need to be configured I think.
not able to start nagios until we configure above files
Edit: There are two nagios.cfg* file in the /usr/share/doc/nagios-core-2.10-r1/sample-configs/ directory. nagios.cfg-sample and nagios.cfg. The wiki article says in the "Setup configuration files" section that "rename .cfg-sample .cfg *.cfg-sample". This is not quite good, if you are using nagios2 because the nagios.cfg-sample file is for nagios-1, and this command overwrites the normal nagios.cfg which for nagios-2.10. I suggest to delete or skip the nagios.cfg-sample file in this situation. --Balage (02.18.2008)
