Monitoring question

Formoso, Travis Travis.Formoso at blueslate.net
Wed Jan 17 21:42:56 CET 2007


> 'man sudoers' ;) The hand-holding approach is to --
>	- run 'visudo' as root
>	- at the end of the file add 'nagios  ALL= NOPASSWD:
> /etc/rc.d/init.d/httpd'
>	- exit your editor
>	- test. Become the nagios user. If you're root, run 'su -
> nagios' to become the nagios user. Type 'id' to verify that you are
> indeed nagios, then run 'sudo /etc/rc.d/init.d/httpd restart' and verify
> that httpd restarted.
>	- modify your event handler script to include 'sudo ' in front
> of every occurrence of '/etc/rc.d/init.d/httpd'

Thanks worked great - service restarted once it went down. I will be looking more into restarting services - thanks for the help.




This e-mail and any files transmitted with it are for the sole use of
Blue Slate Solutions and the intended recipient(s) and may contain
confidential and privileged information. If you are not the intended
recipient, please contact the sender by reply e-mail and destroy all
copies of the original message. Any unauthorized review, use,
disclosure, dissemination, forwarding, printing or copying of this email
or any action taken in reliance on this e-mail is strictly prohibited
and may be unlawful.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list