Build precise queries to find exactly what you need
Press ESC to close
@Tony-Caffe
Favorites0
Views0
Projects1
Correct URL Link: https://github.com/jg10/Nagios-Plugins/blob/master/check_upstart_status.pl If this was documented and updated with how-to and correct links, I would have given this a 5 start. Usage: ./check_upstart_status.pl -j {jobname} Nagios Codes: 0 = ok 1 = warn 2 = crit 3 = unknown Warning is returned if job is in the process of stopping and Critical if job is stopped. This would be nice to have a host option and such but if you use check_nrpe and install this on the monitor host, you can manage it remotely. Hope this helps anyone in the future. Anthony
Reviewed 10 years ago
Thanks for the thorough explanation of setting it up. I thought I can add some more to it to help. - First for CentOS 6.5 I had to comment out the option in visudo 'Defaults requiretty' so that nrpe can become root thru script. - Here is my config to help any others. I monitor Syslog-ng client and server remotely using the nrpe on each local machine. # 'check_syslog-ng' command definition define command{ command_name check_syslog-ng command_line $USER1$/check_exit_status.pl -s /etc/init.d/syslog-ng -r } define service { host_name prod-db-backup service_description check_syslog-ng is_volatile 1 check_command check_nrpe!check_syslog-ng max_check_attempts 5 normal_check_interval 15 retry_check_interval 1 check_period 24x7 notification_interval 60 notifications_enabled 1 notification_period 24x7 notification_options w,u,c,r,f contact_groups admingroup stalking_options w,u,c } nrpe.cfg: command[check_syslog-ng]=/usr/lib64/nagios/plugins/check_exit_status.pl -s /etc/init.d/syslog-ng -r Reloaded Nagios and it worked just fine. No need for ARG or -w -c. If status is stopped, service alerts, if status is running, it stays green and checks. Thank you again.
Reviewed 11 years ago
I made a few changes since I have a Load Balancer for my 7 webservers and wanted to apply the links to multiple URLs. I added checks but changed service this way: define service{ host_name web2,web3,web4,web5,web6 service_description blog.website.com check_command check_nrpe!check_website_response_blog This was it will check the local web server and then on the local web server I added this: command[check_website_response_blog]=/usr/lib64/nagios/plugins/check_website_response.sh -u http://blog.website.com/?web2 -w 200 -c 200 Now when a web site goes down it tells me what server its on and that I use "/?web2" to force to use a server instead of letting load balancer decide. Very good tool. Thank you.
Reviewed 12 years ago
Thank you for adding this plugin. Most dont let you specify htaccess login to check a site. IMO this is very crucial. My Command Definition Example: # 'check_url_status' command definition with htaccess login define command{ command_name check_url_status command_line $USER1$/check_url_status -U $ARG1$ --http-user=$ARG2$ --http-passwd=$ARG3$ } Thanks!
Thank you. Lack of directions but works good.