Oxidized - unable to detect prompt

Hi, we have some switches for which Oxidized failed with the following error:

Line 136091: Aug 14 09:25:29 oxidized[2393395]: W, [2025-08-14T09:25:29.759785 #2393395] WARN – : X.Y.Z.W raised Oxidized::PromptUndetect with msg “unable to detect prompt: (?-mix:(^\r|\e[24;[0-9][hH])?([\w\s.-]+[#>] )($|(\e[24;[0-9][0-9]?[hH]){3}))”

X.Y.Z.W is the IP address of the switch

If I try to ssh (manually) to the switch I got the prompt and I can work on the switch:

hostname#

Any hints?

Many other switches works perfectly

Thanks
Andrea

The logical explanation would be that Oxidized does not support the device model in question. Since you did not specify which devices you are testing with I cannot verify. However, that would be a issue with Oxidized and not with LibreNMS.

Hello Andrea!

I recall having a similar error when I was first setting up my Oxidized server. It has to do with regex detecting what prompt is on your switch.

I eventually commented out the original prompt statement and just went with “prompt: #”

Hope this helps

Hi,
the device is a HP J9626A 2620-48 Switch, revision RA.15.16.0005, ROM RA.15.11

The strange is that some other device of the same model work.

The prompt is

Your previous successful login (as manager) was on 2025-08-15 20:46:55
** from x.y.z.w**
[HERE A LOT OF BLANK LINES]
somename_per_ms_11#

The regexp should be

(?-mix:(^\r|\e[24;[0-9][hH])?([\w\s.-]+[#>] )($|(\e[24;[0-9][0-9]?[hH]){3}))

and it seems to me that matches with the prompt.

Oxidized logs:

oxidized[151510]: D, [2025-08-15T21:44:34.275337 #151510] DEBUG – : lib/oxidized/input/ssh.rb: expecting [/(^\r|\e[24;[0-9][hH])?([\w\s.-]+[#>] )($|(\e[24;[0-9][0-9]?[hH]){3})/] at x.y.z.w

oxidized[151510]: D, [2025-08-15T21:44:35.587175 #151510] DEBUG – : lib/oxidized/input/cli.rb: Running post_login commands at x.y.z.w
oxidized[151510]: D, [2025-08-15T21:44:35.587304 #151510] DEBUG – : lib/oxidized/input/cli.rb: Running post_login command: “no page”, block: nil at x.y.z.w

oxidized[151510]: W, [2025-08-15T21:44:56.020573 #151510] WARN – : x.y.z.w raised Oxidized::PromptUndetect with msg “unable to detect prompt: (?-mix:(^\r|\e[24;[0-9][hH])?([\w\s.-]+[#>] )($|(\e[24;[0-9][0-9]?[hH]){3}))”

Googling I found this issue

It seems very similar to mine; I think the problem is that in these switches the firmware returns some strange characters for new line and Oxidized doesn’t recognize them!

Are there any workaround without upgrading the switch firmware?