snmp trap can contain unspecified information
-
- Posts: 131
- Joined: Wed Feb 20, 2019 3:46 pm
Re: snmp trap can contain unspecified information
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
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
Please run this command and send me the resulting /tmp/SNMPFILES.zip file again:
Code: Select all
zip -r /tmp/SNMPFILES.zip /etc/snmp
-
- Posts: 131
- Joined: Wed Feb 20, 2019 3:46 pm
Re: snmp trap can contain unspecified information
Whichever you prefer should work. So is it working properly now or are you still having issues?
-
- Posts: 131
- Joined: Wed Feb 20, 2019 3:46 pm
Re: snmp trap can contain unspecified information
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.
-
- Posts: 131
- Joined: Wed Feb 20, 2019 3:46 pm
Re: snmp trap can contain unspecified information
I configured all the unconfigured objects and services are created but they still show up in unconfigured objects.
-
- Posts: 131
- Joined: Wed Feb 20, 2019 3:46 pm
Re: snmp trap can contain unspecified information
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.
-
- Posts: 131
- Joined: Wed Feb 20, 2019 3:46 pm
Re: snmp trap can contain unspecified information
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:
Thank you!
Code: Select all
https://support.nagios.com/tickets/
-
- Posts: 131
- Joined: Wed Feb 20, 2019 3:46 pm
Re: snmp trap can contain unspecified information
problem resolved. Ok to close this thread