[Nagios-users] Problems starting nagios
Nagios 3.0rc1 on RHEL3 I've RPM'd up this release - I have it working fine on one RHEL3 box, and various other rhel4 boxes without issue, with the same configuration on all boxes. One (and only one) other RHEL3 box is causing me problems - nagios is quietly refusing to start, citing problems with the config file, but not saying what they are. Any ideas on where to begin debugging? [EMAIL PROTECTED] nagios]# /etc/init.d/nagios restart Running configuration check... CONFIG ERROR! Restart aborted. Check your Nagios configuration. [EMAIL PROTECTED] nagios]# nagios -v /etc/nagios/nagios.cfg Nagios 3.0rc1 Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org) Last Modified: 12-17-2007 License: GPL Reading configuration data... *** One or more problems was encountered while processing the config files... Check your configuration file(s) to ensure that they contain valid directives and data defintions. If you are upgrading from a previous version of Nagios, you should be aware that some variables/definitions may have been removed or modified in this version. Make sure to read the HTML documentation regarding the config files, as well as the 'Whats New' section to find out what has changed. [EMAIL PROTECTED] nagios]# tail -f /var/log/nagios/nagios.log - SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ 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] Problems starting nagios
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Try with strace to get much logs; strace nagios -v /etc/nagios/nagios.cfg 21 | egrep '(access|open)' /tmp/strace.log strace nagios -v /etc/nagios/nagios.cfg 21 | egrep '()' /tmp/strace.log Alan Cooper wrote: Nagios 3.0rc1 on RHEL3 I've RPM'd up this release - I have it working fine on one RHEL3 box, and various other rhel4 boxes without issue, with the same configuration on all boxes. One (and only one) other RHEL3 box is causing me problems - nagios is quietly refusing to start, citing problems with the config file, but not saying what they are. Any ideas on where to begin debugging? [EMAIL PROTECTED] nagios]# /etc/init.d/nagios restart Running configuration check... CONFIG ERROR! Restart aborted. Check your Nagios configuration. [EMAIL PROTECTED] nagios]# nagios -v /etc/nagios/nagios.cfg Nagios 3.0rc1 Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org) Last Modified: 12-17-2007 License: GPL Reading configuration data... *** One or more problems was encountered while processing the config files... Check your configuration file(s) to ensure that they contain valid directives and data defintions. If you are upgrading from a previous version of Nagios, you should be aware that some variables/definitions may have been removed or modified in this version. Make sure to read the HTML documentation regarding the config files, as well as the 'Whats New' section to find out what has changed. [EMAIL PROTECTED] nagios]# tail -f /var/log/nagios/nagios.log - SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ 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 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) iD8DBQFHaO8UdS4H/t4eKFARAsZbAKC6kUUVriYmfnlF6Sq+oBKcohO2MQCgjwmV TzNHY6JJQRJeHu66OUHaiEw= =+rXK -END PGP SIGNATURE- - SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ 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] Problems Starting Nagios
The message could not get passwd entry for 'nagiosadmin' suggests the user nagiosadmin does not exist on the system. Check your config files for the directive that's telling Nagios to run as nagiosadmin instead of nagios. Andy. Morris, Patrick wrote: I'm still getting an error, even though i have the permissions: drwxrwxrwx 4 nagios nagios 4096 2007-06-13 16:17 . drwxr-xr-x 11 nagios nagios 4096 2007-05-10 11:26 .. drwxrwxr-x 2 nagios nagios 4096 2007-05-10 11:24 archives -rw-rw-r-- 1 nagios nagios238 2007-06-12 17:40 comments.dat -rw-rw-r-- 1 nagios nagios239 2007-06-12 17:40 downtime.dat -rw-r--r-- 1 nagios nagios 0 2007-06-13 16:17 nagios.lock -rwxrwxrwx 1 nagios nagios 14268 2007-06-13 16:56 nagios.log -rwxrwxrwx 1 nagios nagios 118664 2007-06-13 16:56 objects.cache -rw--- 1 nagios nagios 162982 2007-06-13 16:17 retention.dat drwxrwsr-x 2 nagios nagios 4096 2007-06-13 12:08 rw [EMAIL PROTECTED]:/var/log# /usr/local/nagios/bin/nagios /usr/local/nagios/etc/nagios.cfg Nagios 2.7 Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org) Last Modified: 01-19-2007 License: GPL Warning: Could not get passwd entry for 'nagiosadmin' Nagios 2.7 starting... (PID=13453) Error: Could not create external command file '/usr/local/nagios/var/rw/nagios.cmd' as named pipe: (13) - Permission denied. If this file already exists and you are sure that another copy of Nagios is not running, you should delete this file. Bailing out due to errors encountered while trying to initialize the external command file... (PID=13453) It looks like you may have nagios running as nagiosadmin, but all the files are owned by nagios. The rw directory is not writeable by the nagiosadmin user unless it happens to be a member of the nagios group. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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 !DSPAM:37,4670aa6e343941977064108! - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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] Problems Starting Nagios
Hi All!. Im having problems configuring Nagios 2.7, i have all the .cfg files ready to get started but when i try to initialize the nagios process i get this error message: *Error: Could not create external command file '/usr/local/nagios/var/rw/nagios.cmd'. as named pipe: (13) - Permission denied. If this file already exists and you are sure that another copy of Nagios is not running, you should delete this file.* Any ideas? the nagios.cmd is supposed to be created automatically but that isn´t happening. Thanks in advance. Danilo Perdomo www.inter.com.ve - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ 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] Problems Starting Nagios
Hi, On 6/13/2007 8:57 PM, Danilo Perdomo wrote: Hi All!. Im having problems configuring Nagios 2.7, i have all the .cfg files ready to get started but when i try to initialize the nagios process i get this error message: *Error: Could not create external command file '/usr/local/nagios/var/rw/nagios.cmd'. as named pipe: (13) - Permission denied. If this file already exists and you are sure that another copy of Nagios is not running, you should delete this file.* Any ideas? the nagios.cmd is supposed to be created automatically but that isn´t happening. Well, the simplest thing to do would be to make sure the command file can be created by Nagios :-) This is usually a question of permissions: The Nagios user needs permission to write to the directory where the command file will be created. A simple chmod ... might be enough for you. More information can be found in the fine manual, by the way. Also, depending on how you installed Nagios, there might be a make target to set up these permissions - the make output informs you of the possible operations, usually. Arno Thanks in advance. Danilo Perdomo www.inter.com.ve http://www.inter.com.ve - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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 -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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] Problems Starting Nagios
-Original Message- From: [EMAIL PROTECTED] [mailto:nagios-users- [EMAIL PROTECTED] On Behalf Of Danilo Perdomo Sent: Wednesday, June 13, 2007 1:58 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Problems Starting Nagios Hi All!. Im having problems configuring Nagios 2.7, i have all the .cfg files ready to get started but when i try to initialize the nagios process i get this error message: Error: Could not create external command file '/usr/local/nagios/var/rw/nagios.cmd'. as named pipe: (13) - Permission denied. If this file already exists and you are sure that another copy of Nagios is not running, you should delete this file. Any ideas? the nagios.cmd is supposed to be created automatically but that isn´t happening. The error indicates that the user you've configured nagios to run as, usually nagios, does not have permission to write to the directory you've configured to hold the external command file (/usr/local/nagios/var/rw/). You'll need to -- - verify the directory you've specified exists and is owned by the nagios user - the nagios user can create files within that directory - if the file exists and isn't owned by the nagios user, stop nagios, remove it, restart nagios. - if the file exists and nagios isn't running, remove it then restart nagios -- Marc - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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] Problems Starting Nagios
I'm still getting an error, even though i have the permissions: *drwxrwxrwx 4 nagios nagios 4096 2007-06-13 16:17 . drwxr-xr-x 11 nagios nagios 4096 2007-05-10 11:26 .. drwxrwxr-x 2 nagios nagios 4096 2007-05-10 11:24 archives -rw-rw-r-- 1 nagios nagios238 2007-06-12 17:40 comments.dat -rw-rw-r-- 1 nagios nagios239 2007-06-12 17:40 downtime.dat -rw-r--r-- 1 nagios nagios 0 2007-06-13 16:17 nagios.lock -rwxrwxrwx 1 nagios nagios 14268 2007-06-13 16:56 nagios.log -rwxrwxrwx 1 nagios nagios 118664 2007-06-13 16:56 objects.cache -rw--- 1 nagios nagios 162982 2007-06-13 16:17 retention.dat drwxrwsr-x 2 nagios nagios 4096 2007-06-13 12:08 rw [EMAIL PROTECTED]:/var/log# /usr/local/nagios/bin/nagios /usr/local/nagios/etc/nagios.cfg Nagios 2.7 Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org) Last Modified: 01-19-2007 License: GPL Warning: Could not get passwd entry for 'nagiosadmin' Nagios 2.7 starting... (PID=13453) Error: Could not create external command file '/usr/local/nagios/var/rw/nagios.cmd' as named pipe: (13) - Permission denied. If this file already exists and you are sure that another copy of Nagios is not running, you should delete this file. Bailing out due to errors encountered while trying to initialize the external command file... (PID=13453) * Marc Powell escribió: -Original Message- From: [EMAIL PROTECTED] [mailto:nagios-users- [EMAIL PROTECTED] On Behalf Of Danilo Perdomo Sent: Wednesday, June 13, 2007 1:58 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Problems Starting Nagios Hi All!. Im having problems configuring Nagios 2.7, i have all the .cfg files ready to get started but when i try to initialize the nagios process i get this error message: Error: Could not create external command file '/usr/local/nagios/var/rw/nagios.cmd'. as named pipe: (13) - Permission denied. If this file already exists and you are sure that another copy of Nagios is not running, you should delete this file. Any ideas? the nagios.cmd is supposed to be created automatically but that isn´t happening. The error indicates that the user you've configured nagios to run as, usually nagios, does not have permission to write to the directory you've configured to hold the external command file (/usr/local/nagios/var/rw/). You'll need to -- - verify the directory you've specified exists and is owned by the nagios user - the nagios user can create files within that directory - if the file exists and isn't owned by the nagios user, stop nagios, remove it, restart nagios. - if the file exists and nagios isn't running, remove it then restart nagios -- Marc - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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 DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ 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] Problems Starting Nagios
-Original Message- From: [EMAIL PROTECTED] [mailto:nagios-users- [EMAIL PROTECTED] On Behalf Of Danilo Perdomo Sent: Wednesday, June 13, 2007 3:59 PM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Problems Starting Nagios I'm still getting an error, even though i have the permissions: drwxrwxrwx 4 nagios nagios 4096 2007-06-13 16:17 . drwxr-xr-x 11 nagios nagios 4096 2007-05-10 11:26 .. drwxrwxr-x 2 nagios nagios 4096 2007-05-10 11:24 archives -rw-rw-r-- 1 nagios nagios238 2007-06-12 17:40 comments.dat -rw-rw-r-- 1 nagios nagios239 2007-06-12 17:40 downtime.dat -rw-r--r-- 1 nagios nagios 0 2007-06-13 16:17 nagios.lock -rwxrwxrwx 1 nagios nagios 14268 2007-06-13 16:56 nagios.log -rwxrwxrwx 1 nagios nagios 118664 2007-06-13 16:56 objects.cache -rw--- 1 nagios nagios 162982 2007-06-13 16:17 retention.dat drwxrwsr-x 2 nagios nagios 4096 2007-06-13 12:08 rw [EMAIL PROTECTED]:/var/log# /usr/local/nagios/bin/nagios /usr/local/nagios/etc/nagios.cfg Nagios 2.7 Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org) Last Modified: 01-19-2007 License: GPL Warning: Could not get passwd entry for 'nagiosadmin' Where is this coming from? Did you change 'nagios_user' in nagios.cfg from the default of 'nagios'? That might explain why you don't have permissions. What are the contents of the 'rw' directory? -- Marc - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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] Problems Starting Nagios
are you sure your nagios process is run by nagios? why the setgid on rw? -luis Marc Powell wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:nagios-users- [EMAIL PROTECTED] On Behalf Of Danilo Perdomo Sent: Wednesday, June 13, 2007 3:59 PM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Problems Starting Nagios I'm still getting an error, even though i have the permissions: drwxrwxrwx 4 nagios nagios 4096 2007-06-13 16:17 . drwxr-xr-x 11 nagios nagios 4096 2007-05-10 11:26 .. drwxrwxr-x 2 nagios nagios 4096 2007-05-10 11:24 archives -rw-rw-r-- 1 nagios nagios238 2007-06-12 17:40 comments.dat -rw-rw-r-- 1 nagios nagios239 2007-06-12 17:40 downtime.dat -rw-r--r-- 1 nagios nagios 0 2007-06-13 16:17 nagios.lock -rwxrwxrwx 1 nagios nagios 14268 2007-06-13 16:56 nagios.log -rwxrwxrwx 1 nagios nagios 118664 2007-06-13 16:56 objects.cache -rw--- 1 nagios nagios 162982 2007-06-13 16:17 retention.dat drwxrwsr-x 2 nagios nagios 4096 2007-06-13 12:08 rw [EMAIL PROTECTED]:/var/log# /usr/local/nagios/bin/nagios /usr/local/nagios/etc/nagios.cfg Nagios 2.7 Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org) Last Modified: 01-19-2007 License: GPL Warning: Could not get passwd entry for 'nagiosadmin' Where is this coming from? Did you change 'nagios_user' in nagios.cfg from the default of 'nagios'? That might explain why you don't have permissions. What are the contents of the 'rw' directory? -- Marc - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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 -- Luis E. Cerezo PGS Global Shared Services - IT 281.509.8397 *** - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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] Problems Starting Nagios
I'm still getting an error, even though i have the permissions: drwxrwxrwx 4 nagios nagios 4096 2007-06-13 16:17 . drwxr-xr-x 11 nagios nagios 4096 2007-05-10 11:26 .. drwxrwxr-x 2 nagios nagios 4096 2007-05-10 11:24 archives -rw-rw-r-- 1 nagios nagios238 2007-06-12 17:40 comments.dat -rw-rw-r-- 1 nagios nagios239 2007-06-12 17:40 downtime.dat -rw-r--r-- 1 nagios nagios 0 2007-06-13 16:17 nagios.lock -rwxrwxrwx 1 nagios nagios 14268 2007-06-13 16:56 nagios.log -rwxrwxrwx 1 nagios nagios 118664 2007-06-13 16:56 objects.cache -rw--- 1 nagios nagios 162982 2007-06-13 16:17 retention.dat drwxrwsr-x 2 nagios nagios 4096 2007-06-13 12:08 rw [EMAIL PROTECTED]:/var/log# /usr/local/nagios/bin/nagios /usr/local/nagios/etc/nagios.cfg Nagios 2.7 Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org) Last Modified: 01-19-2007 License: GPL Warning: Could not get passwd entry for 'nagiosadmin' Nagios 2.7 starting... (PID=13453) Error: Could not create external command file '/usr/local/nagios/var/rw/nagios.cmd' as named pipe: (13) - Permission denied. If this file already exists and you are sure that another copy of Nagios is not running, you should delete this file. Bailing out due to errors encountered while trying to initialize the external command file... (PID=13453) It looks like you may have nagios running as nagiosadmin, but all the files are owned by nagios. The rw directory is not writeable by the nagiosadmin user unless it happens to be a member of the nagios group. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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