Code: Select all
service nagios startBut when I do use the
Code: Select all
http://<myipaddress>/nagios/Code: Select all
service nagios startCode: Select all
http://<myipaddress>/nagios/Code: Select all
./configure --with-nagios-group=nagios --with-command-group=nagcmd -–with-mail=/usr/bin/sendmail
*this is where things go wrong. the comand "--with-mail=/usr/bin/sendmail" get this error message: "configure: error: unrecognized option: -–with-mail=/usr/bin/sendmail"
*So I used ./configure --with-nagios-group=nagios --with-command-group=nagcmd
eliminating the --with-mail=/usr/bin/sendmail but this allowed it to run ./configureCode: Select all
htpasswd –c /usr/local/nagios/etc/htpasswd.users nagiosadmin
*for whatever reason this command wouldn't run so I did the following
*cd /usr/local/nagios/etc ... then htpasswd -c htpasswd.users nagiosadmin
* I have no idea why it didn't work with the original command.Code: Select all
ln -s /etc/init.d/nagios /etc/rcS.d/S99nagios
**ln: failed to create symbolic link `/etc/rcS.d/S99nagios': File exists
** I'm not exactly sure why this didn't work as planned. I completely erased all traces of the former nagios installation so there shouldn't have been a S99nagios file created already.
** I looked withini /etc there is no "rcS.d" directory. There is a rc'5'.d directory. So I ran the cmd using that directory and it worked fine. Code: Select all
**I double check with: "http://<your.nagios.server.ip>/nagios/" which didn't work either gave me the same error message. I thought perhaps it was the "ln -s /etc/init.d/nagios /etc/rcS.d/S99nagios" command that I changed to rc'5'.d (without the quotes of course); but the oringal error after running that command according to the documentation was that the file already exists. So if it already exists, and is the correct command (not the one with the 'five') then it should be working. Unfortunately it isn't. Code: Select all
**One thing I did notice about this set of installation instructions is that it contains no changes to the config files to include my email address or anything to send myself updates. I don't quite remember exacty which files I changed before but I do remember doing that step when I got it running before. Code: Select all
**I reboot my system and tried to run /etc/init.d/httpd start and got the following message: "Starting nagios:CONFIG ERROR! Start aborted. Check your Nagios configuration." Which in fact as the installation instructions said that we set it up to have nagios start on boot....this shouldn't really have been a necessary step.