NRDP Nagios XI receiving info from nagios core

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
paulo.ferreira
Posts: 32
Joined: Wed Feb 26, 2020 10:26 am

Re: NRDP Nagios XI receiving info from nagios core

Post by paulo.ferreira »

Follow output

root@BRMON001 libexec]# ./send_nrdp.php --url=https://10.202.1.69/nrdp/ --token=MbJMjUTeWMES --host="SGS-SANTOS-HP-RACK-SERVIDORES" --state=0 --output="PING OK - Packet loss = 0%, RTA = 13.24 ms"
[root@BRMON001 libexec]# grep nrdp /var/log/httpd/access_log
[root@BRMON001 libexec]# tail -50 /var/log/httpd/error_log
[Thu Apr 02 09:29:39.296933 2020] [autoindex:error] [pid 9121] [client 127.0.0.1:57308] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 09:34:39.410257 2020] [autoindex:error] [pid 42017] [client 127.0.0.1:57908] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 09:39:41.841939 2020] [autoindex:error] [pid 28953] [client 127.0.0.1:58634] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 09:45:26.682677 2020] [autoindex:error] [pid 63566] [client 127.0.0.1:59492] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 09:51:00.959782 2020] [autoindex:error] [pid 14626] [client 127.0.0.1:60204] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 09:57:27.303914 2020] [autoindex:error] [pid 13207] [client 127.0.0.1:32902] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 10:03:05.870944 2020] [autoindex:error] [pid 32970] [client 127.0.0.1:33852] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 10:08:05.794161 2020] [autoindex:error] [pid 9966] [client 127.0.0.1:34484] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 10:13:09.784008 2020] [autoindex:error] [pid 9122] [client 127.0.0.1:35418] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 10:18:09.789753 2020] [autoindex:error] [pid 13808] [client 127.0.0.1:36066] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 10:23:27.323341 2020] [autoindex:error] [pid 9121] [client 127.0.0.1:36984] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 10:28:27.934563 2020] [autoindex:error] [pid 42017] [client 127.0.0.1:37634] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 10:38:59.376573 2020] [autoindex:error] [pid 13207] [client 127.0.0.1:39046] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 10:44:04.596337 2020] [autoindex:error] [pid 42017] [client 127.0.0.1:40020] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 10:49:04.737904 2020] [autoindex:error] [pid 28953] [client 127.0.0.1:40666] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 10:54:28.232388 2020] [autoindex:error] [pid 13207] [client 127.0.0.1:41604] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 10:59:28.265271 2020] [autoindex:error] [pid 10340] [client 127.0.0.1:42268] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 11:05:12.504683 2020] [autoindex:error] [pid 63566] [client 127.0.0.1:43194] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 11:10:12.634343 2020] [autoindex:error] [pid 13207] [client 127.0.0.1:43940] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 11:15:12.690920 2020] [autoindex:error] [pid 9966] [client 127.0.0.1:44758] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 11:20:12.697859 2020] [autoindex:error] [pid 14626] [client 127.0.0.1:45504] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 11:25:12.734673 2020] [autoindex:error] [pid 63566] [client 127.0.0.1:46342] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 11:30:12.738655 2020] [autoindex:error] [pid 9122] [client 127.0.0.1:47086] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 11:35:12.505633 2020] [autoindex:error] [pid 42017] [client 127.0.0.1:47822] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 11:40:12.509670 2020] [autoindex:error] [pid 9122] [client 127.0.0.1:48630] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 11:45:15.278592 2020] [autoindex:error] [pid 9966] [client 127.0.0.1:49448] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 11:50:15.374700 2020] [autoindex:error] [pid 14626] [client 127.0.0.1:50262] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 11:55:15.391315 2020] [autoindex:error] [pid 17472] [client 127.0.0.1:51034] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 12:00:15.396423 2020] [autoindex:error] [pid 32970] [client 127.0.0.1:51840] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 12:05:33.031563 2020] [autoindex:error] [pid 17472] [client 127.0.0.1:52632] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 12:10:33.812734 2020] [autoindex:error] [pid 9966] [client 127.0.0.1:53272] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 12:15:39.098042 2020] [autoindex:error] [pid 17472] [client 127.0.0.1:54072] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 12:20:38.957194 2020] [autoindex:error] [pid 9966] [client 127.0.0.1:54684] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 12:26:02.291843 2020] [autoindex:error] [pid 10340] [client 127.0.0.1:55500] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 12:31:22.671480 2020] [autoindex:error] [pid 9966] [client 127.0.0.1:56250] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 12:36:06.160076 2020] [autoindex:error] [pid 13808] [client 127.0.0.1:57108] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 12:41:05.165648 2020] [autoindex:error] [pid 13808] [client 127.0.0.1:57838] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 12:46:05.492754 2020] [autoindex:error] [pid 49839] [client 127.0.0.1:58706] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 12:51:22.708162 2020] [autoindex:error] [pid 9122] [client 127.0.0.1:59442] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 12:56:50.648736 2020] [autoindex:error] [pid 13808] [client 127.0.0.1:60794] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 13:01:54.979950 2020] [autoindex:error] [pid 63566] [client 127.0.0.1:33296] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 13:06:54.118922 2020] [autoindex:error] [pid 13808] [client 127.0.0.1:34138] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 13:11:54.129542 2020] [autoindex:error] [pid 42017] [client 127.0.0.1:34872] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 13:16:54.134265 2020] [autoindex:error] [pid 42017] [client 127.0.0.1:35714] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 13:21:54.139215 2020] [autoindex:error] [pid 9966] [client 127.0.0.1:36444] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 13:27:59.312835 2020] [autoindex:error] [pid 42017] [client 127.0.0.1:37296] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 13:33:00.574718 2020] [autoindex:error] [pid 4469] [client 127.0.0.1:37984] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 13:38:12.800611 2020] [autoindex:error] [pid 60808] [client 127.0.0.1:38850] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 13:43:37.920899 2020] [autoindex:error] [pid 6673] [client 127.0.0.1:39758] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 02 13:48:38.757575 2020] [autoindex:error] [pid 4469] [client 127.0.0.1:40562] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[root@BRMON001 libexec]#
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NRDP Nagios XI receiving info from nagios core

Post by scottwilkerson »

Code: Select all

[root@BRMON001 libexec]# grep nrdp /var/log/httpd/access_log
so the access log doesn't even show any results that contain nrdp ?

Is your server logging somewhere else?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
paulo.ferreira
Posts: 32
Joined: Wed Feb 26, 2020 10:26 am

Re: NRDP Nagios XI receiving info from nagios core

Post by paulo.ferreira »

Shows nothing on the access log, and no, should be logging here.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NRDP Nagios XI receiving info from nagios core

Post by scottwilkerson »

Wait, I'm confused, you are running both of these commands from the BRMON001 server

You need to run the tail commands from the 10.202.1.69 server where NRDP is
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
paulo.ferreira
Posts: 32
Joined: Wed Feb 26, 2020 10:26 am

Re: NRDP Nagios XI receiving info from nagios core

Post by paulo.ferreira »

Sorry kk

Follow below the output from 10.202.1.69
[root@atbr2mong001pvx ~]# grep nrdp /var/log/httpd/access_log
[root@atbr2mong001pvx ~]# tail -50 /var/log/httpd/error_log
[Sun Mar 29 03:40:03.047549 2020] [auth_digest:notice] [pid 8964] AH01757: generating secret for digest authentication ...
[Sun Mar 29 03:40:03.068400 2020] [lbmethod_heartbeat:notice] [pid 8964] AH02282: No slotmem from mod_heartmonitor
[Sun Mar 29 03:40:03.216969 2020] [mpm_prefork:notice] [pid 8964] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16 configured -- resuming normal operations
[Sun Mar 29 03:40:03.216990 2020] [core:notice] [pid 8964] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Tue Mar 31 18:24:28.280504 2020] [core:error] [pid 18301] [client 161.89.61.175:54606] AH00126: Invalid URI in request GET HTTP/1.1
[Tue Mar 31 18:24:28.839289 2020] [core:error] [pid 20437] [client 161.89.61.175:54728] AH00126: Invalid URI in request HEAD //../index.html HTTP/1.0
[Tue Mar 31 18:35:17.852187 2020] [core:error] [pid 35766] [client 161.89.61.175:37110] AH00126: Invalid URI in request GET cgi/catalog/includes/general.js HTTP/1.0
[Tue Mar 31 18:35:25.395829 2020] [core:error] [pid 35094] [client 161.89.61.175:37626] AH00126: Invalid URI in request GET cgi/catalog/password_forgotten.php?action=process&osCsid=IP360%0d%0aLocation:%20nCircleNetworkSecurity HTTP/1.0
[Tue Mar 31 18:35:33.012976 2020] [core:error] [pid 35030] [client 161.89.61.175:38116] AH00126: Invalid URI in request GET cgi/catalog/password_forgotten.php?email=nonexistent&osCsid=5d1626aa2504038f7f227dd54e1d66fd HTTP/1.0
[Tue Mar 31 18:35:40.688578 2020] [core:error] [pid 35087] [client 161.89.61.175:38602] AH00126: Invalid URI in request GET cgi/gallery/docs/index.html HTTP/1.0
[Tue Mar 31 18:35:47.956085 2020] [core:error] [pid 36342] [client 161.89.61.175:39092] AH00126: Invalid URI in request GET cgi/gallery/setup/index.php HTTP/1.0
[Tue Mar 31 18:35:55.008058 2020] [core:error] [pid 36496] [client 161.89.61.175:39504] AH00126: Invalid URI in request GET cgi/gallery/index.php HTTP/1.0
[Tue Mar 31 18:36:01.810950 2020] [core:error] [pid 33847] [client 161.89.61.175:39962] AH00126: Invalid URI in request GET cgi/typo3/index.php HTTP/1.0
[Tue Mar 31 18:36:06.318577 2020] [core:error] [pid 36371] [client 161.89.61.175:40262] AH00126: Invalid URI in request GET cgi/typo3/index.php HTTP/1.0
[root@atbr2mong001pvx ~]#
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NRDP Nagios XI receiving info from nagios core

Post by scottwilkerson »

There still is nothing with nrdp in there, that doesn't make any sense

how about this

Code: Select all

grep nrdp /var/log/httpd/*
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
paulo.ferreira
Posts: 32
Joined: Wed Feb 26, 2020 10:26 am

Re: NRDP Nagios XI receiving info from nagios core

Post by paulo.ferreira »

Output:

/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:20:24 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:20:24 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:20:24 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:20:24 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:20:24 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:20:24 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:20:24 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:20:24 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:20:24 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:20:24 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:20:43 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:20:47 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:21:44 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:21:55 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:22:04 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:22:08 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:22:09 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:22:09 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:22:09 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:22:09 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:22:09 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:22:11 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:22:55 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:23:01 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:24:32 -0300] "POST /nrdp// HTTP/1.1" 200 109

Alot a this
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NRDP Nagios XI receiving info from nagios core

Post by scottwilkerson »

Ok, is 10.202.1.70 the server you are sending these from?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
paulo.ferreira
Posts: 32
Joined: Wed Feb 26, 2020 10:26 am

Re: NRDP Nagios XI receiving info from nagios core

Post by paulo.ferreira »

Yes, is the server with the nagios core instalation.
paulo.ferreira
Posts: 32
Joined: Wed Feb 26, 2020 10:26 am

Re: NRDP Nagios XI receiving info from nagios core

Post by paulo.ferreira »

I forget to send you the cfg files, to see if there is a error there.

comman.cfg

#### NRDP ####

define command{
command_name send_nrdp_host
command_line $USER1$/send_nrdp.php --url=https://10.202.1.69/nrdp/ --token=MbJMjUTeWMES --host="$HOSTNAME$" --state=$HOSTSTATEID$ --output="$HOSTOUTPUT$"
}


define command{
command_name send_nrdp_service
command_line $USER1$/send_nrdp.php --url=https://10.202.1.69/nrdp/ --token=MbJMjUTeWMES --host="$HOSTNAME$" --service="$SERVICEDESC$" --state=$SERVICESTATEID$ --output="$SERVICEOUTPUT$"
}

nagios.cfg

obsess_over_services=1

# OBSESSIVE COMPULSIVE SERVICE PROCESSOR COMMAND
# This is the command that is run for every service check that is
# processed by Nagios. This command is executed only if the
# obsess_over_services option (above) is set to 1. The command
# argument is the short name of a command definition that you
# define in your host configuration file. Read the HTML docs for
# more information on implementing distributed monitoring.

ocsp_command=send_nrdp_service



# OBSESS OVER HOST CHECKS OPTION
# This determines whether or not Nagios will obsess over host
# checks and run the ochp_command defined below. Unless you're
# planning on implementing distributed monitoring, do not enable
# this option. Read the HTML docs for more information on
# implementing distributed monitoring.
# Values: 1 = obsess over hosts, 0 = do not obsess (default)

obsess_over_hosts=1



# OBSESSIVE COMPULSIVE HOST PROCESSOR COMMAND
# This is the command that is run for every host check that is
# processed by Nagios. This command is executed only if the
# obsess_over_hosts option (above) is set to 1. The command
# argument is the short name of a command definition that you
# define in your host configuration file. Read the HTML docs for
# more information on implementing distributed monitoring.

ochp_command=send_nrdp_host
Locked