NRDP not processing Host and Service checks

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

NRDP not processing Host and Service checks

Postby karthek » Tue Dec 26, 2017 9:28 am

Hi,

I have NRDP configured with Nagios core. Passive host and service checks are not getting processed by NRDP. I don't see them in nagios.cmd nor in nagios.log, no errors while submitting from http://localhost/nrdp

But, the downtime requests are getting processed and i'm seeing them in the nagios.cmd file. What could be missing?
"Machines don't make mistakes, we do."
karthek
 
Posts: 64
Joined: Fri Aug 14, 2015 5:55 am
Location: INDIA

Re: NRDP not processing Host and Service checks

Postby dwhitfield » Wed Dec 27, 2017 11:47 am

What version of NRDP are you running? 1.5.1 was released today: https://github.com/NagiosEnterprises/nr ... HANGES.rst
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
dwhitfield
The Doctor
 
Posts: 4307
Joined: Wed Sep 21, 2016 10:29 am
Location: Nagios Enterprises, LLC

Re: NRDP not processing Host and Service checks

Postby karthek » Thu Dec 28, 2017 2:43 am

I was using 1.5.0
"Machines don't make mistakes, we do."
karthek
 
Posts: 64
Joined: Fri Aug 14, 2015 5:55 am
Location: INDIA

Re: NRDP not processing Host and Service checks

Postby kyang » Thu Dec 28, 2017 11:25 am

Did you upgrade to 1.5.1?

Otherwise, what is the result when you submit a check in http://localhost/nrdp?

Does it process with something like this?
Code: Select all
<result>
<status>0</status>
<message>OK</message>
<meta>
<output>2 checks processed.</output>
</meta>
</result>


Or a different error?
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
kyang
Support Tech
 
Posts: 1167
Joined: Tue Jul 25, 2017 3:35 pm

Re: NRDP not processing Host and Service checks

Postby karthek » Sat Dec 30, 2017 8:53 am

That's the thing here. No errors. Just a OK at the bottom and that too disappears soon,
Attachments
Screenshot from 2017-12-31 00-50-45.png
"Machines don't make mistakes, we do."
karthek
 
Posts: 64
Joined: Fri Aug 14, 2015 5:55 am
Location: INDIA

Re: NRDP not processing Host and Service checks

Postby karthek » Sat Dec 30, 2017 9:01 am

i've upgraded it to 1.5.1

If i submit the command, it's not showing any output, just a blank page. Any thoughts?
"Machines don't make mistakes, we do."
karthek
 
Posts: 64
Joined: Fri Aug 14, 2015 5:55 am
Location: INDIA

Re: NRDP not processing Host and Service checks

Postby dwhitfield » Mon Jan 01, 2018 5:51 pm

What are your permissions on the nagios.log and status.dat? Please attach your nagios.cfg.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
dwhitfield
The Doctor
 
Posts: 4307
Joined: Wed Sep 21, 2016 10:29 am
Location: Nagios Enterprises, LLC

Re: NRDP not processing Host and Service checks

Postby karthek » Tue Jan 02, 2018 12:56 pm

Please see below file permissions and attached nagios.cfg

root@karthek:/usr/local/nagios/var# ll nagios.log
-rw-r--r-- 1 nagios nagios 8171 Jan 2 23:22 nagios.log
root@karthek:/usr/local/nagios/var# ll status.dat
-rw-rw-r-- 1 nagios nagios 13471 Jan 2 23:22 status.dat
Attachments
nagios.cfg
(43.78 KiB) Downloaded 6 times
"Machines don't make mistakes, we do."
karthek
 
Posts: 64
Joined: Fri Aug 14, 2015 5:55 am
Location: INDIA

Re: NRDP not processing Host and Service checks

Postby kyang » Wed Jan 03, 2018 4:31 pm

It looks like there was a fix/pull that was mentioned on the NRDP Github.

https://github.com/NagiosEnterprises/nrdp/pull/30

You could use the pull request, or just don't use the default JSON format which is fine too.

Trying sending a check with something like this against, on a host/service you have for passive checks.

Code: Select all
{
    "checkresults": [
        {
            "checkresult": {
                "type": "host",
                "checktype": "1"
            },
            "hostname": "localhost",
            "state": "0",
            "output": "Everything looks okay! | perfdata=1;"
        },
        {
            "checkresult": {
                "type": "service",
                "checktype": "1"
            },
            "hostname": "localhost",
            "servicename": "SSH",
            "state": "1",
            "output": "WARNING: Danger Will Robinson! | perfdata=1;"
        }
    ]
}


Once you submit it with this format, try a tail and see if it worked.

Code: Select all
tail -10 /usr/local/nagios/var/nagios.log


Here's my example.
Code: Select all
[1515014710] PASSIVE SERVICE CHECK: localhost;SSH;1;WARNING: Danger Will Robinson!
[1515014710] SERVICE ALERT: localhost;SSH;WARNING;SOFT;1;WARNING: Danger Will Robinson!
[1515014710] PASSIVE HOST CHECK: localhost;0;Everything looks okay! Test!


Let us know!
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
kyang
Support Tech
 
Posts: 1167
Joined: Tue Jul 25, 2017 3:35 pm

Re: NRDP not processing Host and Service checks

Postby karthek » Wed Jan 10, 2018 7:03 am

Sorry, i was away.

Got it working by installing the latest NRDP.

Thank you for support. You may lock this thread.
"Machines don't make mistakes, we do."
karthek
 
Posts: 64
Joined: Fri Aug 14, 2015 5:55 am
Location: INDIA

Next

Return to Nagios Core

Who is online

Users browsing this forum: No registered users and 14 guests