Search found 644 matches

by kwhogster
Sat Oct 24, 2020 7:51 am
Forum: Open Source Nagios Projects
Topic: Nagios Service Check
Replies: 0
Views: 1506

Nagios Service Check

Nagios Core 4.3.4 I have many computers that Nagios checks and they all work fine. I have one service check that triggers an event handler that places the computer into maintenance mode this all works also. I have this service setup not to send notifications. I would like to know if I can have this ...
by kwhogster
Sat Sep 19, 2020 4:02 pm
Forum: Open Source Nagios Projects
Topic: Localhost.cfg
Replies: 1
Views: 1353

Re: Localhost.cfg

I found it

I did this command on the nagios server and found the cfg file


grep -r -A 5 -B 5 'Total Processes' /usr/local/nagios/etc/


This can be marked as resolved

Thank you
by kwhogster
Fri Sep 18, 2020 10:06 pm
Forum: Open Source Nagios Projects
Topic: Localhost.cfg
Replies: 1
Views: 1353

Localhost.cfg

Running Nagios Core 4.3.4 I need to modify the settings in my localhost which is my nagios server. I have the file localhost.cfg in /usr/local/nagios/etc/objects When I VI that file and restart nagios the changes are not reflected in nagios # Define a service to check the number of currently running...
by kwhogster
Tue Sep 15, 2020 5:07 pm
Forum: Open Source Nagios Projects
Topic: Curl command does not work
Replies: 0
Views: 1250

Curl command does not work

My curl command does not work root@tgcs017:/usr/local/nagios/etc/objects/nasstorage# curl -d "cmd_typ=55&cmd_mod=2&host=tgcs015&com_data=TestingDowntime&trigger=0&start_time=09-15-2020 09:00:00&end_time=09-15-2020 09:40:00&fixed=1&childoptions=0&btnSubmit=Com...
by kwhogster
Tue Sep 08, 2020 10:55 am
Forum: Open Source Nagios Projects
Topic: Schedule Downtime
Replies: 0
Views: 1135

Schedule Downtime

I have Servers and desktops that I apply windows updates to on a Monthly basis They are installed and restarted automatically. All are controlled by Nagios Core 4.3.4 I need a way to schedule downtime for the Host and all services automatically They are updated on different days of the 4th week of t...
by kwhogster
Wed Sep 02, 2020 9:00 pm
Forum: Open Source Nagios Projects
Topic: Event Handler Function does not run
Replies: 0
Views: 1180

Event Handler Function does not run

Nagios Core 4.3.4 My event handler does not work at all. I do not know how to check to see if it is even being called by the command My event handler #!/bin/sh case "$1" in OK) ;; WARNING) ;; UNKNOWN) ;; CRITICAL) case "$2" in SOFT) case "$3" in 3) /usr/local/nagios/lib...
by kwhogster
Tue Sep 01, 2020 9:03 am
Forum: Open Source Nagios Projects
Topic: Event Handler for Restart-Service
Replies: 15
Views: 6847

Re: Event Handler for Restart-Service

This is still not working.

I am most surely it is on the Nagios side.

The tail command of the nagios log was not helpful

There has be be another log to look at

Any one have this working ? If so please share your files.

Thank you
by kwhogster
Fri Aug 28, 2020 7:32 pm
Forum: Open Source Nagios Projects
Topic: Event Handler for Restart-Service
Replies: 15
Views: 6847

Re: Event Handler for Restart-Service

Well
I renamed the script and command to restart-aservice.sh and restart-aservice

Same results.

Nagios is not send a request to the nsclient to run the command

Some in Nagios is not correct

Need help.....
by kwhogster
Fri Aug 28, 2020 12:46 pm
Forum: Open Source Nagios Projects
Topic: Event Handler for Restart-Service
Replies: 15
Views: 6847

Re: Event Handler for Restart-Service

Guys I tested on the client side by running NSCP TEST from a command prompt after stopping the nscp service. I monitored the test and saw no activity from the nagios server when a service was stopped. When I ran the command manually on the nagios service I saw the command on the test console. So the...
by kwhogster
Thu Aug 27, 2020 3:14 pm
Forum: Open Source Nagios Projects
Topic: Event Handler for Restart-Service
Replies: 15
Views: 6847

Re: Event Handler for Restart-Service

Is there another log we can looks at ??? The nagios log reports this [1598558394] SERVICE ALERT: TGKW002;Check All Service;CRITICAL;SOFT;1;CRITICAL: Spooler: stopped delayed () [1598558394] SERVICE EVENT HANDLER: TGKW002;Check All Service;CRITICAL;SOFT;1;restart_service [1598558454] SERVICE ALERT: T...