summaryrefslogtreecommitdiffstats
path: root/glusternagios/utils.py
Commit message (Collapse)AuthorAgeFilesLines
* fix pep8 errorsv0.1.1Timothy Asir Jeyasingh2014-06-261-1/+1
| | | | | | | | Change-Id: I3121e6b4044e2f0831fe3c862fb12e8bc27cfd3c Signed-off-by: Timothy Asir Jeyasingh <tjeyasin@redhat.com> Reviewed-on: http://review.gluster.org/8160 Tested-by: Timothy Asir <tim.gluster@gmail.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
* snmp: open snmp conf file in READ modeKanagaraj M2014-04-281-1/+1
| | | | | | | Open tne snmpmanagers.conf file in READ-ONLY mode. Change-Id: Ifbb487ef5da6e09b1ff0a09cfe2efb0ab10d6ab3 Signed-off-by: Kanagaraj M <kmayilsa@redhat.com>
* SNMP Notifications:utility funtion to read SNMP managersNishanth Thomas2014-04-281-0/+14
| | | | | | | | Also added the the commands for sending SNMP traps Addressed the review comments Change-Id: I5612aaa241eb05d606a98d604be4f70486a141b0 Signed-off-by: Nishanth Thomas <nthomas@redhat.com>
* gluster-nagios-common: Corrected command definitionsShubhendu Tripathi2014-04-281-0/+2
| | | | | | | | | | Corrected the command definitions which were removed accidently Change-Id: I1e069d178d48534b72245b025b63b5e2616bd4bd Signed-off-by: Shubhendu Tripathi <shtripat@redhat.com> Reviewed-on: https://code.engineering.redhat.com/gerrit/22992 Reviewed-by: Kanagaraj Mayilsamy <kmayilsa@redhat.com>
* gluster-nagios-common: Added storage utils moduleShubhendu Tripathi2014-04-281-11/+0
| | | | | | | | | | Introduced storage device utils module Change-Id: I738b46b0750deaf91b896a8edab07b5f1a692ddb Signed-off-by: Shubhendu Tripathi <shtripat@redhat.com> Reviewed-on: https://code.engineering.redhat.com/gerrit/22254 Reviewed-by: Sahina Bose <sabose@redhat.com> Tested-by: Sahina Bose <sabose@redhat.com>
* Autoconf:moved parseXML fun to utilsNishanth Thomas2014-04-281-2/+12
| | | | | | | | | | Added few command definitions Change-Id: I90a584868f684896da49d5101ceb512a82e231dc Signed-off-by: Nishanth Thomas <nthomas@redhat.com> Reviewed-on: https://code.engineering.redhat.com/gerrit/22548 Reviewed-by: Kanagaraj Mayilsamy <kmayilsa@redhat.com> Tested-by: Ramesh Nachimuthu <rnachimu@redhat.com>
* gluster-nagios-common: Added cmd path for pvsShubhendu Tripathi2014-04-281-0/+8
| | | | | | | | | | Added command path entry for pvs command Change-Id: I933f97fd688f67131a1109e248af4bd58d79dc81 Signed-off-by: Shubhendu Tripathi <shtripat@redhat.com> Reviewed-on: https://code.engineering.redhat.com/gerrit/21687 Reviewed-by: Balamurugan Arumugam <barumuga@redhat.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
* utils: Added utils method to convert sizeSahina Bose2014-04-281-0/+17
| | | | | | | | | | | | The method converts a value from a given unit to another. Example usage: convertSize (value, 'KB', 'MB) Change-Id: If8e004076493006234be81e656eabde7d3bf9a6a Signed-off-by: Sahina Bose <sabose@redhat.com> Reviewed-on: https://cuckoo.blr.redhat.com:8443/32 Reviewed-by: Shubhendu Tripathi <shtripat@redhat.com> Reviewed-by: Nishanth Thomas <nishusemail@gmail.com>
* utils: add xml2dict()Bala.FA2014-04-281-0/+24
| | | | | | | | The method coverts xml object as elementTree to dictionary. Change-Id: Ia7eca3eb52a79979d7d1ee9d4ce1c842cc86e8ed Signed-off-by: Bala.FA <barumuga@redhat.com> Reviewed-on: https://cuckoo.blr.redhat.com:8443/22
* constants: add host and service plugin status codesBala.FA2014-04-281-0/+26
| | | | | | | | Change-Id: Ideb9975c73ebc7c7339fa4aac354a974f1e3921e Signed-off-by: Bala.FA <barumuga@redhat.com> Reviewed-on: https://cuckoo.blr.redhat.com:8443/17 Reviewed-by: Sahina Bose <sabose@redhat.com> Reviewed-by: Shubhendu Tripathi <shtripat@redhat.com>
* Initial commitv0.1.0Bala.FA2014-04-281-0/+438
Change-Id: Ie8fdd046d111a4a46abe0e162985e833323bfd7d Signed-off-by: Bala.FA <barumuga@redhat.com>