echo "Performing uptime changes for sites, nodes, and pcus"
########################
# 3. record last-changed for sites, nodes and pcus.
-${MONITOR_SCRIPT_ROOT}/sitebad.py --increment || :
-${MONITOR_SCRIPT_ROOT}/nodebad.py --increment || :
-${MONITOR_SCRIPT_ROOT}/pcubad.py --increment || :
+${MONITOR_SCRIPT_ROOT}/sitebad.py || :
+${MONITOR_SCRIPT_ROOT}/nodebad.py || :
+${MONITOR_SCRIPT_ROOT}/pcubad.py || :
echo "Archiving pkl files"
#########################
from monitor.sources import comon
from monitor.wrapper import plc, plccache
-from nodequery import verify,query_to_dict,node_select
import traceback
from nodecommon import nmap_port_status
node.history = HistoryNodeRecord.by_hostname(node.hostname)
- if node.port_status:
- node.ports = format_ports(node.port_status)
+ node.ports = format_ports(node.port_status)
+
try:
exists = node.plc_node_stats['last_contact']
except:
session.bind = metadata.bind
filtercount = {'active' : 0, 'acknowledged': 0, 'all' : 0}
# With Acknowledgement
- sql_ack = 'SELECT DISTINCT h.host,t.description,t.priority,t.lastchange,a.message '+ \
+ sql_ack = 'SELECT DISTINCT h.host,t.description,t.priority,t.lastchange,a.message,e.eventid '+ \
' FROM triggers t,hosts h,items i,functions f, hosts_groups hg,escalations e,acknowledges a ' + \
' WHERE f.itemid=i.itemid ' + \
' AND h.hostid=i.hostid ' + \
<th>Issue (severity)</th>
<th>Last change</th>
<th>Notes (acknowledged)</th>
+ <th></th>
</tr>
</thead>
<tbody>
<!-- NOTE: only one of the next two columns will be displayed. -->
<td py:if="val"><a href="${zabbix_event_ack_link(node[5])}">Provide Ack</a></td>
<td py:if="not val" py:content="node[5]">Message from user</td>
+ <td py:if="not val"><a href="${zabbix_event_ack_link(node[6])}">Add</a></td>
</tr>
</tbody>
</table>