Monitor the restart service

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
alidar
Posts: 26
Joined: Wed Apr 11, 2018 7:15 am

Monitor the restart service

Post by alidar »

Hello,

Can I monitor the servers which time which server goes Down by Nagios Core?
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Monitor the restart service

Post by eloyd »

Yes.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitor the restart service

Post by scottwilkerson »

Simple ping monitoring should do it
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
alidar
Posts: 26
Joined: Wed Apr 11, 2018 7:15 am

Re: Monitor the restart service

Post by alidar »

Ping only can tell us about current status of the node. It is Down or up.
I want to see last time when computer went to the Down.

Regards
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Monitor the restart service

Post by eloyd »

If you are monitoring whether it is up or down, then you will know the last time it went down. At least, to within a few minutes (it depends on how frequently you are checking). If you are asking to have Nagios tell you the last time a machine went down, without currently monitoring whether it is up or down, then you could look at the uptime for the machine, using the check_uptime plugin if it's a Linux machine.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitor the restart service

Post by scottwilkerson »

Thanks @eloyd
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked