Hello, I have PRTG Network monitor 13.3.6.3110. I try to create a SSH Script (on Ubuntu Linux Server) for monitoring active http connections.
This is a content of my script:
#!/bin/bash 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
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.
Oct, 2013 - Permalink