[Nagios-users] Premature end of script headers
Hello, I installed nagios 1.3 on one of our RHEL3 boxes. Running ../bin/nagios -v nagios.cfg from the /etc directory gave no errors. However the web interface doesnt seem to allow the cgi's to execute. I can get to http://serverIP/nagios/ The index page and documentation loads fine but i get the following errors when trying to load ANY of the cgi's: Premature end of script headers: /usr/local/nagios/sbin/status.cgi Premature end of script headers: /usr/local/nagios/sbin/extinfo.cgi Premature end of script headers: /usr/local/nagios/sbin/tac.cgi Can someone help? Thanks so much Salman --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Antwort: [Nagios-users] Premature end of script headers
[EMAIL PROTECTED] schrieb am 04.01.2006 11:18:58: However the web interface doesnt seem to allow the cgi's to execute. I can get to http://serverIP/nagios/ The index page and documentation loads fine but i get the following errors when trying to load ANY of the cgi's: Premature end of script headers: /usr/local/nagios/sbin/status.cgi Premature end of script headers: /usr/local/nagios/sbin/extinfo.cgi Premature end of script headers: /usr/local/nagios/sbin/tac.cgi Well, you obviously gave yourself the answer already. How about allowing apache to execute the cgi's? ;) sash -- Sascha Runschke Netzwerk Administration IT-Services ABIT AG Robert-Bosch-Str. 1 40668 Meerbusch Tel.:+49 (0) 2150.9153.226 Mobil:+49 (0) 173.5419665 mailto:[EMAIL PROTECTED] http://www.abit.net http://www.abit-epos.net - Sicherheitshinweis zur E-Mail Kommunikation / Security note regarding email communication: http://www.abit.net/sicherheitshinweis.html --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
RE: [Nagios-users] Premature end of script headers
I have the following lines added to the httpd.conf: ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ Directory /usr/local/nagios/sbin/ AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all /Directory Alias /nagios/ /usr/local/nagios/share/ Directory /usr/local/nagios/share Options None AllowOverride AuthConfig Order allow,deny Allow from all /Directory So the ExecCGI is there but not executing. Here is the dir listing: [EMAIL PROTECTED] [/usr/local/nagios/sbin]# ls -al total 1984 drwxrwxr-x2 nagios nagios 4096 Jan 4 02:53 ./ drwxr-xr-x8 nagios nagios 4096 Jan 4 02:20 ../ -rwxrwxr-x1 nagios nagios 139744 Jan 4 02:14 avail.cgi* -rwxrwxr-x1 nagios nagios 140848 Jan 4 02:14 cmd.cgi* -rwxrwxr-x1 nagios nagios 110624 Jan 4 02:14 config.cgi* -rwxrwxr-x1 nagios nagios 154040 Jan 4 02:14 extinfo.cgi* -rwxrwxr-x1 nagios nagios 122272 Jan 4 02:14 histogram.cgi* -rwxrwxr-x1 nagios nagios 103380 Jan 4 02:14 history.cgi* -rw-r--r--1 nagios nagios110 Jan 4 02:53 .htaccess -rwxrwxr-x1 nagios nagios 99252 Jan 4 02:14 notifications.cgi* -rwxrwxr-x1 nagios nagios 98088 Jan 4 02:14 outages.cgi* -rwxrwxr-x1 nagios nagios 98868 Jan 4 02:14 showlog.cgi* -rwxrwxr-x1 nagios nagios 143376 Jan 4 02:14 status.cgi* -rwxrwxr-x1 nagios nagios 124712 Jan 4 02:14 statusmap.cgi* -rwxrwxr-x1 nagios nagios 112224 Jan 4 02:14 statuswml.cgi* -rwxrwxr-x1 nagios nagios 107464 Jan 4 02:14 statuswrl.cgi* -rwxrwxr-x1 nagios nagios 116000 Jan 4 02:14 summary.cgi* -rwxrwxr-x1 nagios nagios 120304 Jan 4 02:14 tac.cgi* -rwxrwxr-x1 nagios nagios 122848 Jan 4 02:14 trends.cgi* The browser loads a 500 error page and apache error log shows: Premature end of script headers: /usr/local/nagios/sbin/status.cgi Premature end of script headers: /usr/local/nagios/sbin/extinfo.cgi Premature end of script headers: /usr/local/nagios/sbin/tac.cgi Thanks for the help Salman --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Premature end of script headers
On 1/4/06, Salman Usmani [EMAIL PROTECTED] wrote: I have the following lines added to the httpd.conf: ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ Directory /usr/local/nagios/sbin/ AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all /Directory Alias /nagios/ /usr/local/nagios/share/ Directory /usr/local/nagios/share Options None AllowOverride AuthConfig Order allow,deny Allow from all /Directory So the ExecCGI is there but not executing. Here is the dir listing: ExecCGI is not needed here as scriptalias has you covered. Don't need the belt AND the suspenders. Premature end of script headers: /usr/local/nagios/sbin/status.cgi Premature end of script headers: /usr/local/nagios/sbin/extinfo.cgi Premature end of script headers: /usr/local/nagios/sbin/tac.cgi A couple other things will cause this too, like REMOTE_USER not being set. One question here. Why aren't you using the RPMS provided for rhel that are listed on the site? The rpms listed on the site, dag.wieers.com repository take most of the guesswork out of setting up nagios and apache. The only thing left to screw up are the configs. If you're on an rpm based distribution, it's nearly ALWAYS worth using rpms to install software. -- Jim Perrin System Architect - UIT Ft Gordon US Army Signal Center --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Premature end of script headers
Thanks for the reply. I must have overloooked the RPM's. Will try them out now. Salman From: Jim Perrin [EMAIL PROTECTED] To: Salman Usmani [EMAIL PROTECTED] CC: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Premature end of script headers Date: Wed, 4 Jan 2006 09:24:26 -0500 On 1/4/06, Salman Usmani [EMAIL PROTECTED] wrote: I have the following lines added to the httpd.conf: ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ Directory /usr/local/nagios/sbin/ AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all /Directory Alias /nagios/ /usr/local/nagios/share/ Directory /usr/local/nagios/share Options None AllowOverride AuthConfig Order allow,deny Allow from all /Directory So the ExecCGI is there but not executing. Here is the dir listing: ExecCGI is not needed here as scriptalias has you covered. Don't need the belt AND the suspenders. Premature end of script headers: /usr/local/nagios/sbin/status.cgi Premature end of script headers: /usr/local/nagios/sbin/extinfo.cgi Premature end of script headers: /usr/local/nagios/sbin/tac.cgi A couple other things will cause this too, like REMOTE_USER not being set. One question here. Why aren't you using the RPMS provided for rhel that are listed on the site? The rpms listed on the site, dag.wieers.com repository take most of the guesswork out of setting up nagios and apache. The only thing left to screw up are the configs. If you're on an rpm based distribution, it's nearly ALWAYS worth using rpms to install software. -- Jim Perrin System Architect - UIT Ft Gordon US Army Signal Center --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
RE: [Nagios-users] 2.0 upgrade, passive checks problem
This is a bug in my opinion, though no one seems to agree with me. I agree that this behaviour should be changed back. -- Bob Sloane, University of Kansas Computer Center, Lawrence, KS, 66045 Email:[EMAIL PROTECTED] http://www.ku.edu/home/sloane Phone:(785)864-0444 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Sending SNMP traps from Nagios
Dear all, I need to send traps from Nagios to another NMS, in the ocurrence of some events. I have read all the documentation about snmptrap and the MIB notification, but I have not been able to put it to work, because I do not see the exact syntax of the snmptrap command I have to issue in the event handler. Any of you is using this notification method? Any hints will be greatly appreciatted... Un saludo, Pablo Espinar Barcelona (Spain) --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
RE: [Nagios-users] 2.0 upgrade, passive checks problem
On Wed, 2006-01-04 at 09:00 -0500, Andrew Laden wrote: check_period = none active_check_enabled = 1 used to work, now you have to use check_period = 24x7 active_checks_enabled = 0 Huh. I never thought to set mine up the old way, I've always done it as you described as the new way. By what you're describing, though, I wish it worked the old way...sounds a lot cleaner (I do hate the passive icons for actively-checked-elsewhere services). signature.asc Description: This is a digitally signed message part
[Nagios-users] Installing Nagios RPM
Hi, I dont seem to be able to find any documentation on how to intall the nagios rpm on rhel3. Can someone help? Thanks Salman --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Installing Nagios RPM
On 1/4/06, Salman Usmani [EMAIL PROTECTED] wrote: Hi, I dont seem to be able to find any documentation on how to intall the nagios rpm on rhel3. It gets installed the same way you install other rpms on the system. man rpm for assistance. -- Jim Perrin System Architect - UIT Ft Gordon US Army Signal Center --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Installing Nagios RPM
Doing rpm -q nagios shows nagios-1.2-2.1.el3.rf How do I remove that? Doing rpm -e nagios Shows: error reading information on service nagios: No such file or directory error: %preun(nagios-1.2-2.1.el3.rf) scriptlet failed, exit status 1 Thanks Salman From: Harper Mann [EMAIL PROTECTED] To: Salman Usmani [EMAIL PROTECTED] CC: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Installing Nagios RPM Date: Wed, 4 Jan 2006 09:19:24 -0800 Try rpm -q nagios. I also often run rpm -qa | grep -i nagios, when I can't remember the rpm name. Rpm is pretty useful. There is an RPM site [1]http://www.rpm.org/ with lots of good info. I hope this helps, - Harper Harper Mann Groundwork 510-599-2075 (cell) Salman Usmani wrote: [EMAIL PROTECTED] [~]# rpm -i nagios-1.2-2.1.el3.rf.i386.rpm Gives the following reult: warning: nagios-1.2-2.1.el3.rf.i386.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6 package nagios-1.2-2.1.el3.rf is already installed But when i do [EMAIL PROTECTED] [~]# rpm -q nagios-1.2-2.1.el3.rf.i386.rpm I get: package nagios-1.2-2.1.el3.rf.i386.rpm is not installed What am i doing wrong? Thanks in advance for the help. Salman From: Jim Perrin [2][EMAIL PROTECTED] To: Salman Usmani [3][EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: [Nagios-users] Installing Nagios RPM Date: Wed, 4 Jan 2006 11:34:03 -0500 On 1/4/06, Salman Usmani [5][EMAIL PROTECTED] wrote: Hi, I dont seem to be able to find any documentation on how to intall the nagios rpm on rhel3. It gets installed the same way you install other rpms on the system. man rpm for assistance. -- Jim Perrin System Architect - UIT Ft Gordon US Army Signal Center --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! [6]http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Nagios-users mailing list [EMAIL PROTECTED] [8]https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! [9]http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Nagios-users mailing list [EMAIL PROTECTED] [11]https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null References 1. http://www.rpm.org/ 2. mailto:[EMAIL PROTECTED] 3. mailto:[EMAIL PROTECTED] 4. mailto:nagios-users@lists.sourceforge.net 5. mailto:[EMAIL PROTECTED] 6. http://ads.osdn.com/?ad_idv37alloc_id865op=click 7. mailto:Nagios-users@lists.sourceforge.net 8. https://lists.sourceforge.net/lists/listinfo/nagios-users 9. http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click 10. mailto:Nagios-users@lists.sourceforge.net 11. https://lists.sourceforge.net/lists/listinfo/nagios-users --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Installing Nagios RPM
But when i do [EMAIL PROTECTED] [~]# rpm -q nagios-1.2-2.1.el3.rf.i386.rpm I get: package nagios-1.2-2.1.el3.rf.i386.rpm is not installed try: rpm -q nagios --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Installing Nagios RPM
On 1/4/06, Fernando Lima [EMAIL PROTECTED] wrote: To list. Is it a good idea to install Nagios through RPM??? It will configure the nagios user, nagios group (with nobody and nagios), etc? Yes, the nagios rpm will create the nagios user, and set up the apache environment for you. You have to add users to the htpasswd setup, or change the auth to suit your environment. I'm of the belief that you should install the software in a manner consistent with your system. If you're a debian user, install the nagios deb files, if you use an rpm based system, install nagios via rpm. This keeps a clean, consistent system, and allows you to track what package owns what files. It's not so much a nagios issue, as a system administration issue. This way when you need to do a software audit of the system to see what's on it, one command will work, rather than doing rpm -qa AND digging through /usr/local/ or other source build/install locations. Just my $0.02US -- Jim Perrin System Architect - UIT Ft Gordon US Army Signal Center --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Antwort: Re: [Nagios-users] Installing Nagios RPM
[EMAIL PROTECTED] schrieb am 04.01.2006 18:40:10: Doing rpm -q nagios shows nagios-1.2-2.1.el3.rf How do I remove that? Doing rpm -e nagios Shows: error reading information on service nagios: No such file or directory error: %preun(nagios-1.2-2.1.el3.rf) scriptlet failed, exit status 1 http://learn.to/quote Topposting with fullquotes are considered rude. It seems like you managed to screw your nagios installation. If I had to guess: you installed the nagios rpm (obviously without knowing you did) and then tried to do some manual installing - destroying vital information, needed by the rpm for a successful uninstall for example. Looks like you have some major problems here, it's kinda hard to remotely solve your problem without access to the machine. There are a myriad of places where you would need to check where you broke the installation. regards sash -- Sascha Runschke Netzwerk Administration IT-Services ABIT AG Robert-Bosch-Str. 1 40668 Meerbusch Tel.:+49 (0) 2150.9153.226 Mobil:+49 (0) 173.5419665 mailto:[EMAIL PROTECTED] http://www.abit.net http://www.abit-epos.net - Sicherheitshinweis zur E-Mail Kommunikation / Security note regarding email communication: http://www.abit.net/sicherheitshinweis.html --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
RE: [Nagios-users] Send only X Notifications on failure
Additionally, you should be able to add the information to the template and use templates as described in the manual. This would make the changes you make global. Alternatively, you should be able to vi the file and :%s/last_notification 60/last_notification 1/ to make the change globally. This would work if the configurations were copied to make the next template. The task is not difficult to manage even with several hundreds of services. Scott Yem -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of vol Sent: Tuesday, January 03, 2006 2:45 AM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Send only X Notifications on failure Hi Mario, [EMAIL PROTECTED] wrote: Hi, define serviceescalation{ host_name xxx01 service_description check_http first_notification 1 ** last_notification 60** notification_interval 10 contact_groups Admins escalation_period 24x7 escalation_options w,u,c,r } Change the last notification to the number of messages you want to be send out for the service . if you want only one for each event - just change it to 1 . Can you set the last_notification globally? I have about 12Services to monitor, and it would be useful if i could only define it once. Otherwise my escalation config will get pretty big. Thanks, Mario you can use notification_interval 0 in your service template, like it is described in the fine manuals: snip notification_interval: This directive is used to define the number of time units to wait before re-notifying a contact that this service is still in a non-OK state. Unless you've changed the interval_length directive from the default value of 60, this number will mean minutes. If you set this value to 0, Nagios will not re-notify contacts about problems for this service - only one problem notification will be sent out. /snip -vol --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Fix when not broken?
I have Nagios version 2.0b3 and it is running pretty good. Is there any advantage to running/upgrading to version 2.0rc1? Do the upgrade Nagios programs have anything different than the version I am using? Is the upgrade path: 1) kill Nagios and reinstall the new version? 2) Upgrade program made to upgrade works well? Thank You; Eddie
RE: [Nagios-users] Fix when not broken?
-Original Message- From: [EMAIL PROTECTED] [mailto:nagios-users- [EMAIL PROTECTED] On Behalf Of Edward Ford Sent: Wednesday, January 04, 2006 1:28 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Fix when not broken? I have Nagios version 2.0b3 and it is running pretty good. Is there any advantage to running/upgrading to version 2.0rc1? Do the upgrade Nagios programs have anything different than the version I am using? http://www.nagios.org/development/changelog.php You'll always want to check this when upgrading as there may be important information about manual changes you need to make. You should be able to judge based on the changes made whether they're important to you. You could always just do it to assist in the testing of course. Is the upgrade path: 1) kill Nagios and reinstall the new version? Yup. Upgrades within the same major version are generally very painless. You'll probably want to tar up your current nagios directory as a fallback measure in the event of some critical problem but generally -- $ ./configure --with-your-options $ make all $ /etc/init.d/nagios stop $ make install $ /path/to/nagios -v /path/to/nagios.cfg $ /etc/init.d/nagios start 2) Upgrade program made to upgrade works well? There isn't a dedicated 'upgrade program' that I've seen. -- Marc --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] softstates and retry check intervals
Greetings, My nagios system alerts as critical when the system gives CHECK_NRPE time out. so..i need to retry 3 attempts using retry intervals..then after this 3 checks i want to send the critical alert. but theres a method called softstates in nagios. can any one help me to configure this.. thxs in advance Tharanga --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Slow Starting Of Nagios 2.0b6
Hi Everyone,I am wondering if anyone knows how I may get Nagios to start faster and check the configs faster. I have a little over 9000 hosts and about 19500 services. It is taking about 25 minutes to start. I have/am setting up distributed checks on the main hosts and have all of the other hosts at these sites as dependents on the main hosts. I have not added all of the services that I am trying to check, so this time will only grow. Plus as time goes by I will be adding more hosts and all the services they need to be monitored for. ThanksJoseph
RE: [Nagios-users] softstates and retry check intervals
That should work, here is a sample from my config: define service { name --template Customer Service max_check_attempts 5 normal_check_interval 10 retry_check_interval 3 active_checks_enabled 1 check_period 24x7 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 notification_interval 30 notification_period ShopHours notifications_enabled 1 register 0 notification_options u,c,r servicegroups Customer Services contact_groups FieldOpsSupport,TechOpsSupport } -Original Message- From: Tharanga [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 04, 2006 7:03 PM To: Danny Russell; nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] softstates and retry check intervals Hello Danny, Thxs for the immeidate reply. actualy i need to do this In order to prevent false alarms, Nagios allows you to define how many times a service or host check will be retried before the service or host is considered to have a real problem. but my one process went to NRPE time out..it gives critical alert..but its a false alarm. if nagios can check that service 3 times..if all three times fails..it should alert... this is my servises.cfg define service{ use generic-service ; Name of service template to use host_name Linux-PBX service_description PBX-Asterisk process is_volatile 0 check_period24x7 max_check_attempts 3 normal_check_interval 1 retry_check_interval1 contact_groups linux-admins notification_interval 240 notification_period 24x7 notification_optionsw,u,c,r check_command check_snmp_process!asterisk } thxs in advance Tharanga - Original Message - From: Danny Russell [EMAIL PROTECTED] To: Tharanga [EMAIL PROTECTED]; nagios-users@lists.sourceforge.net Sent: Thursday, January 05, 2006 7:46 AM Subject: RE: [Nagios-users] softstates and retry check intervals Notifications are only sent out for HARD States. The retry check interval is how quickly should I start checking as soon as this service is in an non-okay status. The maximum check attempts is how many consecutive checks must be the same before it is considered a hard state, up until then it was a soft state. This can probably explain it better: http://nagios.sourceforge.net/docs/2_0/statetypes.html -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tharanga Sent: Wednesday, January 04, 2006 6:38 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] softstates and retry check intervals Greetings, My nagios system alerts as critical when the system gives CHECK_NRPE time out. so..i need to retry 3 attempts using retry intervals..then after this 3 checks i want to send the critical alert. but theres a method called softstates in nagios. can any one help me to configure this.. thxs in advance Tharanga --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
RE: [Nagios-users] softstates and retry check intervals
Email us the status.log that contains the checks of the service. -Original Message- From: Tharanga [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 04, 2006 7:29 PM To: Danny Russell; nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] softstates and retry check intervals Thxs again...for the mail...but thats not working..iam using version 1.2. can it be a problem ?? it alerts every time when nrpe time out occurs. it wont check 3 attempts..in the first failure it gives the crtical state..and alert..this is a real problem to my administrators. thanks for ur time.. rgds Tharanga - Original Message - From: Danny Russell [EMAIL PROTECTED] To: Tharanga [EMAIL PROTECTED]; nagios-users@lists.sourceforge.net Sent: Thursday, January 05, 2006 8:18 AM Subject: RE: [Nagios-users] softstates and retry check intervals That should work, here is a sample from my config: define service { name --template Customer Service max_check_attempts 5 normal_check_interval 10 retry_check_interval 3 active_checks_enabled 1 check_period 24x7 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 notification_interval 30 notification_period ShopHours notifications_enabled 1 register 0 notification_options u,c,r servicegroups Customer Services contact_groups FieldOpsSupport,TechOpsSupport } -Original Message- From: Tharanga [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 04, 2006 7:03 PM To: Danny Russell; nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] softstates and retry check intervals Hello Danny, Thxs for the immeidate reply. actualy i need to do this In order to prevent false alarms, Nagios allows you to define how many times a service or host check will be retried before the service or host is considered to have a real problem. but my one process went to NRPE time out..it gives critical alert..but its a false alarm. if nagios can check that service 3 times..if all three times fails..it should alert... this is my servises.cfg define service{ use generic-service ; Name of service template to use host_name Linux-PBX service_description PBX-Asterisk process is_volatile 0 check_period24x7 max_check_attempts 3 normal_check_interval 1 retry_check_interval1 contact_groups linux-admins notification_interval 240 notification_period 24x7 notification_optionsw,u,c,r check_command check_snmp_process!asterisk } thxs in advance Tharanga - Original Message - From: Danny Russell [EMAIL PROTECTED] To: Tharanga [EMAIL PROTECTED]; nagios-users@lists.sourceforge.net Sent: Thursday, January 05, 2006 7:46 AM Subject: RE: [Nagios-users] softstates and retry check intervals Notifications are only sent out for HARD States. The retry check interval is how quickly should I start checking as soon as this service is in an non-okay status. The maximum check attempts is how many consecutive checks must be the same before it is considered a hard state, up until then it was a soft state. This can probably explain it better: http://nagios.sourceforge.net/docs/2_0/statetypes.html -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tharanga Sent: Wednesday, January 04, 2006 6:38 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] softstates and retry check intervals Greetings, My nagios system alerts as critical when the system gives CHECK_NRPE time out. so..i need to retry 3 attempts using retry intervals..then after this 3 checks i want to send the critical alert. but theres a method called softstates in nagios. can any one help me to configure this.. thxs in advance Tharanga --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as
Re: [Nagios-users] softstates and retry check intervals
here is the status.log [1136429754] SERVICE;DB-server;cpu load;OK;1/30;HARD;1136429719;1136429744;ACTIVE;1;1;1;1136414173;0;OK;4877981 ;0;50829;42026;0;0;1;8;2;1;0;0.00;0;1;1;1;OK - load average: 0.74, 0.86, 0.88 [1136429754] SERVICE;-DB-server;ping;OK;1/10;HARD;1136429739;1136429789;ACTIVE;1;1;1;1136 412427;0;OK;4969226;0;0;46;0;0;1;0;1;1;0;0.00;0;1;1;1;PING OK - Packet loss = 0%, RTA = 0.06 ms [1136429754] SERVICE;Current Users;OK;1/30;HARD;1136429743;1136429768;ACTIVE;1;1;1;1136377184;0;OK;429467 ;0;12388;17;0;0;0;0;2;1;0;0.00;0;1;1;1;USERS OK - 1 users currently logged in ---THARANGA-- - Original Message - From: Danny Russell [EMAIL PROTECTED] To: Tharanga [EMAIL PROTECTED]; nagios-users@lists.sourceforge.net Sent: Thursday, January 05, 2006 8:45 AM Subject: RE: [Nagios-users] softstates and retry check intervals Email us the status.log that contains the checks of the service. -Original Message- From: Tharanga [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 04, 2006 7:29 PM To: Danny Russell; nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] softstates and retry check intervals Thxs again...for the mail...but thats not working..iam using version 1.2. can it be a problem ?? it alerts every time when nrpe time out occurs. it wont check 3 attempts..in the first failure it gives the crtical state..and alert..this is a real problem to my administrators. thanks for ur time.. rgds Tharanga - Original Message - From: Danny Russell [EMAIL PROTECTED] To: Tharanga [EMAIL PROTECTED]; nagios-users@lists.sourceforge.net Sent: Thursday, January 05, 2006 8:18 AM Subject: RE: [Nagios-users] softstates and retry check intervals That should work, here is a sample from my config: define service { name --template Customer Service max_check_attempts 5 normal_check_interval 10 retry_check_interval 3 active_checks_enabled 1 check_period 24x7 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 notification_interval 30 notification_period ShopHours notifications_enabled 1 register 0 notification_options u,c,r servicegroups Customer Services contact_groups FieldOpsSupport,TechOpsSupport } -Original Message- From: Tharanga [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 04, 2006 7:03 PM To: Danny Russell; nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] softstates and retry check intervals Hello Danny, Thxs for the immeidate reply. actualy i need to do this In order to prevent false alarms, Nagios allows you to define how many times a service or host check will be retried before the service or host is considered to have a real problem. but my one process went to NRPE time out..it gives critical alert..but its a false alarm. if nagios can check that service 3 times..if all three times fails..it should alert... this is my servises.cfg define service{ use generic-service ; Name of service template to use host_name Linux-PBX service_description PBX-Asterisk process is_volatile 0 check_period24x7 max_check_attempts 3 normal_check_interval 1 retry_check_interval1 contact_groups linux-admins notification_interval 240 notification_period 24x7 notification_optionsw,u,c,r check_command check_snmp_process!asterisk } thxs in advance Tharanga - Original Message - From: Danny Russell [EMAIL PROTECTED] To: Tharanga [EMAIL PROTECTED]; nagios-users@lists.sourceforge.net Sent: Thursday, January 05, 2006 7:46 AM Subject: RE: [Nagios-users] softstates and retry check intervals Notifications are only sent out for HARD States. The retry check interval is how quickly should I start checking as soon as this service is in an non-okay status. The maximum check attempts is how many consecutive checks must be the same before it is considered a hard state, up until then it was a soft state. This can probably explain it better: http://nagios.sourceforge.net/docs/2_0/statetypes.html -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tharanga Sent: Wednesday, January 04, 2006 6:38 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] softstates and retry check intervals Greetings, My nagios system alerts as critical when the system gives CHECK_NRPE time out. so..i need to retry 3 attempts using retry intervals..then after this 3 checks i want to send the critical alert. but theres a method called softstates in nagios. can any one help me to configure this.. thxs in advance Tharanga ---
RE: [Nagios-users] softstates and retry check intervals
There are only 3 entries in that log. Email the parts that have PBX-Asterisk in them. Should look something like: [1136429754] SERVICE;Linux-PBX;PBX-Asterisk; -Original Message- From: Tharanga [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 04, 2006 8:03 PM To: Danny Russell; nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] softstates and retry check intervals here is the status.log [1136429754] SERVICE;DB-server;cpu load;OK;1/30;HARD;1136429719;1136429744;ACTIVE;1;1;1;1136414173;0;OK;487 7981 ;0;50829;42026;0;0;1;8;2;1;0;0.00;0;1;1;1;OK - load average: 0.74, 0.86, 0.88 [1136429754] SERVICE;-DB-server;ping;OK;1/10;HARD;1136429739;1136429789;ACTIVE;1;1;1; 1136 412427;0;OK;4969226;0;0;46;0;0;1;0;1;1;0;0.00;0;1;1;1;PING OK - Packet loss = 0%, RTA = 0.06 ms [1136429754] SERVICE;Current Users;OK;1/30;HARD;1136429743;1136429768;ACTIVE;1;1;1;1136377184;0;OK;42 9467 ;0;12388;17;0;0;0;0;2;1;0;0.00;0;1;1;1;USERS OK - 1 users currently logged in ---THARANGA-- - Original Message - From: Danny Russell [EMAIL PROTECTED] To: Tharanga [EMAIL PROTECTED]; nagios-users@lists.sourceforge.net Sent: Thursday, January 05, 2006 8:45 AM Subject: RE: [Nagios-users] softstates and retry check intervals Email us the status.log that contains the checks of the service. -Original Message- From: Tharanga [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 04, 2006 7:29 PM To: Danny Russell; nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] softstates and retry check intervals Thxs again...for the mail...but thats not working..iam using version 1.2. can it be a problem ?? it alerts every time when nrpe time out occurs. it wont check 3 attempts..in the first failure it gives the crtical state..and alert..this is a real problem to my administrators. thanks for ur time.. rgds Tharanga - Original Message - From: Danny Russell [EMAIL PROTECTED] To: Tharanga [EMAIL PROTECTED]; nagios-users@lists.sourceforge.net Sent: Thursday, January 05, 2006 8:18 AM Subject: RE: [Nagios-users] softstates and retry check intervals That should work, here is a sample from my config: define service { name --template Customer Service max_check_attempts 5 normal_check_interval 10 retry_check_interval 3 active_checks_enabled 1 check_period 24x7 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 notification_interval 30 notification_period ShopHours notifications_enabled 1 register 0 notification_options u,c,r servicegroups Customer Services contact_groups FieldOpsSupport,TechOpsSupport } -Original Message- From: Tharanga [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 04, 2006 7:03 PM To: Danny Russell; nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] softstates and retry check intervals Hello Danny, Thxs for the immeidate reply. actualy i need to do this In order to prevent false alarms, Nagios allows you to define how many times a service or host check will be retried before the service or host is considered to have a real problem. but my one process went to NRPE time out..it gives critical alert..but its a false alarm. if nagios can check that service 3 times..if all three times fails..it should alert... this is my servises.cfg define service{ use generic-service ; Name of service template to use host_name Linux-PBX service_description PBX-Asterisk process is_volatile 0 check_period24x7 max_check_attempts 3 normal_check_interval 1 retry_check_interval1 contact_groups linux-admins notification_interval 240 notification_period 24x7 notification_optionsw,u,c,r check_command check_snmp_process!asterisk } thxs in advance Tharanga - Original Message - From: Danny Russell [EMAIL PROTECTED] To: Tharanga [EMAIL PROTECTED]; nagios-users@lists.sourceforge.net Sent: Thursday, January 05, 2006 7:46 AM Subject: RE: [Nagios-users] softstates and retry check intervals Notifications are only sent out for HARD States. The retry check interval is how quickly should I start checking as soon as this service is in an non-okay status. The maximum check attempts is how many consecutive checks must be the same before it is considered a hard state, up until then it was a soft state. This can probably explain it better: http://nagios.sourceforge.net/docs/2_0/statetypes.html -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tharanga Sent: Wednesday, January 04, 2006 6:38 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] softstates and retry
Re: [Nagios-users] disk_check for a remote machine
Hi All, Thanks for all the suggestions. I will try out the nrpe option today and give a feedback. If required, I will also try other options that have been suggested. Thanks Yogesh On 1/3/06, Lori Adams [EMAIL PROTECTED] wrote: also look at nagios' brother, nrpe.Your nagios server calls check_nrpewhich contacts the remote server and runs a command on the remotemachine returning an informative output and exit status.-Lori -Original Message- From: [EMAIL PROTECTED] [mailto:nagios-users- [EMAIL PROTECTED]] On Behalf Of Morten Bekkelund Sent: Monday, January 02, 2006 4:22 AM To: nagios-users@lists.sourceforge.net Subject: RE: [Nagios-users] disk_check for a remote machine Yeah, check out www.net-snmp.org. Install net-snmp on the machines you wanna monitor and use the functionality it provides for diskchecks. It writes the result to a table in snmp and returns the result when it's being polled from the nagios-server.