how to test whether host is down

50 views
Skip to first unread message

刘韶华

unread,
Jun 11, 2014, 1:48:02 AM6/11/14
to salt-...@googlegroups.com
Salt test.ping can only tell us whether a host's salt-minion works, but how can we use salt to test whether a host is down ?

Dmitry Malinovsky

unread,
Jun 11, 2014, 1:49:20 AM6/11/14
to salt-...@googlegroups.com
salt-run manage.down

刘韶华

unread,
Jun 11, 2014, 2:27:31 AM6/11/14
to salt-...@googlegroups.com
manage.down use test.ping internally, so it returns hosts that are really down and hosts whose salt-minion doesn't work.  How can I get hosts that are really down ?


salt-run manage.down
--
You received this message because you are subscribed to a topic in the Google Groups "Salt-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/salt-users/R2jckc6gFjA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to salt-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

nathan tech

unread,
Jun 11, 2014, 1:48:29 PM6/11/14
to salt-...@googlegroups.com
I was going to test this command quickly. Oh. I can't. I'd have to wait for the 1.5 gig mysql dump file to download and import before I can even get my vagrant box up. That's the beauty of centralization. Salt master tells me what I have to do. I'm about ready to go back to Chef.

nathan tech

unread,
Jun 11, 2014, 2:00:52 PM6/11/14
to salt-...@googlegroups.com
Is salt-run a command that's run on the minion or the salt master server?


On Wednesday, June 11, 2014 1:48:02 AM UTC-4, 刘韶华 wrote:

nathan tech

unread,
Jun 11, 2014, 2:02:53 PM6/11/14
to salt-...@googlegroups.com
root@salt-master:~# salt-run
Function '' is unavailable
root@salt-master:~# salt-run manage.down
BLANK

This is non sense. No help list of functions. Blank responses.

C. R. Oldham

unread,
Jun 11, 2014, 2:06:17 PM6/11/14
to salt-...@googlegroups.com
From: nathan tech nathant...@gmail.com
root@salt-master:~# salt-run
Function '' is unavailable
root@salt-master:~# salt-run manage.down

manage.down returned nothing because none of your minions are down.  What does manage.up say?

--cro




Reply all
Reply to author
Forward
0 new messages