X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=monitor%2Fscanapi.py;h=16e1fd25d84f387941f1621d2100be45582ec88d;hb=ecea36bbf6aad3bbd3e544d336b89a45cff4ab34;hp=119f7fd7e7c34075c059c64a830dba24c2401738;hpb=125c27b9121122663bada7e36eb2a00c95362d18;p=monitor.git diff --git a/monitor/scanapi.py b/monitor/scanapi.py index 119f7fd..16e1fd2 100644 --- a/monitor/scanapi.py +++ b/monitor/scanapi.py @@ -237,6 +237,8 @@ class ScanNodeInternal(ScanInterface): echo ' "kernel_version":"'`uname -a`'",' echo ' "bmlog":"'`ls /tmp/bm.log`'",' echo ' "bootcd_version":"'`cat /mnt/cdrom/bootme/ID`'",' + echo ' "boot_server":"'`cat /mnt/cdrom/bootme/BOOTSERVER`'",' + echo ' "install_date":"'`python -c "import os,time,stat; print time.ctime(os.stat('/usr/boot/plnode.txt')[stat.ST_CTIME])"`'",' echo ' "nm_status":"'`ps ax | grep nm.py | grep -v grep`'",' echo ' "dns_status":"'`host boot.planet-lab.org 2>&1`'",' echo ' "iptables_status":"'`iptables -t mangle -nL | awk '$1~/^[A-Z]+$/ {modules[$1]=1;}END{for (k in modules) {if (k) printf "%s ",k;}}'`'",' @@ -260,6 +262,8 @@ EOF """) break else: values.update({'kernel_version': "", 'bmlog' : "", 'bootcd_version' : '', + 'boot_server' : '', + 'install_date' : '', 'nm_status' : '', 'fs_status' : '', 'uptime' : '',