[Nagiosplug-devel] [ nagiosplug-Bugs-1086739 ] check_nagios anomoly with 1.4 vs. 1.3.1

SourceForge.net noreply at sourceforge.net
Thu Dec 16 23:16:01 CET 2004


Bugs item #1086739, was opened at 2004-12-16 21:41
Message generated for change (Comment added) made by tonvoon
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1086739&group_id=29880

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: madhamster (madhamster)
>Assigned to: Ton Voon (tonvoon)
Summary: check_nagios anomoly with 1.4 vs. 1.3.1

Initial Comment:
When using check_nagios 1.3.1 and the check_nagios
command from either the commandline or from the cgi.cfg
(/usr/local/nagios/libexec/check_nagios
/usr/local/nagios/var/status.log 5
'/usr/local/nagios/bin/nagios'), the "nagios" process
can be found just fine.  However, when using the
1.4alpha2 plug-ins, the check_nagios binary will only
return a correct answer with
/usr/local/nagios/libexec/check_nagios
/usr/local/nagios/var/status.log 5 'nagios' (only
"nagios" being passed to the "ps" command).

Is the ps command being invoked in a different way
between the 1.3.1 and 1.4alpha2 check_nagios binaries?

I would try with 1.4alpha3, but I cannot get it to
complie as of yet, although I just successfully
recompiled 1.4alpha2 and 1.3.1...

----------------------------------------------------------------------

>Comment By: Ton Voon (tonvoon)
Date: 2004-12-17 07:15

Message:
Logged In: YES 
user_id=664364

Madhamster,

Thanks for the report. Yes, check_nagios has had a change in 1.4 as it 
now uses the same information that check_procs uses.

However, check_procs has had -C changed so that it only reports the 
shortname of the command (without the full path). This is for consistency 
because some OS only return the short path in their ps output.

Unfortunately, this has affected check_nagios. Is it sufficient to check 
just the shortname? Alternatively, we could check the args output, which 
would be the full output including argument values.

Do you have an opinion?

Ton

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1086739&group_id=29880




More information about the Devel mailing list