Search found 3722 matches

by mcapra
Mon Aug 09, 2021 8:10 am
Forum: Open Source Nagios Projects
Topic: check_log not outputting CRITICAL line content
Replies: 2
Views: 1146

Re: check_log not outputting CRITICAL line content

NRPE does not run commands in a shell (it uses popen), and subsequently cannot perform Bash substitution as you're attempting to do here:

Code: Select all

`date +%Y-%m-%d`
I can't say for certain if that's what is causing your issue, but it stands out.
by mcapra
Mon Aug 09, 2021 6:14 am
Forum: Open Source Nagios Projects
Topic: Every hour Nagios has a high load
Replies: 1
Views: 1060

Re: Every hour Nagios has a high load

In Nagios Core, there's a pretty finite number of things that would spike httpd specifically, and it's usually the CGIs or pnp4nagios. Are you running any sort of reporting behind-the-scenes?

In Nagios XI, there's several things that could spike httpd specifically.
by mcapra
Thu Aug 05, 2021 2:39 pm
Forum: Open Source Nagios Projects
Topic: script to list children of a parent host
Replies: 1
Views: 974

Re: script to list children of a parent host

The JSON Query Generator might be of interest: https://labs.nagios.com/2014/06/19/exploring-the-new-json-cgis-in-nagios-core-4-0-7-part-1/ Should be included in Nagios Core by default at this point -- no need to install anything additional, just navigate to: http://<nagios server>/nagios/jsonquery.h...
by mcapra
Thu Aug 05, 2021 10:28 am
Forum: Open Source Nagios Projects
Topic: Setting a timeout for a custom script
Replies: 3
Views: 1315

Re: Setting a timeout for a custom script

Correct, you could also submit the check results passively. https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/4/en/passivechecks.html If NCPA is your weapon of choice: https://www.nagios.org/ncpa/help/2.2/passive.html Or if you're still hip to the cron idea, you could pipe those check r...
by mcapra
Thu Aug 05, 2021 9:38 am
Forum: Open Source Nagios Projects
Topic: Setting a timeout for a custom script
Replies: 3
Views: 1315

Re: Setting a timeout for a custom script

This is not possible. If it's a check being executed via a Nagios command definition, it must honor the service_check_timeout or host_check_timeout. You may consider having a separate process, orchestrated by something like cron, which is responsible for caching this data to disk somewhere periodica...
by mcapra
Tue Aug 03, 2021 1:52 pm
Forum: Open Source Nagios Projects
Topic: check google workspace status dashboard
Replies: 3
Views: 1887

Re: check google workspace status dashboard

The page referenced by that plugin no longer exists, as far as I can tell. Using the WayBackMachine the last snapshot I can find was on July 9th . I suspect the plugin would need to be modified to pull either from the RSS feed , or this JSON history of incidents: https://www.google.com/appsstatus/d...
by mcapra
Tue Aug 03, 2021 8:05 am
Forum: Open Source Nagios Projects
Topic: check_file_sha256.pl - How to
Replies: 3
Views: 2295

Re: check_file_sha256.pl - How to

It would be helpful to know where you got that script from.

This is a pretty comprehensive tutorial for how to leverage custom plugins/scripts in Nagios Core:
https://www.howtoforge.com/tutorial/wri ... ck-plugin/
by mcapra
Mon Aug 02, 2021 11:07 am
Forum: Open Source Nagios Projects
Topic: NRPE analogue for NCPA
Replies: 1
Views: 928

Re: NRPE analogue for NCPA

Generally speaking, the plugins endpoint is your answer to the question of "how do I run custom scripts/commands with NCPA":
https://www.nagios.org/ncpa/help.php#ap ... es-plugins
by mcapra
Mon Aug 02, 2021 9:03 am
Forum: Open Source Nagios Projects
Topic: port 12489 Connection refused issue
Replies: 3
Views: 2583

Re: port 12489 Connection refused issue

Are you sure you're using the right plugin to communicate with the right agent? 12489 is typically the NSClient++ default port. NCPA listens on 5693 by default.
by mcapra
Fri Jul 30, 2021 10:46 am
Forum: Open Source Nagios Projects
Topic: check google workspace status dashboard
Replies: 3
Views: 1887

Re: check google workspace status dashboard

There's a few checks on exchange Could you link some of them? Or better yet, the specific one you're using that recently stopped working? I get 0 results when searching "Google Workspace status dashboard" on the Nagios Exchange. It'd also be useful to see the verbose/debug output for the ...