Search found 96 matches

by grenley
Thu Jun 03, 2021 5:09 pm
Forum: Open Source Nagios Projects
Topic: Create Core Web Access Log
Replies: 0
Views: 743

Create Core Web Access Log

Hi,
I need to create a log of user access to the Nagios Core web interface.
How do I get the account name of the user when they log in?
I was thinking that, if I can get that info, I could just throw a file append into index.php to log it
Thanks, Rick
by grenley
Tue Apr 09, 2019 4:54 pm
Forum: Open Source Nagios Projects
Topic: Run a script at Core Startup
Replies: 6
Views: 1980

Re: Run a script at Core Startup

Hi.
I meant to get back to you a while ago.
This worked great.
Thanks for your help!
Rick
by grenley
Tue Mar 26, 2019 5:34 pm
Forum: Open Source Nagios Projects
Topic: Run a script at Core Startup
Replies: 6
Views: 1980

Re: Run a script at Core Startup

Thanks for the reply.
That would be fine but I see no orsystemd file
by grenley
Mon Mar 25, 2019 5:55 pm
Forum: Open Source Nagios Projects
Topic: Run a script at Core Startup
Replies: 6
Views: 1980

Run a script at Core Startup

Hi.
I have a script I want to run at Core startup.
It is a socket listener that I want started with Core and run the whole time Core is active.
Where is the best place to put the script execution?
Thanks, Rick
by grenley
Thu Nov 15, 2018 7:40 pm
Forum: Open Source Nagios Projects
Topic: Check whether snmp sender is active
Replies: 1
Views: 754

Check whether snmp sender is active

Hi. We use the snmptrap sender from Core to a notification tool. In XI, there is a "Manage Components" check box that tells you if the sender is active. Aside from the fact that Core doesn't have this dialog, I need to be able to get this status programmatically (from perl). Is this do-abl...
by grenley
Tue Mar 13, 2018 1:03 pm
Forum: Open Source Nagios Projects
Topic: Getting Current State from JSON Query
Replies: 6
Views: 7634

Re: Getting Current State from JSON Query

Perfect! Thanks very much!
by grenley
Fri Mar 09, 2018 7:22 pm
Forum: Open Source Nagios Projects
Topic: Getting Current State from JSON Query
Replies: 6
Views: 7634

Re: Getting Current State from JSON Query

Awesome. Thanks!
Is there full doc on all the API fields and options?
Also, I can't find any doc on how the numeric status values map (like, 2 = "ok")
Is that documented somewhere?
by grenley
Thu Mar 08, 2018 7:02 pm
Forum: Open Source Nagios Projects
Topic: Getting Current State from JSON Query
Replies: 6
Views: 7634

Getting Current State from JSON Query

Hi. This should be an easy and quick one. I'm using the Core JSON API to get object info. One of the values that's in status.dat is "current_state" but I don't see that come back in the JSON. There's a value called "status" but it has a value that does not match the current state...
by grenley
Fri Feb 23, 2018 5:14 pm
Forum: Open Source Nagios Projects
Topic: Programmatically deleting service from Core
Replies: 3
Views: 889

Re: Programmatically deleting service from Core

Fair enough.
If there isn't a built-in way to do it, do you have any suggestions how we can build it (without XI)
by grenley
Fri Feb 23, 2018 4:02 pm
Forum: Open Source Nagios Projects
Topic: Programmatically deleting service from Core
Replies: 3
Views: 889

Programmatically deleting service from Core

Hi.

Is there any way, an API call perhaps, to programmatically delete a service from Core?
We have 90k+ servers (on a bunch of Core servers) and going through the GUI or editing a file as services are deleted is not going to be manageable.

Thanks,
Rick