I am a beginner at Shinken 2.0. I am starting to have a good practice of Shinken basics but I can't get SNMP checks working. I really don't understand why. I have to say I am not confortable with SNMP.

My infra:
centos-shinken1, ip XX.XX.XX.XX, with shinken 2.0, webui, linux-ssh, linux-snmp, auth-cfg-passwd, rentention-mongodb modules
ubuntu-server, ip YY.YY.YY.YY, with the mongodb database and snmpd running on it

For ubuntu-server, I have installed the pack snmp-mibs-downloader as it is advised here --> https://help.ubuntu.com/community/SNMPAgent

My snmp.conf and snmpd.conf
victor@ubuntu-mgs:~$ cat /etc/snmp/snmp.conf 
# As the snmp packages come without MIB files due to license reasons, loading
# of MIBs is disabled by default. If you added the MIBs you can reenable
# loading them by commenting out the following line.
#mibs :
victor@ubuntu-mgs:~$ sudo cat /etc/snmp/snmpd.conf
rocommunity mgs_community
syscontact #####@#####.com
syslocation Europe/France/Nantes/blabla
On centos-shinken1, I can do
# snmpwalk -v 2c -c mgs_community YY.YY.YY.YY
UCD-SNMP-MIB::memTotalFree.0 = INTEGER: 98376 kB
But I can't get check_snmp_mem.pl working
# /var/lib/shinken/libexec/check_snmp_mem.pl -w 85 -c 95 -- -c mgs_community YY.YY.YY.YY
SNMP problem - no value returned
In case you would ask, my resource.d/snmp.cfg is
[root@centos-shinken1 ~]# cat /etc/shinken/resource.d/snmp.cfg 
# default snmp community
Can you help me with my problem ?



Edit: something new when I tried to use the exact command from /etc/shinken/packs/linux-snmp/commands.cfg and command "check_linux_memory"

[root@centos-shinken1 linux-snmp]# /var/lib/shinken/libexec/check_snmp_mem.pl -w 85 -c 95 -- -v 2c -c mgs_community YY.YY.YY.YY
Argument "1017920 kB" isn't numeric in numeric eq (==) at /var/lib/shinken/libexec/check_snmp_mem.pl line 118.
Argument "96328 kB" isn't numeric in subtraction (-) at /var/lib/shinken/libexec/check_snmp_mem.pl line 127.
Argument "15396 kB" isn't numeric in subtraction (-) at /var/lib/shinken/libexec/check_snmp_mem.pl line 129.
Argument "671608 kB" isn't numeric in subtraction (-) at /var/lib/shinken/libexec/check_snmp_mem.pl line 129.
MEMORY OK: 23.05 % used; Free => 96328 kB Kb, Total => 1017920 kB Kb, Cached => 671608 kB Kb, Buffered => 15396 kB Kb|ram_free=96328 kB ram_total=1017920 kB ram_cached=671608 kB ram_buffered=15396 kB
This result leads me to other questions: Is the script bad ? (it seems so because of bad parsing) Or maybe I am doing something wrong with the use of the script ?
In your case, how do you use snmp to monitor linux hosts ?