Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

As a nagios administrator for Fermi you have basically three commands you can send to nagios using remctl (the port is  46157 4373 for now).

Commands are:

  • schedule - schedule a check on a host/service
  • downtime -  a host/service is known to be down, don't contact the contacts for a while
  • acknowledge - Alert for host/service has been acknowledged so stop sending alert notices

Basic formats for host or service are (*fill in the uppercase words with desired command, host or service and comment. You may shorten the nagios02.slac.stanford.edu address to nagios02)

remctl -p 4373 nagios02.slac.stanford.edu nagios COMMAND host HOSTNAME COMMENT

remctl -p 4373 nagios02.slac.stanford.edu nagios COMMAND host HOSTNAME HOURS COMMENT

remctl -p 4373 nagios02.slac.stanford.edu nagios COMMAND host HOSTNAME MINUTES COMMENT

remctl -p 43737 nagios02.slac.stanford.edu nagios COMMAND service HOSTNAME SERVICENAME COMMENT

remctl -p 4373 nagios02.slac.stanford.edu  nagios COMMAND service HOSTNAME SERVICENAME HOURS COMMENT

remctl -p 4373 nagios02.slac.stanford.edu nagios COMMAND service HOSTNAME SERVICENAME MINUTES COMMENT

(green star) You can also issue the remctl command without the port number


Examples

remctl -p 4373 nagios02  nagios ack host wain007 'there is a problem, we are working on it'

remctl -p 4373 nagios02  nagios ack service wain007 xroot-wain007 'ack - RT 9999'

remctl -p 4373 nagios02.slac.stanford.edu nagios downtime host wain007 5 'down for 5 hours'

remctl -p 4373 nagios02.slac.stanford.edu nagios downtime service sulky46 u02-diskspace 5 'service down for 5 hrs'

remctl -p 4373 nagios02.slac.stanford.edu nagios schedule host sulky46 5 'run checks in 5 mins'

remctl -p 4373 nagios02.slac.stanford.edu nagios schedule service sulky46 u02-diskspace 5 'check disk u02 in 5 mins'

remctl -p 4373 nagios02  nagios help

remctl -p 4373 nagios02  nagios man

...