Re: [Nagios-users] help needed .. newbie
It's always better to put the full path to the plugins (or check this is so in minimal.cfg.) $USER1$ I believe has the path to the plugins folder (nagios/libexec), so you can use "$USER1$/check_ping -H localhost" in a service definition as the check command to ping the localhost. Return code 127 means either the path to the plugin was invalid, the plugin is missing, or the nagios user doesn't have permissions to execute the plugin. rahul ramasubramanian wrote: > hi ankush.. > thanks for the help... the nagios service is running now but still i get the > same error > the error message that is being writetn in the logs is > > Warning: Return code of 127 for check of service 'PING' on host 'localhost' > wa > s out of bounds. Make sure the plugin you're trying to run actually exists. > > what does this mean... > i am using the minimal.cfg file to get nagios up and running first ... > > in the command prompt > services like ./check_ping & ./check_tcp are working fine for the > localhost.. > > thanks > rahul > > > > >> From: "ankush grover" <[EMAIL PROTECTED]> >> To: "rahul ramasubramanian" <[EMAIL PROTECTED]>, "Nagios Users >> Mailinglist" >> Subject: Re: [Nagios-users] help needed .. newbie >> Date: Tue, 5 Sep 2006 12:02:53 +0530 >> >> On 9/5/06, rahul ramasubramanian <[EMAIL PROTECTED]> wrote: >> >>> hi all >>> i am a newbie to nagios and am trying to install it on my server.. >>> i successfully installed the nagios framework and plugins and got a pre >>> flight check -ok.. >>> a nagios -s command gave the following output >>> Max host check spread: 30 min >>> First scheduled check: N/A >>> Last scheduled check:N/A >>> >>> SERVICE SCHEDULING INFORMATION >>> --- >>> Total services: 5 >>> Total scheduled services: 5 >>> Service inter-check delay method: SMART >>> Average service check interval: 300.00 sec >>> Inter-check delay: 60.00 sec >>> Interleave factor method: SMART >>> Average services per host: 5.00 >>> Service interleave factor: 5 >>> Max service check spread: 30 min >>> First scheduled check: Mon Sep 4 02:34:08 2006 >>> Last scheduled check: Mon Sep 4 02:38:08 2006 >>> >>> >>> CHECK PROCESSING INFORMATION >>> >>> Service check reaper interval: 10 sec >>> Max concurrent service checks: Unlimited >>> >>> >>> PERFORMANCE SUGGESTIONS >>> --- >>> I have no suggestions - things look okay. >>> >>> so i guessed that everything was going on allright... >>> why i tried to use my web interface to access nagios( apache web server ) >>> ... i reach the main nagios screen..( the documentation part ) >>> but on trying to click on any other tab i got the following error. >>> Internal Server Error >>> The server encountered an internal error or misconfiguration and was >>> unable >>> >>> to complete your request. >>> >>> Please contact the server administrator, [EMAIL PROTECTED] and inform them >>> of >>> the time the error occurred, and anything you might have done that may >>> have >>> caused the error. >>> >>> More information about this error may be available in the server error >>> log. >>> >>> >>> >>> what is happening >>> .. >>> some data which might be useful.. >>> no nagios directory is being created in /var/spool.. >>> can anyone shed some light on this... >>> do i need to do something to the permissions of any dir/files..( all the >>> files in the nagios installation directory have been set to 775 ) >>> >>> Any help will be greatly appriciated. >>> >> hey, >> >> Is the nagios service running >> >> If you are using redhat linux do this >> >> service nagios start (you need to be root to do this) >> >> or /etc/init.d/nagios start >> >> if Nagios is already running then check cgi.cfg under /etc/nagios directory >> >> make >> use_authentication=0 >> >> this means any user can access nagios through the we
Re: [Nagios-users] help needed .. newbie
Hi, On 9/5/2006 9:18 AM, rahul ramasubramanian wrote: > hi ankush.. > thanks for the help... the nagios service is running now but still i get the > same error > the error message that is being writetn in the logs is > > Warning: Return code of 127 for check of service 'PING' on host 'localhost' > wa > s out of bounds. Make sure the plugin you're trying to run actually exists. This is most probably not what you see in the web server error log. The original problems seems to indicate that you did not set up the web server correctly. It's described in the manual, but basically you need to make sure that the nagios cgi-scripts are executed correctly. Permissions, ownership, selinux and AppArmor are some things to check first, then make sure the web server setup is thus that these scripts are actually executed and not simply sent when they are called. > what does this mean... > i am using the minimal.cfg file to get nagios up and running first ... Have you modified the configuration so that it actually uses the plugins you installed? Nagios really needs to be setup by you. > in the command prompt > services like ./check_ping & ./check_tcp are working fine for the > localhost.. As which user? Have you checked the paths? Arno > thanks > rahul > > > > >>From: "ankush grover" <[EMAIL PROTECTED]> >>To: "rahul ramasubramanian" <[EMAIL PROTECTED]>, "Nagios Users >>Mailinglist" >>Subject: Re: [Nagios-users] help needed .. newbie >>Date: Tue, 5 Sep 2006 12:02:53 +0530 >> >>On 9/5/06, rahul ramasubramanian <[EMAIL PROTECTED]> wrote: >> >>>hi all >>>i am a newbie to nagios and am trying to install it on my server.. >>>i successfully installed the nagios framework and plugins and got a pre >>>flight check -ok.. >>>a nagios -s command gave the following output >>>Max host check spread: 30 min >>>First scheduled check: N/A >>>Last scheduled check:N/A >> >>>SERVICE SCHEDULING INFORMATION >>>--- >>>Total services: 5 >>>Total scheduled services: 5 >>>Service inter-check delay method: SMART >>>Average service check interval: 300.00 sec >>>Inter-check delay: 60.00 sec >>>Interleave factor method: SMART >>>Average services per host: 5.00 >>>Service interleave factor: 5 >>>Max service check spread: 30 min >>>First scheduled check: Mon Sep 4 02:34:08 2006 >>>Last scheduled check: Mon Sep 4 02:38:08 2006 >>> >>> >>>CHECK PROCESSING INFORMATION >>> >>>Service check reaper interval: 10 sec >>>Max concurrent service checks: Unlimited >>> >>> >>>PERFORMANCE SUGGESTIONS >>>--- >>>I have no suggestions - things look okay. >>> >>>so i guessed that everything was going on allright... >>>why i tried to use my web interface to access nagios( apache web server ) >>>... i reach the main nagios screen..( the documentation part ) >>>but on trying to click on any other tab i got the following error. >>>Internal Server Error >>>The server encountered an internal error or misconfiguration and was >>>unable >> >>>to complete your request. >>> >>>Please contact the server administrator, [EMAIL PROTECTED] and inform them of >>>the time the error occurred, and anything you might have done that may >>>have >>>caused the error. >>> >>>More information about this error may be available in the server error >>>log. >>> >>> >>> >>>what is happening >>>.. >>>some data which might be useful.. >>>no nagios directory is being created in /var/spool.. >>>can anyone shed some light on this... >>>do i need to do something to the permissions of any dir/files..( all the >>>files in the nagios installation directory have been set to 775 ) >>> >>>Any help will be greatly appriciated. >> >> >>hey, >> >>Is the nagios service running >> >>If you are using redhat linux do this >> >>service nagios start (you need to be root to do this) >> >>or /etc/init.d/nagios start >> >>if Nagios is already running then check cgi.cfg under /etc/nagios directory >> >>make >
Re: [Nagios-users] help needed .. newbie
hi ankush.. thanks for the help... the nagios service is running now but still i get the same error the error message that is being writetn in the logs is Warning: Return code of 127 for check of service 'PING' on host 'localhost' wa s out of bounds. Make sure the plugin you're trying to run actually exists. what does this mean... i am using the minimal.cfg file to get nagios up and running first ... in the command prompt services like ./check_ping & ./check_tcp are working fine for the localhost.. thanks rahul >From: "ankush grover" <[EMAIL PROTECTED]> >To: "rahul ramasubramanian" <[EMAIL PROTECTED]>, "Nagios Users >Mailinglist" >Subject: Re: [Nagios-users] help needed .. newbie >Date: Tue, 5 Sep 2006 12:02:53 +0530 > >On 9/5/06, rahul ramasubramanian <[EMAIL PROTECTED]> wrote: >>hi all >>i am a newbie to nagios and am trying to install it on my server.. >>i successfully installed the nagios framework and plugins and got a pre >>flight check -ok.. >>a nagios -s command gave the following output >>Max host check spread: 30 min >>First scheduled check: N/A >>Last scheduled check:N/A > >> >>SERVICE SCHEDULING INFORMATION >>--- >>Total services: 5 >>Total scheduled services: 5 >>Service inter-check delay method: SMART >>Average service check interval: 300.00 sec >>Inter-check delay: 60.00 sec >>Interleave factor method: SMART >>Average services per host: 5.00 >>Service interleave factor: 5 >>Max service check spread: 30 min >>First scheduled check: Mon Sep 4 02:34:08 2006 >>Last scheduled check: Mon Sep 4 02:38:08 2006 >> >> >>CHECK PROCESSING INFORMATION >> >>Service check reaper interval: 10 sec >>Max concurrent service checks: Unlimited >> >> >>PERFORMANCE SUGGESTIONS >>--- >>I have no suggestions - things look okay. >> >>so i guessed that everything was going on allright... >>why i tried to use my web interface to access nagios( apache web server ) >>... i reach the main nagios screen..( the documentation part ) >>but on trying to click on any other tab i got the following error. >>Internal Server Error >>The server encountered an internal error or misconfiguration and was >>unable > >>to complete your request. >> >>Please contact the server administrator, [EMAIL PROTECTED] and inform them of >>the time the error occurred, and anything you might have done that may >>have >>caused the error. >> >>More information about this error may be available in the server error >>log. >> >> >> >>what is happening >>.. >>some data which might be useful.. >>no nagios directory is being created in /var/spool.. >>can anyone shed some light on this... >>do i need to do something to the permissions of any dir/files..( all the >>files in the nagios installation directory have been set to 775 ) >> >>Any help will be greatly appriciated. > > >hey, > >Is the nagios service running > >If you are using redhat linux do this > >service nagios start (you need to be root to do this) > >or /etc/init.d/nagios start > >if Nagios is already running then check cgi.cfg under /etc/nagios directory > >make >use_authentication=0 > >this means any user can access nagios through the web interface and if > >use_authentication=1 then you need to assign users who can access nagios. > >Thanks & Regards > >Ankush Grover - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ 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] help needed .. newbie
On 9/5/06, rahul ramasubramanian <[EMAIL PROTECTED]> wrote: > hi all > i am a newbie to nagios and am trying to install it on my server.. > i successfully installed the nagios framework and plugins and got a pre > flight check -ok.. > a nagios -s command gave the following output > Max host check spread: 30 min > First scheduled check: N/A > Last scheduled check:N/A > > SERVICE SCHEDULING INFORMATION > --- > Total services: 5 > Total scheduled services: 5 > Service inter-check delay method: SMART > Average service check interval: 300.00 sec > Inter-check delay: 60.00 sec > Interleave factor method: SMART > Average services per host: 5.00 > Service interleave factor: 5 > Max service check spread: 30 min > First scheduled check: Mon Sep 4 02:34:08 2006 > Last scheduled check: Mon Sep 4 02:38:08 2006 > > > CHECK PROCESSING INFORMATION > > Service check reaper interval: 10 sec > Max concurrent service checks: Unlimited > > > PERFORMANCE SUGGESTIONS > --- > I have no suggestions - things look okay. > > so i guessed that everything was going on allright... > why i tried to use my web interface to access nagios( apache web server ) > ... i reach the main nagios screen..( the documentation part ) > but on trying to click on any other tab i got the following error. > Internal Server Error > The server encountered an internal error or misconfiguration and was unable > to complete your request. > > Please contact the server administrator, [EMAIL PROTECTED] and inform them of > the time the error occurred, and anything you might have done that may have > caused the error. > > More information about this error may be available in the server error log. > > > > what is happening > .. > some data which might be useful.. > no nagios directory is being created in /var/spool.. > can anyone shed some light on this... > do i need to do something to the permissions of any dir/files..( all the > files in the nagios installation directory have been set to 775 ) > > Any help will be greatly appriciated. hey, Is the nagios service running If you are using redhat linux do this service nagios start (you need to be root to do this) or /etc/init.d/nagios start if Nagios is already running then check cgi.cfg under /etc/nagios directory make use_authentication=0 this means any user can access nagios through the web interface and if use_authentication=1 then you need to assign users who can access nagios. Thanks & Regards Ankush Grover - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ 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] help needed .. newbie
hi all i am a newbie to nagios and am trying to install it on my server.. i successfully installed the nagios framework and plugins and got a pre flight check -ok.. a nagios -s command gave the following output Max host check spread: 30 min First scheduled check: N/A Last scheduled check:N/A SERVICE SCHEDULING INFORMATION --- Total services: 5 Total scheduled services: 5 Service inter-check delay method: SMART Average service check interval: 300.00 sec Inter-check delay: 60.00 sec Interleave factor method: SMART Average services per host: 5.00 Service interleave factor: 5 Max service check spread: 30 min First scheduled check: Mon Sep 4 02:34:08 2006 Last scheduled check: Mon Sep 4 02:38:08 2006 CHECK PROCESSING INFORMATION Service check reaper interval: 10 sec Max concurrent service checks: Unlimited PERFORMANCE SUGGESTIONS --- I have no suggestions - things look okay. so i guessed that everything was going on allright... why i tried to use my web interface to access nagios( apache web server ) ... i reach the main nagios screen..( the documentation part ) but on trying to click on any other tab i got the following error. Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. what is happening .. some data which might be useful.. no nagios directory is being created in /var/spool.. can anyone shed some light on this... do i need to do something to the permissions of any dir/files..( all the files in the nagios installation directory have been set to 775 ) Any help will be greatly appriciated. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ 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