snmp trap can contain unspecified information

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
dslaughter
Posts: 128
Joined: Wed Feb 20, 2019 3:46 pm

Re: snmp trap can contain unspecified information

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: snmp trap can contain unspecified information

Post 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
dslaughter
Posts: 128
Joined: Wed Feb 20, 2019 3:46 pm

Re: snmp trap can contain unspecified information

Post by dslaughter »

pm sent
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: snmp trap can contain unspecified information

Post by ssax »

Whichever you prefer should work. So is it working properly now or are you still having issues?
dslaughter
Posts: 128
Joined: Wed Feb 20, 2019 3:46 pm

Re: snmp trap can contain unspecified information

Post 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.
dslaughter
Posts: 128
Joined: Wed Feb 20, 2019 3:46 pm

Re: snmp trap can contain unspecified information

Post by dslaughter »

I configured all the unconfigured objects and services are created but they still show up in unconfigured objects.
dslaughter
Posts: 128
Joined: Wed Feb 20, 2019 3:46 pm

Re: snmp trap can contain unspecified information

Post 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.
dslaughter
Posts: 128
Joined: Wed Feb 20, 2019 3:46 pm

Re: snmp trap can contain unspecified information

Post by dslaughter »

pm sent
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: snmp trap can contain unspecified information

Post 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!
dslaughter
Posts: 128
Joined: Wed Feb 20, 2019 3:46 pm

Re: snmp trap can contain unspecified information

Post by dslaughter »

problem resolved. Ok to close this thread
Locked