Enhance ospfd_simple check #19
Loading…
Reference in New Issue
No description provided.
Delete Branch "enhance_check_ospfd_simple"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The condition did not work properly
Enhance ospfd_simple checkto WIP : Enhance ospfd_simple checkWIP : Enhance ospfd_simple checkto WIP: Enhance ospfd_simple checkIs this still a WIP ? I feel like it could be better.
For instance we could first check if the .sock file is present. If not, send an error message saying ospf is not running because the socket is missing. Then run the ospf show command to make sure it's running properly.
WIP: Enhance ospfd_simple checkto Enhance ospfd_simple checkYou are right. The check was not even operational. I just improved it, I used it on a server and it works.
It is not a WIP anymore.
@ -12,0 +13,4 @@
exit "$STATE_OK"
else
echo "CRITICAL - OSPFD not running"
exit "$STATE_CRITICAL"
Is OSPFD not running or in a failed state but running ?
If we got there, then the socket file was not found, and the ospfctl command failed. I don't think OSPFD can be running with a failure on a ospfctl command. Conversely, I think that if the ospfctl command successes, then OSPFD surely is running.
OK for now, well see if we have to make it more descriptive in the future.