I have tried that but that also doesn't seem to work. Here is the output. I did change what the real host name is to: hostname.domain.com in the following.
Code: Select all
2014-06-12 12:53:24,832 20117 INFO started
2014-06-12 12:53:24,834 20117 DEBUG Parsing config...
2014-06-12 12:53:24,834 20117 DEBUG Parsing commands...
2014-06-12 12:53:24,835 20117 DEBUG Parsing new individual command.
2014-06-12 12:53:24,835 20117 INFO Hostname is being assigned as the domain name of this computer.
2014-06-12 12:53:24,835 20117 INFO HOSTNAME was not explicitly declared. Using hostname.domain.com
2014-06-12 12:53:24,835 20117 DEBUG Setting hostname to hostname.domain.com and servicename to disk-root-used-percent
2014-06-12 12:53:24,835 20117 DEBUG Parsing command: /disk/logical/|/used_percent --warning 80 --critical 90
2014-06-12 12:53:24,835 20117 DEBUG Command contained arguments.
2014-06-12 12:53:24,835 20117 DEBUG Command to be run: Nagios Hostname: hostname.domain.com -- Nagios Servicename: disk-root-used-percent -- Command: /disk/logical/|/used_percent -- Arguments: --warning 80 --critical 90 -- Stdout: None -- Return Code: None
2014-06-12 12:53:24,836 20117 DEBUG Parsing new individual command.
2014-06-12 12:53:24,836 20117 INFO Hostname is being assigned as the domain name of this computer.
2014-06-12 12:53:24,836 20117 INFO HOSTNAME was not explicitly declared. Using hostname.domain.com
2014-06-12 12:53:24,836 20117 DEBUG Setting hostname to hostname.domain.com and servicename to memory usage
2014-06-12 12:53:24,836 20117 DEBUG Parsing command: /memory/virtual/percent --warning 80 --critical 90
2014-06-12 12:53:24,836 20117 DEBUG Command contained arguments.
2014-06-12 12:53:24,836 20117 DEBUG Command to be run: Nagios Hostname: hostname.domain.com -- Nagios Servicename: memory usage -- Command: /memory/virtual/percent -- Arguments: --warning 80 --critical 90 -- Stdout: None -- Return Code: None
2014-06-12 12:53:24,837 20117 DEBUG Parsing new individual command.
2014-06-12 12:53:24,837 20117 INFO Hostname is being assigned as the domain name of this computer.
2014-06-12 12:53:24,837 20117 INFO HOSTNAME was not explicitly declared. Using hostname.domain.com
2014-06-12 12:53:24,837 20117 DEBUG Setting hostname to hostname.domain.com and servicename to cpu usage
2014-06-12 12:53:24,837 20117 DEBUG Parsing command: /cpu/percent --warning 80 --critical 90
2014-06-12 12:53:24,837 20117 DEBUG Command contained arguments.
2014-06-12 12:53:24,837 20117 DEBUG Command to be run: Nagios Hostname: hostname.domain.com -- Nagios Servicename: cpu usage -- Command: /cpu/percent -- Arguments: --warning 80 --critical 90 -- Stdout: None -- Return Code: None
2014-06-12 12:53:24,838 20117 DEBUG Parsing new individual command.
2014-06-12 12:53:24,838 20117 INFO Hostname is being assigned as the domain name of this computer.
2014-06-12 12:53:24,838 20117 INFO HOSTNAME was not explicitly declared. Using hostname.domain.com
2014-06-12 12:53:24,838 20117 DEBUG Setting hostname to hostname.domain.com and servicename to swap usage
2014-06-12 12:53:24,838 20117 DEBUG Parsing command: /memory/swap/percent --warning 80 --critical 90
2014-06-12 12:53:24,838 20117 DEBUG Command contained arguments.
2014-06-12 12:53:24,839 20117 DEBUG Command to be run: Nagios Hostname: hostname.domain.com -- Nagios Servicename: swap usage -- Command: /memory/swap/percent -- Arguments: --warning 80 --critical 90 -- Stdout: None -- Return Code: None
2014-06-12 12:53:24,839 20117 DEBUG Establishing Nagios handler...
2014-06-12 12:53:24,839 20117 DEBUG Parsing arguments: --warning 80 --critical 90
2014-06-12 12:53:24,840 20117 DEBUG String args: ['./xxx', '--warning', '80', '--critical', '90']
2014-06-12 12:53:24,841 20117 DEBUG Accessing internal API with accessor /disk/logical/|/used_percent?warning=80&critical=90&unit=
2014-06-12 12:53:24,842 20117 DEBUG Accessor result!
2014-06-12 12:53:24,842 20117 DEBUG Accessing internal API with accessor disk/logical/|/used_percent
2014-06-12 12:53:24,842 20117 DEBUG Using
2014-06-12 12:53:24,844 20117 DEBUG Reponse from server: {'returncode': 0, 'stdout': "OK: Used_percent was 9.1%|'used_percent_0'=9.1%;80;90"}
2014-06-12 12:53:24,844 20117 DEBUG Parsing arguments: --warning 80 --critical 90
2014-06-12 12:53:24,845 20117 DEBUG String args: ['./xxx', '--warning', '80', '--critical', '90']
2014-06-12 12:53:24,845 20117 DEBUG Accessing internal API with accessor /memory/virtual/percent?warning=80&critical=90&unit=
2014-06-12 12:53:24,845 20117 DEBUG Accessor result!
2014-06-12 12:53:24,845 20117 DEBUG Accessing internal API with accessor memory/virtual/percent
2014-06-12 12:53:24,845 20117 DEBUG Using
2014-06-12 12:53:24,846 20117 DEBUG Reponse from server: {'returncode': 0, 'stdout': "OK: Percent was 72.0%|'percent_0'=72.0%;80;90"}
2014-06-12 12:53:24,847 20117 DEBUG Parsing arguments: --warning 80 --critical 90
2014-06-12 12:53:24,847 20117 DEBUG String args: ['./xxx', '--warning', '80', '--critical', '90']
2014-06-12 12:53:24,848 20117 DEBUG Accessing internal API with accessor /cpu/percent?warning=80&critical=90&unit=
2014-06-12 12:53:24,848 20117 DEBUG Accessor result!
2014-06-12 12:53:24,848 20117 DEBUG Accessing internal API with accessor cpu/percent
2014-06-12 12:53:24,848 20117 DEBUG Using
2014-06-12 12:53:25,851 20117 DEBUG Reponse from server: {'returncode': 0, 'stdout': "OK: Percent was 2.0%|'percent_0'=2.0%;80;90"}
2014-06-12 12:53:25,851 20117 DEBUG Parsing arguments: --warning 80 --critical 90
2014-06-12 12:53:25,852 20117 DEBUG String args: ['./xxx', '--warning', '80', '--critical', '90']
2014-06-12 12:53:25,852 20117 DEBUG Accessing internal API with accessor /memory/swap/percent?warning=80&critical=90&unit=
2014-06-12 12:53:25,852 20117 DEBUG Accessor result!
2014-06-12 12:53:25,852 20117 DEBUG Accessing internal API with accessor memory/swap/percent
2014-06-12 12:53:25,853 20117 DEBUG Using
2014-06-12 12:53:25,853 20117 DEBUG Reponse from server: {'returncode': 0, 'stdout': "OK: Percent was 0.0%|'percent_0'=0.0%;80;90"}
2014-06-12 12:53:25,902 20117 INFO Starting new HTTP connection (1): 10.1.3.169
2014-06-12 12:53:25,903 20117 DEBUG Setting read timeout to None
2014-06-12 12:53:25,907 20117 DEBUG "GET /nrdp/?token=eld9o6d20l79&cmd=submitcheck&XMLDATA=%3Ccheckresults%3E%0A%09%3Ccheckresult%3E%0A%09%09%3Cservicename%3E%0A%09%09%09disk-root-used-percent%0A%09%09%3C%2Fservicename%3E%0A%09%09%3Chostname%3E%0A%09%09%09hostname.domain.com%0A%09%09%3C%2Fhostname%3E%0A%09%09%3Cstate%3E%0A%09%09%090%0A%09%09%3C%2Fstate%3E%0A%09%09%3Coutput%3E%0A%09%09%09OK%3A+Used_percent+was+9.1%25%7C%27used_percent_0%27%3D9.1%25%3B80%3B90%0A%09%09%3C%2Foutput%3E%0A%09%3C%2Fcheckresult%3E%0A%09%3Ccheckresult%3E%0A%09%09%3Cservicename%3E%0A%09%09%09memory+usage%0A%09%09%3C%2Fservicename%3E%0A%09%09%3Chostname%3E%0A%09%09%09hostname.domain.com%0A%09%09%3C%2Fhostname%3E%0A%09%09%3Cstate%3E%0A%09%09%090%0A%09%09%3C%2Fstate%3E%0A%09%09%3Coutput%3E%0A%09%09%09OK%3A+Percent+was+72.0%25%7C%27percent_0%27%3D72.0%25%3B80%3B90%0A%09%09%3C%2Foutput%3E%0A%09%3C%2Fcheckresult%3E%0A%09%3Ccheckresult%3E%0A%09%09%3Cservicename%3E%0A%09%09%09cpu+usage%0A%09%09%3C%2Fservicename%3E%0A%09%09%3Chostname%3E%0A%09%09%09hostname.domain.com%0A%09%09%3C%2Fhostname%3E%0A%09%09%3Cstate%3E%0A%09%09%090%0A%09%09%3C%2Fstate%3E%0A%09%09%3Coutput%3E%0A%09%09%09OK%3A+Percent+was+2.0%25%7C%27percent_0%27%3D2.0%25%3B80%3B90%0A%09%09%3C%2Foutput%3E%0A%09%3C%2Fcheckresult%3E%0A%09%3Ccheckresult%3E%0A%09%09%3Cservicename%3E%0A%09%09%09swap+usage%0A%09%09%3C%2Fservicename%3E%0A%09%09%3Chostname%3E%0A%09%09%09hostname.domain.com%0A%09%09%3C%2Fhostname%3E%0A%09%09%3Cstate%3E%0A%09%09%090%0A%09%09%3C%2Fstate%3E%0A%09%09%3Coutput%3E%0A%09%09%09OK%3A+Percent+was+0.0%25%7C%27percent_0%27%3D0.0%25%3B80%3B90%0A%09%09%3C%2Foutput%3E%0A%09%3C%2Fcheckresult%3E%0A%3C%2Fcheckresults%3E%0A HTTP/1.1" 200 170
2014-06-12 12:53:25,908 20117 DEBUG hitting url with payload: http://10.1.3.169/nrdp/?token=eld9o6d20l79&cmd=submitcheck&XMLDATA=%3Ccheckresults%3E%0A%09%3Ccheckresult%3E%0A%09%09%3Cservicename%3E%0A%09%09%09disk-root-used-percent%0A%09%09%3C%2Fservicename%3E%0A%09%09%3Chostname%3E%0A%09%09%09hostname.domain.com%0A%09%09%3C%2Fhostname%3E%0A%09%09%3Cstate%3E%0A%09%09%090%0A%09%09%3C%2Fstate%3E%0A%09%09%3Coutput%3E%0A%09%09%09OK%3A+Used_percent+was+9.1%25%7C%27used_percent_0%27%3D9.1%25%3B80%3B90%0A%09%09%3C%2Foutput%3E%0A%09%3C%2Fcheckresult%3E%0A%09%3Ccheckresult%3E%0A%09%09%3Cservicename%3E%0A%09%09%09memory+usage%0A%09%09%3C%2Fservicename%3E%0A%09%09%3Chostname%3E%0A%09%09%09hostname.domain.com%0A%09%09%3C%2Fhostname%3E%0A%09%09%3Cstate%3E%0A%09%09%090%0A%09%09%3C%2Fstate%3E%0A%09%09%3Coutput%3E%0A%09%09%09OK%3A+Percent+was+72.0%25%7C%27percent_0%27%3D72.0%25%3B80%3B90%0A%09%09%3C%2Foutput%3E%0A%09%3C%2Fcheckresult%3E%0A%09%3Ccheckresult%3E%0A%09%09%3Cservicename%3E%0A%09%09%09cpu+usage%0A%09%09%3C%2Fservicename%3E%0A%09%09%3Chostname%3E%0A%09%09%09hostname.domain.com%0A%09%09%3C%2Fhostname%3E%0A%09%09%3Cstate%3E%0A%09%09%090%0A%09%09%3C%2Fstate%3E%0A%09%09%3Coutput%3E%0A%09%09%09OK%3A+Percent+was+2.0%25%7C%27percent_0%27%3D2.0%25%3B80%3B90%0A%09%09%3C%2Foutput%3E%0A%09%3C%2Fcheckresult%3E%0A%09%3Ccheckresult%3E%0A%09%09%3Cservicename%3E%0A%09%09%09swap+usage%0A%09%09%3C%2Fservicename%3E%0A%09%09%3Chostname%3E%0A%09%09%09hostname.domain.com%0A%09%09%3C%2Fhostname%3E%0A%09%09%3Cstate%3E%0A%09%09%090%0A%09%09%3C%2Fstate%3E%0A%09%09%3Coutput%3E%0A%09%09%09OK%3A+Percent+was+0.0%25%7C%27percent_0%27%3D0.0%25%3B80%3B90%0A%09%09%3C%2Foutput%3E%0A%09%3C%2Fcheckresult%3E%0A%3C%2Fcheckresults%3E%0A
2014-06-12 12:53:25,909 20117 DEBUG content response from payload: <?xml version="1.0" encoding="utf-8"?>
<result>
<status>0</status>
<message>OK</message>
<meta>
<output>4 checks processed.</output>
</meta>
</result>
2014-06-12 12:53:25,929 20117 INFO Message from NRDP server: OK
2014-06-12 12:53:25,930 20117 INFO Meta output from NRDP server: 4 checks processed.
2014-06-12 12:53:25,930 20117 DEBUG Successfully ran handler nrdp