check snmp
Melanie Pfefer
melanie_pfefer at yahoo.co.uk
Tue Nov 18 18:13:02 CET 2008
hi!
thanks. this is what I searching for.
I tried this command and it worked.
./check_snmp_win.pl -H jupiter -C public -2 -n snmp
1 services active (matching "snmp") : OK
I need help in the configuration files:
define command{
command_name check_snmp_win
command_line $USER1$/check_snmp_win.pl -H $HOSTADDRESS$ public -n $ARG1$
}
define service {
...
check_command check_snmp_win!$HOSTADDRESS$!snmp!
}
Is this correct?
thx
--- On Tue, 18/11/08, James Pratt <jpratt at norwich.edu> wrote:
> From: James Pratt <jpratt at norwich.edu>
> Subject: RE: [Nagios-users] check snmp
> To: melanie_pfefer at yahoo.co.uk
> Cc: nagios-users at lists.sourceforge.net
> Date: Tuesday, 18 November, 2008, 4:44 PM
> Melanie, take a look at nagios-snmp plugins -
> http://nagios.manubulon.com/
>
>
> For example, the custom command in commands.cfg to check
> for snmpd
> service on a windows box would be
>
> define command{
> command_name check_snmp_win
> command_line $USER1$/check_snmp_win.pl -H
> $HOSTADDRESS$
> communityname -n $ARG1$
> }
>
> (Obviously, $ARG1% is the windows service name - as for
> unix, you would
> use something like this:
>
> /usr/local/nagios/libexec/check_snmp_process -H 10.14.1.07
> -C public -2
> -n snmpd
>
> OK : 1 process matching snmpd(> 0)
>
> Hope this helps ,
> Regards
> Jamie
>
> > -----Original Message-----
> > From: Melanie Pfefer
> [mailto:melanie_pfefer at yahoo.co.uk]
> > Sent: Tuesday, November 18, 2008 8:10 AM
> > To: Simon Kainz
> > Cc: nagios-users at lists.sourceforge.net
> > Subject: Re: [Nagios-users] check snmp
> >
> > hi
> >
> > I already listed the available oid using snmpwalk. I
> did not find any
> oid about snmp
> >
> > should I use just any oid?
> >
> > thx
> >
> >
> > --- On Tue, 18/11/08, Simon Kainz
> <simon.kainz at tugraz.at> wrote:
> >
> > > From: Simon Kainz <simon.kainz at tugraz.at>
> > > Subject: Re: [Nagios-users] check snmp
> > > To:
> > > Cc: nagios-users at lists.sourceforge.net
> > > Date: Tuesday, 18 November, 2008, 2:59 PM
> > > Melanie Pfefer wrote:
> > > > Hi
> > > >
> > > > perhaps I was not clear in my question.
> > > >
> > > > What is the OID that should be used to see
> if snmp
> > > service is up or down?
> > > >
> > > > thank you
> > >
> > > Hi!
> > > I would suggest using snmpwalk to see which
> services are
> > > available
> > > first. This normally returns a pretty long list
> of values
> > > to pick one from.
> > >
> > > regards,
> > >
> > >
> > >
> > >
> > > --
> > > Simon Kainz, BSc
> > > Graz, University of Technology
> > > Department Computing
> > > Phone: ++43 (0) 316 / 873 6885
> > >
> > >
> ------------------------------------------------------------------------
> -
> > > This SF.Net email is sponsored by the Moblin Your
> Move
> > > Developer's challenge
> > > Build the coolest Linux based applications with
> Moblin SDK
> > > & win great prizes
> > > Grand prize is a trip for two to an Open Source
> event
> > > anywhere in the world
> > > http://moblin-
> >
> contest.org/redirect.php?banner_id=100&url=/___________________________
> > ____________________
> > > 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
> >
> >
> >
> >
> >
> ------------------------------------------------------------------------
> -
> > This SF.Net email is sponsored by the Moblin Your Move
> Developer's
> challenge
> > Build the coolest Linux based applications with Moblin
> SDK & win great
> prizes
> > Grand prize is a trip for two to an Open Source event
> anywhere in the
> world
> >
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> > _______________________________________________
> > 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
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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