change status from command line

Michael Belik michael.belik at centrum.cz
Tue Oct 24 11:27:27 CEST 2006


> Michael Belik wrote:

> > I have stoped service and nagios was changed status for this
 service

> >  to DOWN. After this I stop active and other checks.

> >

> > But service has still status DOWN.

> >

> I would consider that normal behaviour. The last state is remembered.

> Disabling checks won't change state.

> > Do you anybody know, how can I manualy or automaticly change
 status

> >  (OK or Pending) for this stoped service?

> >

> > I kmow, I can plan downtimes, but if the service in status down,

> >  setting downtimes not change status.

> >

> Again, if the service is already down, scheduling downtime after
 the

> fact wont make it up. But it will become *scheduled* down time,
 as

> opposed to *unscheduled*, and the logs will record it as such.

> 

> You can submit a passive result via the web interface, or use
 an

> external command. See

> http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?co
mmand_id=114

> for services,

> http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?co
mmand_id=115

> for hosts.

> 

> Cheers.

> 

Hi,

Many thanks,

I used method using external commands.

Michael



 



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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