My zenping.conf only has one line with 'name crt-monitor' in it which is the 
server name.  We believe that some of the commands used in the PY file are not 
implemented on our server hence the error we are getting.  We rewrote the file 
using shell commands (called it tracepath.sh and put it in the same directory). 
 Try using this and see if it does what you need.  

I also added a 'Tracepath' command under the zenoss Settings tab and used the 
command line of 'tracepath.sh ${device/id}'. Now I can select the Run Commands 
drop down under each object and check the trace path.


Code:
#!/bin/bash
if [ -z $1 ]; then
  echo "Usage: $0 destination"
  echo "eg: $0 `hostname`"
else
  routepath=""
  echo "From "$HOSTNAME" to"
  for name in `/usr/sbin/traceroute $1|grep  "^ "|awk '{print $2}'`; do
    routepath="$routepath$name -> ";
  done
  echo $routepath| sed s/' ->$'/''/g
fi







-------------------- m2f --------------------

Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=29992#29992

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to