Services - Is it possible to set status?

Hi

I’m fairly new to LibreNMS, but have used Nagios, Icinga, Cati and Munin for many years.

I’m looking for a way to create a passive check service in LibreNMS Services.
I was hoping to set the service status (OK/Critical/Warning/Error) with a Curl command to the API…
But API seems to only 2 functions for services : get_service_for_host and list_services funtionality

Is there some other way…? I can’t seem to find one. :confused:

I could do it by setting up a Nagios/Icinga with passive check services and passing them to LibreNMS but I would like to avoid running any monitoring other than LibreNMS

Why do you want to do that?

service status is updated when check-services.php is run so if you change it anyway it will just be reverted on the next run of that script.

Erh… Because not everything you want to monitor is possible with active checks or snmp…

I need it to monitor status of glusterfs geo-replication status.
Yes I know I can extend snmpd to run scripts, but I do not want that.

Would be strange if check-services.php updated a service that was configured as a PASSIVE service/check?
But ok… it is not possible to do that in LibreNMS… Thank you for the “reply” / question

Found another solution…

Put another way, I think he’s asking if we can add “push” not just “pull” to LibreNMS…

We don’t have any of that capability so this would need to be requested as a feature request.

My question was to understand what you were trying to accomplish as you seemed to be confusing two separate parts of the system.