Search found 29 matches

by lraymond
Mon Oct 29, 2012 3:01 pm
Forum: Open Source Nagios Projects
Topic: Show status on remote server possible?
Replies: 1
Views: 928

Show status on remote server possible?

We have a corporate portal we all hit daily. I would like to have a little spot somewhere with an update. I would love the server status totals area, but it's not a simple plugin, etc. but I would even settle for a 1 or 2 line RSS ticker, or something that people would see all good, one warning, etc...
by lraymond
Fri Aug 31, 2012 11:58 am
Forum: Open Source Nagios Projects
Topic: restart a service by SSH.
Replies: 2
Views: 1419

Re: restart a service by SSH.

Cool, got things going. The only issue it seems is when the event fires, it does find/kill java, writes and entry in the log and then fires it again 2 minutes later it seems. So I woud like in the host to say check every minute or two, but if something happens, fire the event handler, then wait 5 mi...
by lraymond
Thu Aug 30, 2012 8:47 am
Forum: Open Source Nagios Projects
Topic: restart a service by SSH.
Replies: 2
Views: 1419

restart a service by SSH.

ok, had a nice long thread which sadly never got working where I had a java server run out of RAM, can trip a memory alert, but using NRPE just can't kill and restart the service. Had some great help ideas, but just never got it to kill/restart. So, still having the java issues, I am wondering can I...
by lraymond
Wed Aug 22, 2012 5:20 pm
Forum: Open Source Nagios Projects
Topic: best way to run remote shell on critical
Replies: 11
Views: 4729

Re: best way to run remote shell on critical

Wish it was the case. There is text that get's output to the screen by default saying it's restarting, but there is nothing being written to the log. I even removed the restart process, so the local restart script looks like this; #!/bin/bash case "$1" in CRITICAL ) : ts=`date "+%F - ...
by lraymond
Wed Aug 22, 2012 2:58 pm
Forum: Open Source Nagios Projects
Topic: best way to run remote shell on critical
Replies: 11
Views: 4729

Re: best way to run remote shell on critical

nope, it did until I added the nagios ALL = NOPASSWD: ALL option it the sudors. As I copy/pasted the exact from the client when I ran the restart_gf script, no password, nothin' but smooth sailin'
by lraymond
Wed Aug 22, 2012 11:40 am
Forum: Open Source Nagios Projects
Topic: best way to run remote shell on critical
Replies: 11
Views: 4729

Re: best way to run remote shell on critical

ok here ALL day now to beat the heck out of this. So, to recap; client has /etc/passwd nagios:x:107:113::/var/lib/nagios:/bin/bash (enabled just out of curiosity, but /bin/false was the default) /etd/sudors has; Defaults:nagios !requiretty Still on the GF server; (as nagios user) nagios@gfs3:/usr/li...
by lraymond
Tue Aug 21, 2012 9:55 pm
Forum: Open Source Nagios Projects
Topic: best way to run remote shell on critical
Replies: 11
Views: 4729

Re: best way to run remote shell on critical

ok I deleted my few posts earlier, but I have reached my stopping point. I have tweaked the files, permissions, and it works perfect local, remotely, not at all. I will re-visit permissions but currently the nagios user has sudo with nopasswd. The bash script looks like this; #!/bin/bash case "...
by lraymond
Mon Aug 20, 2012 3:08 pm
Forum: Open Source Nagios Projects
Topic: best way to run remote shell on critical
Replies: 11
Views: 4729

Re: best way to run remote shell on critical

ok part 1 I found ok (I assume at the top after my #!/bin/bash delare) As for the next part, need a map (or some URL to read up). So I understand the create a command definition will be on the nagios box as well as putting that in the service, but here is the problem and some definitions; define ser...
by lraymond
Mon Aug 20, 2012 1:09 pm
Forum: Open Source Nagios Projects
Topic: best way to run remote shell on critical
Replies: 11
Views: 4729

best way to run remote shell on critical

This board is so active it made for a great monitoring system already in place, so thanks. Next one, I now have some thresholds and when we have a problem with one of our java app's it eventually stops responding (the load balancer does take it out), but I do know ahead of time by a few minutes with...
by lraymond
Sat Aug 18, 2012 10:54 pm
Forum: Open Source Nagios Projects
Topic: understanding $ARG$ variables
Replies: 1
Views: 1528

understanding $ARG$ variables

As my journey continues, I want to check some apache stats on a different IP / port than the host. So I created a command for each webserver and things are working, but I want to keep things clean and want to understand how the variables are assigned. My example commands are; # 'check apache' comman...