Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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....?
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.
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?
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.
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?
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.
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....?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.