error in monitoring using snmp v3

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
[email protected]
Posts: 66
Joined: Tue Aug 07, 2018 2:24 am

error in monitoring using snmp v3

Post by [email protected] »

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
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: error in monitoring using snmp v3

Post by mbellerue »

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!
[email protected]
Posts: 66
Joined: Tue Aug 07, 2018 2:24 am

Re: error in monitoring using snmp v3

Post by [email protected] »

this is error in XI
You do not have the required permissions to view the files attached to this post.
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: error in monitoring using snmp v3

Post by mbellerue »

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!
[email protected]
Posts: 66
Joined: Tue Aug 07, 2018 2:24 am

Re: error in monitoring using snmp v3

Post by [email protected] »

$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

Post 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 `
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
[email protected]
Posts: 66
Joined: Tue Aug 07, 2018 2:24 am

Re: error in monitoring using snmp v3

Post by [email protected] »

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

Post 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?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
[email protected]
Posts: 66
Joined: Tue Aug 07, 2018 2:24 am

Re: error in monitoring using snmp v3

Post by [email protected] »

that is firewall session count
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: error in monitoring using snmp v3

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked