[prev in list] [next in list] [prev in thread] [next in thread]
List: nagios-users
Subject: Re: [Nagios-users] SNMP through NAT!
From: Marcus <adesperateuser () googlemail ! com>
Date: 2008-03-28 14:27:18
Message-ID: 47ED0046.7010904 () googlemail ! com
[Download RAW message or body]
jeff surofsky schrieb:
> obviously I have to use different ports, but how do I configure nagios to send snmp \
> on different ports? I think it may be in commands.cfg
Hi Jeff,
I have a command-definition in
etc/objects/commands.cfg
# 'check_snmp' command definition
define command{
command_name check_snmp
command_line $USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$
}
Here you could probably specifiy additional ARGs, for example the Port
used (after $ARG1$).
If you invoke check_snmp with -h (in libexec), it gives you the possible
arg-list, including -p for port.
(-p, --port=INTEGER Port number (default: 161))
But wouldn't it be simpler, to just tell the FW to allow Nagios-IP on
Box[1-4] for UDP 161 ?
What you take as "obvious" isn't that obvious for me, but maybe I just
don't get your environment right. ;-)
HTH,
Greetz,
Marcus
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Nagios-users mailing list
Nagios-users@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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic