Oops..SNMP :: Not SMTP Shows Critical but chec ks OK
George Miscioscia
George.Miscioscia at Ticketmaster.com
Mon Nov 4 21:21:29 CET 2002
I had issues getting check_snmp to work also, even though
/usr/local/bin/snmpget was OK. The resolution was to modify the command
definition in /usr/local/nagios/etc/checkcommands.cfg. The original command
line read:
command_line /usr/local/bin/snmpget -m ALL -v 1 -H $HOSTADDRESS$
-c public $ARG1$
To get it to function properly, we had to change the line to read:
command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -C
public
-----Original Message-----
From: Jamin [mailto:jragle at unm.edu]
Sent: Monday, November 04, 2002 10:49 AM
To: Subhendu Ghosh
Cc: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Oops..SNMP :: Not SMTP Shows Critical but checks
OK
Ugh, I hate it when I do that...
SNMP.
Sorry all.
Its monday and I have not had my coffee.
Right now I guess I am about as sharp as a wet mouse.
Anyway, my snmp is giving a WARNING in Nagios, but when the plug is run by
hand, everything is OK. If you have any suggestions on how to track this
bug, please let me know.
-Jamin
On Mon, 4 Nov 2002, Subhendu Ghosh wrote:
>
> SNMP or SMTP ?
>
> On Mon, 4 Nov 2002, Jamin wrote:
>
> > my version of check_snmp is:
> > check_snmp (nagios-plugins 1.3.0-alpha1) 1.1.1.1
> >
> > almost the same problem. (I get a Warning instead of Critical.)
> > My return code when run by hand is 0 (zero) and I also get a SMTP OK.
> >
> > weird. why would nagios interpret it as something else?
> >
> > On Mon, 4 Nov 2002, Subhendu Ghosh wrote:
> >
> > >
> > > what version of check_smtp and what mail server ?
> > >
> > >
> > >
> > > On Mon, 4 Nov 2002, Shawn Rose wrote:
> > >
> > > > Check_SMTP plugin.. Testing returns OK <SMTP OK - 0 second response
> > > > time>
> > > > But it still flags it as CRITICAL
> > > >
> > > >
> > > > I saw this question posted in the archives but I didn't see a
> > > > resolution.
> > > >
> > > > Any suggestions?
> > > >
> > > > # Service definition
> > > > define service{
> > > > use generic-service ;
Name
> > > > of service template to use
> > > >
> > > > host_name White,Blue
> > > > service_description SMTP
> > > > is_volatile 0
> > > > check_period 24x7
> > > > max_check_attempts 3
> > > > normal_check_interval 3
> > > > retry_check_interval 1
> > > > contact_groups nt-admins
> > > > notification_interval 120
> > > > notification_period 24x7
> > > > notification_options w,u,c,r
> > > > check_command check_smtp
> > > > }
> > > >
> > > >
> > > > Shawn
> > > >
> > > >
> > >
> > > --
> > >
> > >
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.net email is sponsored by: ApacheCon, November 18-21 in
> > > Las Vegas (supported by COMDEX), the only Apache event to be
> > > fully supported by the ASF. http://www.apachecon.com
> > > _______________________________________________
> > > Nagios-users mailing list
> > > Nagios-users at lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/nagios-users
> > >
> >
> > ______________________________________________________________________
> > Tautology -- "A tautology is a thing which is tautological."
> > -- Unknown
> > ______________________________________________________________________
> >
>
> --
>
>
----------------------------------------------------------------------
#include <stdio.h>
int main(void){char*s="\xA\x2C\0005ofczgei*e~*xo~~oh*mdcb~sdk*o|kb*\
\177es*~-deN",*i;for(i=s+*(s+1);i-s-1;)printf("%c",*i--^*s);return 0;}
______________________________________________________________________
-------------------------------------------------------
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
-------------------------------------------------------
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com
More information about the Users
mailing list