Multiple SNMP Communities with NAGIOS

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
pmpinto
Posts: 5
Joined: Mon Apr 10, 2017 1:20 pm

Multiple SNMP Communities with NAGIOS

Post by pmpinto »

Hi everyone, hope you can help me, i need monitoring deices (routers, switch, hosts) with different SNMP communities, if that possible on nagios core?.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Multiple SNMP Communities with NAGIOS

Post by tmcdonald »

Certainly. Most SNMP plugins use the -C switch to define the community string. You will just need to define that (or whatever switch the plugin may use) per-service when setting up your checks.
Former Nagios employee
pmpinto
Posts: 5
Joined: Mon Apr 10, 2017 1:20 pm

Re: Multiple SNMP Communities with NAGIOS

Post by pmpinto »

Thanks for your help, i understand that, i use check_snmp and i use "-C public" and works fine but some of my hosts use public, others public2, and some switch and routers use public3. In my check_snmp expression i use "check_snmp!-C public, public2, public3 -o snmpEngineTime.0" and that not work for my. :?:
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Multiple SNMP Communities with NAGIOS

Post by mcapra »

Here's the usage for check_snmp:
https://nagios-plugins.org/doc/man/check_snmp.html

The plugin is not able to accept multiple SNMP community strings as an argument. You will need to know what the SNMP community string is for a given device and account for that in your command and service definitions.
Former Nagios employee
https://www.mcapra.com/
pmpinto
Posts: 5
Joined: Mon Apr 10, 2017 1:20 pm

Re: Multiple SNMP Communities with NAGIOS

Post by pmpinto »

mcapra wrote:Here's the usage for check_snmp:
https://nagios-plugins.org/doc/man/check_snmp.html

The plugin is not able to accept multiple SNMP community strings as an argument. You will need to know what the SNMP community string is for a given device and account for that in your command and service definitions.
Thanks a lot man, now i am in troubles :shock: jejejejejeje.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Multiple SNMP Communities with NAGIOS

Post by cdienger »

Did you need any further help or are we okay to lock the thread?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
pmpinto
Posts: 5
Joined: Mon Apr 10, 2017 1:20 pm

Re: Multiple SNMP Communities with NAGIOS

Post by pmpinto »

I am fine, thanks for your help....
Locked