Re: Can I update Nagios active service status using Rest API
Posted: Tue Aug 31, 2021 10:08 am
I have over 9000 services for different hosts and using the following command (actually converted to use httpClient) to update the status of all the services in a giving time interval.
curl -k -L -XPOST "https://X.X.X.X/nagiosxi/api/v1/system/ ... ikey=YYYYY" -d 'cmd=PROCESS_SERVICE_CHECK_RESULT;localhost;SSH;0;SSH OK - OpenSSH_7.3 (protocol 2.0) | time=0.006961s;;;0.100000;11.000000'
Note: I am looking at https://josef.codes/c-sharp-throttle-ht ... oncurrent/ and testing it out right now.
Thanks
Joseph
curl -k -L -XPOST "https://X.X.X.X/nagiosxi/api/v1/system/ ... ikey=YYYYY" -d 'cmd=PROCESS_SERVICE_CHECK_RESULT;localhost;SSH;0;SSH OK - OpenSSH_7.3 (protocol 2.0) | time=0.006961s;;;0.100000;11.000000'
Note: I am looking at https://josef.codes/c-sharp-throttle-ht ... oncurrent/ and testing it out right now.
Thanks
Joseph