Elukey has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/347857 )
Change subject: check_hadoop_yarn_node_state: add syslog logging for CRITICAL
states
......................................................................
check_hadoop_yarn_node_state: add syslog logging for CRITICAL states
Change-Id: I996bb680b3bb5dbd3d121e3d617295a99bf2bd40
---
M modules/role/files/analytics_cluster/hadoop/check_hadoop_yarn_node_state
1 file changed, 2 insertions(+), 1 deletion(-)
Approvals:
Ottomata: Looks good to me, but someone else must approve
Elukey: Verified; Looks good to me, approved
diff --git
a/modules/role/files/analytics_cluster/hadoop/check_hadoop_yarn_node_state
b/modules/role/files/analytics_cluster/hadoop/check_hadoop_yarn_node_state
index b342e3a..6238704 100755
--- a/modules/role/files/analytics_cluster/hadoop/check_hadoop_yarn_node_state
+++ b/modules/role/files/analytics_cluster/hadoop/check_hadoop_yarn_node_state
@@ -1,7 +1,7 @@
#!/bin/bash
# Usage:
-# hadoop_yarn_node_status [node_id]
+# check_hadoop_yarn_node_state [node_id]
#
# If node_id is not given, then the $(hostname -f):8041 will be used.
#
@@ -29,6 +29,7 @@
check_status="WARNING"
# Anything else is critical.
else
+ logger "The script check_hadoop_yarn_node_state returned CRITICAL for
status: ${node_state}"
check_status="CRITICAL"
fi
--
To view, visit https://gerrit.wikimedia.org/r/347857
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I996bb680b3bb5dbd3d121e3d617295a99bf2bd40
Gerrit-PatchSet: 3
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Elukey <[email protected]>
Gerrit-Reviewer: Elukey <[email protected]>
Gerrit-Reviewer: Giuseppe Lavagetto <[email protected]>
Gerrit-Reviewer: Ottomata <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits