LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-20-2008, 11:45 AM   #1
BreakTheWindows2008
LQ Newbie
 
Registered: Aug 2008
Posts: 12

Rep: Reputation: 0
Nagios 3.0.2 Help


Greetings:

I just completed my Nagios 3.0.2 setup and everything works grand, but I do a few bugs that I need some help with. First is I am not receiving notifications. I imagine that I must configure Postfix.... Any suggestions for help with the config is appreciated. Second, I am receiving text on my status map, it appears to be some sort of status check output. Regardless, any ideas how eliminate it. Next, Under Tactical Overview, when I toggle a service I receive the error message "Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for update". I checked all the permissions and everything appears to be correct. Last but not least, my Nagios Checker will not display any notifications. I still have the server as an IP address. I have not yet setup DNS for this server. Would this cause a problem with Nagios Checker...? Any and all help/suggestions are appreciated.


Thank you in advance.
 
Old 08-21-2008, 07:59 AM   #2
TheMadIndian
Member
 
Registered: Dec 2007
Distribution: Fedora Slackware CentOS slax RHEL
Posts: 117

Rep: Reputation: 23
Quote:
Originally Posted by BreakTheWindows2008 View Post
Greetings:

I just completed my Nagios 3.0.2 setup and everything works grand, but I do a few bugs that I need some help with. First is I am not receiving notifications. I imagine that I must configure Postfix.... Any suggestions for help with the config is appreciated. Second, I am receiving text on my status map, it appears to be some sort of status check output. Regardless, any ideas how eliminate it. Next, Under Tactical Overview, when I toggle a service I receive the error message "Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for update". I checked all the permissions and everything appears to be correct. Last but not least, my Nagios Checker will not display any notifications. I still have the server as an IP address. I have not yet setup DNS for this server. Would this cause a problem with Nagios Checker...? Any and all help/suggestions are appreciated.


Thank you in advance.
have you configured the cgi.cfg file?
 
Old 08-21-2008, 06:48 PM   #3
immortaltechnique
Member
 
Registered: Oct 2006
Location: Kenya
Distribution: Ubuntu, RHEL, OpenBSD
Posts: 287

Rep: Reputation: 32
My suggestion is that if you dont have FQDN for your machines the best bet is to use their ip addresses. it will work. Number 2, what have you configured in your cgi.cfg file
[HTML]"Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for update"[/HTML]

The above error indicates that nagios could not open the nagios.cmd file (usually a pipe) for reading. I suggest you change the permissions and then restart nagios thereafter. Its always wise to start with -v option to see if there are any errors.

Check on the cgi.cfg and post the details of it thereof.
 
Old 08-22-2008, 12:27 PM   #4
BreakTheWindows2008
LQ Newbie
 
Registered: Aug 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Update

OK,

I re-compiled Nagios and fixed the error with the text on the status map and the permissions problem. I am trying to set up mailx to send notifications and I receive an error "mailing to remote domains not supported". Also, for some reason my Nagios Checker plug-in is not working. I tried re-installing the plug-in, but I keep receiving an error when I try to update the Nagios information. Any ideas....?



Thank you in advance.
 
Old 08-22-2008, 06:43 PM   #5
immortaltechnique
Member
 
Registered: Oct 2006
Location: Kenya
Distribution: Ubuntu, RHEL, OpenBSD
Posts: 287

Rep: Reputation: 32
The mailing configs are specified in the commands.cfg file in the /etc/nagios folder. By default Nagios uses the /usr/bin/mail for mailing but you can test with the mailing optons you have installed in your box.

What error is the Nagios Checker throwing up? That way we can help you better.
 
Old 08-23-2008, 08:20 AM   #6
BreakTheWindows2008
LQ Newbie
 
Registered: Aug 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Nagios Error

Quote:
Originally Posted by immortaltechnique View Post
The mailing configs are specified in the commands.cfg file in the /etc/nagios folder. By default Nagios uses the /usr/bin/mail for mailing but you can test with the mailing optons you have installed in your box.

What error is the Nagios Checker throwing up? That way we can help you better.
I changed the commands.cfg to /usr/bin/mail, so the only thing not working is mailing to remote domains. Our mail server requires SMTP authentication, so that may be causing a problem that I have no idea how to fix. I am trying to send mail to a GMail account from our mail server. Is there a fix or a workaround for the SMTP authentication...?

The Nagios checker prompts me for the username and password. A few seconds later it displays an error after communicating with the Nagios box. Other computers have the same error and I defined the server correctly. Is there a plugin or setting on the Nagios box that needs to be changed/modified?


Thank you in advance.
 
Old 08-26-2008, 02:06 AM   #7
immortaltechnique
Member
 
Registered: Oct 2006
Location: Kenya
Distribution: Ubuntu, RHEL, OpenBSD
Posts: 287

Rep: Reputation: 32
Am not quiet sure how your network is set up but dyou have the remote machines authorized to check mail from that particular mail server? Is there a firewall and are the remote machines allowed to communicate with each other?

Last edited by immortaltechnique; 08-26-2008 at 06:04 AM.
 
Old 08-27-2008, 07:27 AM   #8
BreakTheWindows2008
LQ Newbie
 
Registered: Aug 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Nagios 3.0.2 Notification Trouble

Quote:
Originally Posted by immortaltechnique View Post
Am not quiet sure how your network is set up but dyou have the remote machines authorized to check mail from that particular mail server? Is there a firewall and are the remote machines allowed to communicate with each other?
OK,

Here is the ideal setup for my situation. My server is on the network and I would like to configure sendmail to use the domain nagios.mydomain.net (SMTP Authentication is not required this way) to send to GMail accounts for notifications. However when I follow the setup guide, I receive errors that say external domains are not allowed and mail can not be sent. In other words, how do I properly configure the FQDN and correctly setup my sendmail for that domain to work properly?

Thanks for your help.
 
Old 08-27-2008, 09:29 AM   #9
BreakTheWindows2008
LQ Newbie
 
Registered: Aug 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by BreakTheWindows2008 View Post
OK,

Here is the ideal setup for my situation. My server is on the network and I would like to configure sendmail to use the domain nagios.mydomain.net (SMTP Authentication is not required this way) to send to GMail accounts for notifications. However when I follow the setup guide, I receive errors that say external domains are not allowed and mail can not be sent. In other words, how do I properly configure the FQDN and correctly setup my sendmail for that domain to work properly?

Thanks for your help.
I also want to add, that I would like to setup a relay server for my domain so I can relay through a GMail account.
 
Old 08-28-2008, 03:21 PM   #10
BreakTheWindows2008
LQ Newbie
 
Registered: Aug 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Update

Quote:
Originally Posted by BreakTheWindows2008 View Post
I also want to add, that I would like to setup a relay server for my domain so I can relay through a GMail account.
OK,

I resolved the issue for notifications. I used sSMTP and it worked beautifully. I was able to setup outgoing authentication. The only problem I face now is my NAgios Checker. When I try to locate the URL (status.cgi) the program hangs. I tried setting it to http://myserverip/nagios, but it was not able to connect. Am I missing something in the Nagios configs....?

Any suggestions are greatly appreciated.
 
Old 09-02-2008, 10:44 PM   #11
immortaltechnique
Member
 
Registered: Oct 2006
Location: Kenya
Distribution: Ubuntu, RHEL, OpenBSD
Posts: 287

Rep: Reputation: 32
Couple of questions here, can you manage to get the login prompt for the username and password you provided during your installation? If you type: http://your_ip_or_host_name/nagios you should be presented with the prompt, ie if everything ran well during the pre-flight tests.

If you are able to get past the login without any errors this is what you should be getting: http://img126.imageshack.us/my.php?i...eenshotck7.png

Otherwise, there must be something you broke on the way while working on the mailer. Send some more details on the error so that we can see what you missed.

Last edited by immortaltechnique; 09-02-2008 at 10:53 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Nagios and Oreon (Nagios web front end) installation and Configuration LXer Syndicated Linux News 1 05-31-2016 07:26 AM
Nagios Daemon, PID not found but rc.nagios runs agentc0re Slackware 1 07-03-2007 02:47 PM
LXer: Nagios 2.5 and Oreon 1.3 (Nagios web front end) installation with screenshots LXer Syndicated Linux News 0 08-11-2006 05:33 PM
Nagios? suresheva31 Linux - General 2 10-13-2004 07:55 AM
Nagios markus1982 Linux - Software 1 04-01-2003 06:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration