error in monitoring using snmp v3
-
[email protected]
- Posts: 66
- Joined: Tue Aug 07, 2018 2:24 am
error in monitoring using snmp v3
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
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
Is this an error you see in XI, or at the command line? Can you give us a screenshot of the error?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
[email protected]
- Posts: 66
- Joined: Tue Aug 07, 2018 2:24 am
Re: error in monitoring using snmp v3
this is error in XI
You do not have the required permissions to view the files attached to this post.
Re: error in monitoring using snmp v3
Okay, so it may just be an extra ' floating around. Can you post the command for this check?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
[email protected]
- Posts: 66
- Joined: Tue Aug 07, 2018 2:24 am
Re: error in monitoring using snmp v3
$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
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: error in monitoring using snmp v3
By chance does the actual authpasswd contain a backtick `[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
-
[email protected]
- Posts: 66
- Joined: Tue Aug 07, 2018 2:24 am
Re: error in monitoring using snmp v3
no, password contains alphanumeric
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: error in monitoring using snmp v3
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?
-
[email protected]
- Posts: 66
- Joined: Tue Aug 07, 2018 2:24 am
Re: error in monitoring using snmp v3
that is firewall session count
Re: error in monitoring using snmp v3
Can you run the following commands from the command line and show the output?
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?
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
Be sure to check out our Knowledgebase for helpful articles and solutions!