[Nagiosplug-help] RE: Nagiosplug-help digest, Vol 1 #151 - 3 msgs

Dave Sanders Dave_Sanders at sento.com
Thu Dec 19 13:48:09 CET 2002


Do the mrtg-plugins for netsaint work for nagios ?

Dave

-----Original Message-----
From: nagiosplug-help-request at lists.sourceforge.net
[mailto:nagiosplug-help-request at lists.sourceforge.net]
Sent: Thursday, December 19, 2002 1:26 PM
To: nagiosplug-help at lists.sourceforge.net
Subject: Nagiosplug-help digest, Vol 1 #151 - 3 msgs


Send Nagiosplug-help mailing list submissions to
	nagiosplug-help at lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
or, via email, send a message with subject or body 'help' to
	nagiosplug-help-request at lists.sourceforge.net

You can reach the person managing the list at
	nagiosplug-help-admin at lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Nagiosplug-help digest..."


Today's Topics:

   1. Nagat 1.0a2 not working with Redhat 8.0 (New User)
   2. check_by_ssh always returns OK (exit code 0) (Blair Rampling)
   3. check_ldap core dumps (Victor Hiebert)

--__--__--

Message: 1
Date: Wed, 18 Dec 2002 13:13:35 -0800 (PST)
From: New User <brmm28 at yahoo.com>
To: nagiosplug-help at lists.sourceforge.net
Subject: [Nagiosplug-help] Nagat 1.0a2 not working with Redhat 8.0

--0-1284488050-1040246015=:60596
Content-Type: text/plain; charset=us-ascii


I have Redhat 8.0 installed with the following rpms PHP 4.2.2-8.0.5 and Apache 2.0.40-11. I have installed Nagat 1.0a2. When I go to the Nagat webpage I have the links and the buttons but the page does not have a background.  

 

If I click on the host's link, new I get this:

 

Warning: Variable passed to reset() is not an array or object in /var/www/html/nagat/hostedit.php on line 110

 

0 ) { print ObjectInheritance($hostname,OBJECTTYPE); } if( !empty($hostname) ) { $userobjs = NagiosObjectUsage($hostname,OBJECTTYPE); if ( $userobjs != NULL ) { print ObjectUsage($hostname,OBJECTTYPE,$userobjs); } } ?>

 

If I click host groups, new I get this

 

Warning: Variable passed to reset() is not an array or object in /var/www/html/nagat/hostgroupedit.php on line 81

 

0 ) { print ObjectInheritance($hostgroupname,OBJECTTYPE); } $userobjs = NagiosObjectUsage($hostgroupname,OBJECTTYPE); if ( $userobjs != NULL ) { print ObjectUsage($hostgroupname,OBJECTTYPE,$userobjs); } ?>

 

As I click other links I get similar result has anyone found a fix for this problem? If at all possible I would like to get this working with the current version of Apache and PHP that I am using. 

 

Any help would be greatly appreciated 

 

Thanks!

 

 



---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
--0-1284488050-1040246015=:60596
Content-Type: text/html; charset=us-ascii

<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-FAMILY: Arial"><FONT size=3>I have Redhat 8.0 installed with the following rpms PHP 4.2.2-8.0.5 and Apache 2.0.40-11. I have installed Nagat 1.0a2. When I go to the Nagat webpage I have the links and the buttons but the page does not have a background.<SPAN style="mso-spacerun: yes">  </SPAN><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-FAMILY: Arial"><o:p><FONT size=3> </FONT></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-FAMILY: Arial"><FONT size=3>If I click on the host's link, new I get this:<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-FAMILY: Arial"><o:p><FONT size=3> </FONT></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"><FONT size=3><B>Warning</B>: Variable passed to reset() is not an array or object in <B>/var/www/html/nagat/hostedit.php</B> on line <B>110<o:p></o:p></B></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-FAMILY: Arial"><o:p><FONT size=3> </FONT></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>0 ) { print ObjectInheritance($hostname,OBJECTTYPE); } if( !empty($hostname) ) { $userobjs = NagiosObjectUsage($hostname,OBJECTTYPE); if ( $userobjs != NULL ) { print ObjectUsage($hostname,OBJECTTYPE,$userobjs); } } ?></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" size=3> </FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>If I click host groups, new I get this</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" size=3> </FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face="Times New Roman"><B>Warning</B>: Variable passed to reset() is not an array or object in <B>/var/www/html/nagat/hostgroupedit.php</B> on line <B>81<o:p></o:p></B></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" size=3> </FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>0 ) { print ObjectInheritance($hostgroupname,OBJECTTYPE); } $userobjs = NagiosObjectUsage($hostgroupname,OBJECTTYPE); if ( $userobjs != NULL ) { print ObjectUsage($hostgroupname,OBJECTTYPE,$userobjs); } ?></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" size=3> </FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>As I click other links I get similar result has anyone found a fix for this problem? If at all possible I would like to get this working with the current version of Apache and PHP that I am using. </FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3></FONT> </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>Any help would be greatly appreciated </FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3></FONT> </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>Thanks!</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" size=3> </FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"> </P><p><br><hr size=1>Do you Yahoo!?<br>
<a href="http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com">Yahoo! Mail Plus</a> - Powerful. Affordable. <a href="http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com">Sign up now</a>
--0-1284488050-1040246015=:60596--


--__--__--

Message: 2
Date: Wed, 18 Dec 2002 13:24:42 -0800
From: "Blair Rampling" <brampling at methanex.com>
To: <nagiosplug-help at lists.sourceforge.net>
Subject: [Nagiosplug-help] check_by_ssh always returns OK (exit code 0)

I have a number of things monitored by check_by_ssh. Even when the remote =
plugin exits with an error code other than 0, nagios shows OK leading me =
to believe that check_by_ssh is returning error code 0 regardless. I am =
using 1.3 beta 1 of the plugins and nagios 1.0b6. Why is this happening =
and how do I fix it? Thanks.

Here are two examples of checks that are returning OK when they shouldn't:

# 'check_remote_mem' command definition
define command{
        command_name    check_remote_mem
        command_line    $USER1$/check_by_ssh -f -l sysadmin -H $HOSTADDRESS=
$ -C "~/plugins/check_mem.pl -u -w $ARG1$ -c $ARG2$"
        }

# 'check_remote_ps_proc' command definition
define command{
        command_name    check_remote_ps_proc
        command_line    $USER1$/check_by_ssh -f -l sysadmin -H $HOSTADDRESS=
$ -C "~/plugins/check_psproc.pl $ARG1$ $ARG2$"
        }

- --
Blair Rampling



--__--__--

Message: 3
Date: Wed, 18 Dec 2002 14:20:44 -0800
From: Victor Hiebert <vic at sfu.ca>
Reply-To: vic at sfu.ca
Organization: Simon Fraser University
To: nagiosplug-help at lists.sourceforge.net
Subject: [Nagiosplug-help] check_ldap core dumps

I am using nagios-plugins-1.3.0-beta2 with openldap-2.0.27 libs on
FreeBSD 4.7-RELEASE.

A full LDAP install was done from source.  libs were installed into
/usr/local/include (the default), however the nagios plugins
./configure program was unable to find them.  I moved the
libs into /usr/lib and everything seemed to configure/compile fine.
When I test check_ldap on the command line I get an error and core
dump, the same thing happens when i try and use it with a nagios
script. Examples follow..

$ls -l /usr/lib/libldap* && ls -l /usr/lib/liblber*
-r--r--r--  1 root  wheel  1788564 Dec 18 13:59 /usr/lib/libldap.a
-r--r--r--  1 root  wheel      703 Dec 18 13:59 /usr/lib/libldap.la
-r--r--r--  1 root  wheel   518031 Dec 18 13:59 /usr/lib/libldap.so
-r--r--r--  1 root  wheel   518031 Dec 18 13:59 /usr/lib/libldap.so.2
-r--r--r--  1 root  wheel  1977534 Dec 18 13:59 /usr/lib/libldap_r.a
-r--r--r--  1 root  wheel      715 Dec 18 13:59 /usr/lib/libldap_r.la
-r--r--r--  1 root  wheel   555140 Dec 18 13:59 /usr/lib/libldap_r.so
-r--r--r--  1 root  wheel   555140 Dec 18 13:59 /usr/lib/libldap_r.so.2
-r--r--r--  1 root  wheel  208076 Dec 18 13:59 /usr/lib/liblber.a
-r--r--r--  1 root  wheel     688 Dec 18 13:59 /usr/lib/liblber.la
-r--r--r--  1 root  wheel  124239 Dec 18 13:59 /usr/lib/liblber.so
-r--r--r--  1 root  wheel  124239 Dec 18 13:59 /usr/lib/liblber.so.2

$./check_ldap -V
check_ldap (nagios-plugins 1.3.0-beta2) 1.2

$./check_ldap -H 10.57.1.1
Segmentation fault (core dumped)

$tail /usr/local/nagios/var/nagios.log
[1040248168] Warning: Return code of 139 for check of service 'ldap' on host 'host0.domain.local' was out of bounds.
[1040248468] Warning: Return code of 139 for check of service 'ldap' on host 'host0.domain.local' was out of bounds.
[1040248768] Warning: Return code of 139 for check of service 'ldap' on host 'host0.domain.local' was out of bounds.




--__--__--

_______________________________________________
Nagiosplug-help mailing list
Nagiosplug-help at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagiosplug-help


End of Nagiosplug-help Digest




More information about the Help mailing list