<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">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:<DIV><BR class="khtml-block-placeholder"></DIV><DIV>define service{</DIV><DIV>        use                             chkifoperstatus-service      </DIV><DIV>        host_name                       remote-router</DIV><DIV>        service_description             WAN Link 1</DIV><DIV>        check_command                   check_ifoperstatus!put-commstring-here!index!</DIV><DIV>        }</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>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.</DIV><DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>Curtis Frazier, Network Manager</DIV><DIV>East Orange School District</DIV><DIV>973-266-2371 (voice)</DIV><DIV>973-266-5757 x258 (direct line)</DIV><DIV>973-678-5293 (fax)</DIV><BR class="Apple-interchange-newline"></SPAN></SPAN> </DIV><BR><DIV><DIV>On Jun 21, 2007, at 11:05 AM, James Whittington wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"> <DIV class="Section1"><P class="MsoNormal">I am faced with the potential of having to monitor different remote networks with primariliy  custom perl based snmp checks.<O:P></O:P></P><P class="MsoNormal">The tricky part of this is that different networks may have different SNMP community names.<O:P></O:P></P><P class="MsoNormal"><O:P> </O:P></P><P class="MsoNormal">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.<O:P></O:P></P><P class="MsoNormal"><O:P> </O:P></P><P class="MsoNormal">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.<O:P></O:P></P><P class="MsoNormal"><O:P> </O:P></P><P class="MsoNormal">Maybe it there and I’m just not paying attention, if so I am sure someone will correct me :<)..<O:P></O:P></P><P class="MsoNormal"><O:P> </O:P></P><P class="MsoNormal">Thanks,<O:P></O:P></P><P class="MsoNormal"><O:P> </O:P></P><P class="MsoNormal">James Whittington<O:P></O:P></P><P class="MsoNormal"><O:P> </O:P></P><P class="MsoNormal"> <O:P></O:P></P> </DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">-------------------------------------------------------------------------</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">This SF.net email is sponsored by DB2 Express</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Download DB2 Express C - the FREE version of DB2 express and take</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">control of your XML. No limits. Just data. Click to get it now.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://sourceforge.net/powerbar/db2/_______________________________________________">http://sourceforge.net/powerbar/db2/_______________________________________________</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Nagios-users mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">::: Messages without supporting info will risk being sent to /dev/null</DIV> </BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>