snmp community option in host definition?
Curtis Frazier
c.frazier at eastorange.k12.nj.us
Thu Jun 21 17:48:41 CEST 2007
Off the top of my head, maybe the scripts could be edited so that you
could pass the community string to the script from the service
definition. For example, here's one that I use:
define service{
use chkifoperstatus-service
host_name remote-router
service_description WAN Link 1
check_command check_ifoperstatus!put-
commstring-here!index!
}
Also, I could see some possible security concerns with trying
multiple strings. If someone is sniffing the segment, they could
catch all of your enterprise's strings pretty quickly. Unless you're
using SNMP v3.
Curtis Frazier, Network Manager
East Orange School District
973-266-2371 (voice)
973-266-5757 x258 (direct line)
973-678-5293 (fax)
On Jun 21, 2007, at 11:05 AM, James Whittington wrote:
> I am faced with the potential of having to monitor different remote
> networks with primariliy custom perl based snmp checks.
>
> The tricky part of this is that different networks may have
> different SNMP community names.
>
>
>
> While I could create different service definitions for each
> different community name or build logic in the script to try
> multiple names I was kinda surprised I didn’t see a community name
> directive in the host definition specification.
>
>
>
> I realize nagios a more a monitoring framework and not tied solely
> to snmp based checks but it seems like it’s a worthy item to have
> as part of the host definition.
>
>
>
> Maybe it there and I’m just not paying attention, if so I am sure
> someone will correct me :<)..
>
>
>
> Thanks,
>
>
>
> James Whittington
>
>
>
>
>
> ----------------------------------------------------------------------
> ---
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070621/79744460/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
-------------- next part --------------
_______________________________________________
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