What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags

View all Tags

SSH Script: active http connections



Hello, I have PRTG Network monitor I try to create a SSH Script (on Ubuntu Linux Server) for monitoring active http connections.

This is a content of my script:

netstat -anp | grep :80 | grep ESTABLISHED | wc -l | awk '{printf "0:%s:OK", $1; print ""}'

I try to run this command and work on server console. From PRTG I receive this error:

Response not wellformed: "(No info could be read for "-p": geteuid()=1000 but you should be root.) 0:52:OK " (code: PE132)

Can you help me ?

Tnx in advance Manuel

linux netstat prtg script ssh

Created on Oct 16, 2013 3:03:13 PM

1 Reply



From looking at the script, it looks like you need to have a higher level of permissions for the -p that you are using with the netstat command. The -p is asking to see info about the Effective UID for root and to do this you would need to be Root. You can change the credentials of the device to reflect that and the sensor should work as is or you can take the -p out of the command and that should work.

Created on Oct 17, 2013 2:31:52 PM by  Greg Campion [Paessler Support]

Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.