Page 3 of 3

Re: snmp trap can contain unspecified information

Posted: Wed Nov 04, 2020 9:34 am
by dslaughter
I added the this to the trap definition but its not working correctly. Its returning an empty string.

Endpoint Unavailable $7 `echo '$8' | sed -i 's/ */ /g'`

The traps looks like this in unconfigured objects.

Endpoint Unavailable sc1 2020-11-04 11:43:01

Re: snmp trap can contain unspecified information

Posted: Wed Nov 04, 2020 6:46 pm
by ssax
Please run this command and send me the resulting /tmp/SNMPFILES.zip file again:

Code: Select all

zip -r /tmp/SNMPFILES.zip /etc/snmp

Re: snmp trap can contain unspecified information

Posted: Thu Nov 05, 2020 9:25 am
by dslaughter
pm sent

Re: snmp trap can contain unspecified information

Posted: Thu Nov 05, 2020 5:31 pm
by ssax
Whichever you prefer should work. So is it working properly now or are you still having issues?

Re: snmp trap can contain unspecified information

Posted: Fri Nov 06, 2020 8:14 am
by dslaughter
Still having issues. The filter is still leaving spaces in the string even though the filter should remove spaces. I deleted all the services that have been created and got rid of all unconfigured objects. I did get some new traps overnight. I'm going to configure them and see if they update the service or still show up as an unconfigured object.

Re: snmp trap can contain unspecified information

Posted: Fri Nov 06, 2020 8:19 am
by dslaughter
I configured all the unconfigured objects and services are created but they still show up in unconfigured objects.

Re: snmp trap can contain unspecified information

Posted: Fri Nov 06, 2020 8:25 am
by dslaughter
I guess my fonts are too small for my old eyes. I found an extra space in the regular expression and removed it so that should remove all spaces now. I deleted the services and unconfigured objects. I hope I'll find out if this works today. I'll definitely have an answer by Monday.

Re: snmp trap can contain unspecified information

Posted: Fri Nov 06, 2020 9:19 am
by dslaughter
pm sent

Re: snmp trap can contain unspecified information

Posted: Fri Nov 06, 2020 4:53 pm
by ssax
What I originally sent should work, I labbed it up before sending it to you. We'll need to debug on a remote, please create a ticket for this and include a link back to this forum thread so we can get a remote session setup:

Code: Select all

https://support.nagios.com/tickets/
Thank you!

Re: snmp trap can contain unspecified information

Posted: Fri Nov 13, 2020 9:00 am
by dslaughter
problem resolved. Ok to close this thread