Page 1 of 1
error in monitoring using snmp v3
Posted: Tue Dec 17, 2019 2:23 am
i am trying to monitor firewall sessions using snmp v3, betting below error
error : (No output on stdout) stderr: /bin/sh: -c: line 0: unexpected EOF while looking for matching `''
/bin/sh: -c: line 1: syntax error: unexpected end of file
Re: error in monitoring using snmp v3
Posted: Tue Dec 17, 2019 10:32 am
by mbellerue
Is this an error you see in XI, or at the command line? Can you give us a screenshot of the error?
Re: error in monitoring using snmp v3
Posted: Tue Dec 17, 2019 9:25 pm
this is error in XI
Re: error in monitoring using snmp v3
Posted: Wed Dec 18, 2019 10:14 am
by mbellerue
Okay, so it may just be an extra ' floating around. Can you post the command for this check?
Re: error in monitoring using snmp v3
Posted: Thu Dec 19, 2019 10:40 pm
$USER1$/check_snmp -p 161 -o 'enterprises.12356.101.4.1.8.0' -P 3 --seclevel=authNoPriv --secname='snmp-name' --authproto=SHA --authpasswd='password' -m SNMPv2-SMI -w 50000 -c 750000
Re: error in monitoring using snmp v3
Posted: Fri Dec 20, 2019 8:50 am
by scottwilkerson
[email protected] wrote:$USER1$/check_snmp -p 161 -o 'enterprises.12356.101.4.1.8.0' -P 3 --seclevel=authNoPriv --secname='snmp-name' --authproto=SHA --authpasswd='password' -m SNMPv2-SMI -w 50000 -c 750000
By chance does the actual authpasswd contain a backtick
`
Re: error in monitoring using snmp v3
Posted: Mon Dec 23, 2019 10:19 pm
no, password contains alphanumeric
Re: error in monitoring using snmp v3
Posted: Thu Dec 26, 2019 7:17 am
by scottwilkerson
It is really weird because the error looks like the command is erroring on a shell script but the command you showed is a compiled script, are you 100% sure that the command you showed is what this service is using?
Re: error in monitoring using snmp v3
Posted: Sun Jan 05, 2020 2:08 pm
that is firewall session count
Re: error in monitoring using snmp v3
Posted: Mon Jan 06, 2020 10:56 am
by lmiltchev
Can you run the following commands from the command line and show the output?
Code: Select all
cat /etc/*release
uname -a
/usr/local/nagios/libexec/check_snmp -p 161 -o 'enterprises.12356.101.4.1.8.0' -P 3 --seclevel=authNoPriv --secname='snmp-name' --authproto=SHA --authpasswd='password' -m SNMPv2-SMI -w 50000 -c 750000 -v
/usr/local/nagios/libexec/check_snmp -h | head
Is this the only SNMP v3 check that doesn't work for you or none of them do? Have you copied (cloned) Nagios plugins from another server to this one by chance? Is this a source install of Nagios XI or you are using one of our pre-build images?