[Nagiosplug-devel] Nagiosplug-devel Digest, Vol 6, Issue 14

Brian A. Seklecki bseklecki at collaborativefusion.com
Tue Nov 21 16:21:46 CET 2006


check_ping is just a wrapper around a manual child process exec of your
system's $PATH/ping.  

There has to be C code to parse the output of the result, which is
generally the same on a lot of systems given the right combinations of
flags/args.

In this case, there probably isn't code of the HP-UX version (which is
coming up on 15 years old, anyway).

$ grep -i hp check_ping.c 
$ grep -i child check_ping.c
        if ((child_process = spopen (cmd)) == NULL)
        child_stderr = fdopen (child_stderr_array[fileno
(child_process)], "r");
        if (child_stderr == NULL)
        while (fgets (buf, MAX_INPUT_BUFFER - 1, child_process)) {
        while (fgets (buf, MAX_INPUT_BUFFER - 1, child_stderr)) {
        (void) fclose (child_stderr);
        if (spclose (child_process))


Options:

1) Use check_icmp
2) Use check_fping
3) Patches

~BAS


On Mon, 2006-11-20 at 13:59 +0530, Santhosh Injineri wrote:
> 
> Hi All ,
>  
> I am having error while using the check_ping plugin on HP-UX ..wherein
> i have compiled nagios-plugin on HP-UX ... version is (1.4.5) with
> Nagios version(2.5) ...
>  
> I am running the following command
>  
> ./check_ping -H localhost -w 99,99% -c 100,100% 
>  
> output is 
>  
> /usr/sbin/ping
> CRITICAL - Could not interpret output from ping command
>  
> Please help me in this regard
>  
>  
> Thanks in Advance
>  
> Regards
> Santhosh
> 
>  
>  
> 
> 
> 
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________________ Nagios Plugin Development Mailing List Nagiosplug-devel at lists.sourceforge.net Unsubscribe at https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel ::: Please include plugins version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
-- 
Brian A. Seklecki <bseklecki at collaborativefusion.com>
Collaborative Fusion, Inc.





More information about the Devel mailing list