| Cheshire Cat Computing http://steveshipway.org/forum/ |
|
| Sending External Commands from Windows machine to Nagios http://steveshipway.org/forum/viewtopic.php?f=20&t=1866 |
Page 1 of 1 |
| Author: | jangu1206 [ Sat Apr 25, 2009 6:42 am ] |
| Post subject: | Sending External Commands from Windows machine to Nagios |
Hi. I am using nsclient++ with nsca agent. How can i send external commands to Nagios server from Windows? I am trying to find a way to suppress alerts during scheduled reboot. I think SCHEDULE_HOST_SVC_DOWNTIME would do, but not sure how i can send it from Windows machine. |
|
| Author: | stevesh [ Sun Apr 26, 2009 12:31 pm ] |
| Post subject: | Re: Sending External Commands from Windows machine to Nagios |
There's no standard way to do it - NSCA is only for processing external check command results. You'll need to write your own (authenticated!) method for passing general commands into the nagios.cmd pipe. Steve |
|
| Author: | jangu1206 [ Fri May 01, 2009 6:33 am ] |
| Post subject: | Re: Sending External Commands from Windows machine to Nagios |
thanks steve. beside authentication, how would i pass general command to nagios pipe from Windows? |
|
| Author: | stevesh [ Fri May 01, 2009 2:30 pm ] |
| Post subject: | Re: Sending External Commands from Windows machine to Nagios |
You would need to write a command server for the Nagios host listening on a TCP socket and a client for this to run under windows. Not a trivial piece of coding, although you could do it in Perl. Steve |
|
| Page 1 of 1 | All times are UTC + 12 hours [ DST ] |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|