summaryrefslogtreecommitdiffstats
path: root/plugins/servicesnmptrapgenerator.py.in
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/servicesnmptrapgenerator.py.in')
-rwxr-xr-xplugins/servicesnmptrapgenerator.py.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/servicesnmptrapgenerator.py.in b/plugins/servicesnmptrapgenerator.py.in
index 66707d2..9f3f388 100755
--- a/plugins/servicesnmptrapgenerator.py.in
+++ b/plugins/servicesnmptrapgenerator.py.in
@@ -1,6 +1,6 @@
#!/usr/bin/python
# servicesnmptrapgenerator.py.in -- nagios plugin for generating the
-#SNMP traps on service status change
+# SNMP traps on service status change
# Copyright (C) 2014 Red Hat Inc
#
# This program is free software; you can redistribute it and/or
@@ -86,16 +86,16 @@ def buildandsendsnmptrap(args):
def formatargs(args):
- #convert nSvcNotifyType to enum value
+ # convert nSvcNotifyType to enum value
svcnotifytype = {'problem': '0',
'recovery': '1',
'acknowledgement': '2',
'flappingstart': '3',
'flappingstop': '4'}
args.nSvcNotifyType = svcnotifytype[args.nSvcNotifyType.lower()]
- #Add quotes to string parameters to handle
- #parameters with multiple words separated with
- #spaces
+ # Add quotes to string parameters to handle
+ # parameters with multiple words separated with
+ # spaces
args.nHostname = '''"''' + args.nHostname + '''"'''
args.nSvcDesc = '''"''' + args.nSvcDesc + '''"'''
args.nSvcGroupName = '''"''' + args.nSvcGroupName + '''"'''