help needed .. newbie

Andy Shellam andy.shellam-lists at mailnetwork.co.uk
Tue Sep 5 11:37:01 CEST 2006


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" <grover1711 at gmail.com>
>> To: "rahul ramasubramanian" <rahul_chucks at hotmail.com>, "Nagios Users 
>> Mailinglist" <nagios-users at lists.sourceforge.net>
>> Subject: Re: [Nagios-users] help needed .. newbie
>> Date: Tue, 5 Sep 2006 12:02:53 +0530
>>
>> On 9/5/06, rahul ramasubramanian <rahul_chucks at hotmail.com> 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, root at localhost 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 at 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,44fd24d9143291462088831!
>
>
>   


-------------------------------------------------------------------------
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 at 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





More information about the Users mailing list